Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37711495
en ru br
ALT Linux repos
4.1: 1.1.7-alt4
4.0: 1.1.7-alt4
3.0: 1.1.7-alt2

Group :: System/Libraries
RPM: libshhopt

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Version: 1.1.7
Release: alt4
%define realname shhopt
Name: lib%realname
%define srcname %realname-%version

Summary: Library for parsing command line options
License: Artistic
Group: System/Libraries
Url: http://shh.thathost.com/pub-unix
Packager: Dmitry V. Levin <ldv at altlinux.org>

# %url/files/%srcname.tar.gz

Source: %srcname.tar
Patch: shhopt-1.1.7-alt-shared.patch

%package devel
Summary: Include files for developing apps which will use shhopt library
Group: Development/C
Requires: %name = %version-%release

%package devel-static
Summary: Static library for developing apps which will use shhopt library
Group: Development/C
Requires: %name-devel = %version-%release

%description
This is a yet another library for parsing command line options.
Both traditional one-character options, and GNU-style --long-options
are supported.

%description devel
This package contains development files needed to develop programs that
use the shhopt library.

%description devel-static
This package contains the static library needed to develop statically
linked programs that use the shhopt library.

%prep
%setup -q -n %srcname
%patch -p1

%build
%define _optlevel 3

make clean
make dep
make OPTIM="%optflags"
rm -f *.o
make SHARED=1 OPTIM="%optflags" CCSHRD="%optflags_shared"

%install
mkdir -p %buildroot{/%_lib,%_libdir,%_includedir}
ln -s ../../%_lib/%name.so.%version %buildroot%_libdir/%name.so
install -pm755 *.so.* %buildroot/%_lib/
install -pm644 *.a %buildroot%_libdir/
install -pm644 *.h %buildroot%_includedir/

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
/%_lib/*
%doc ChangeLog CREDITS README TODO %srcname.lsm example.c

%files devel
%_libdir/*.so
%_includedir/*

%files devel-static
%_libdir/*.a

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin