Group :: System/Libraries
RPM: libshhopt
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Version: 1.1.7
Release: alt2
%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.ru>
Source: %url/files/%realname-%version.tar.bz2
%package devel
Summary: Include files for developing apps which will use %name
Group: Development/C
Requires: %name = %version-%release
%package devel-static
Summary: Static library for developing apps which will use %name
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 %name library.
%description devel-static
This package contains the static library needed to develop statically
linked programs that use the %name library.
%prep
%setup -q -n %srcname
%build
%define _optlevel 9
make clean
make dep
make OPTIM="$RPM_OPT_FLAGS"
rm -f *.o
make SHARED=1 OPTIM="$RPM_OPT_FLAGS" CCSHRD="%optflags_shared"
%install
mkdir -p $RPM_BUILD_ROOT{/%_lib,%_libdir,%_includedir}
ln -s ../../%_lib/%name.so.%version $RPM_BUILD_ROOT%_libdir/%name.so
install -pm755 *.so.* $RPM_BUILD_ROOT/%_lib/
install -pm644 *.a $RPM_BUILD_ROOT%_libdir/
install -pm644 *.h $RPM_BUILD_ROOT%_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
Release: alt2
%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.ru>
Source: %url/files/%realname-%version.tar.bz2
%package devel
Summary: Include files for developing apps which will use %name
Group: Development/C
Requires: %name = %version-%release
%package devel-static
Summary: Static library for developing apps which will use %name
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 %name library.
%description devel-static
This package contains the static library needed to develop statically
linked programs that use the %name library.
%prep
%setup -q -n %srcname
%build
%define _optlevel 9
make clean
make dep
make OPTIM="$RPM_OPT_FLAGS"
rm -f *.o
make SHARED=1 OPTIM="$RPM_OPT_FLAGS" CCSHRD="%optflags_shared"
%install
mkdir -p $RPM_BUILD_ROOT{/%_lib,%_libdir,%_includedir}
ln -s ../../%_lib/%name.so.%version $RPM_BUILD_ROOT%_libdir/%name.so
install -pm755 *.so.* $RPM_BUILD_ROOT/%_lib/
install -pm644 *.a $RPM_BUILD_ROOT%_libdir/
install -pm644 *.h $RPM_BUILD_ROOT%_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