Name: libHX Version: 2.8 Release: 1%{?dist} Summary: General-purpose library for typical low-level operations Group: System Environment/Libraries License: LGPLv2 or LGPLv3 URL: http://sourceforge.net/projects/libhx/ Source0: http://downloads.sourceforge.net/libhx/libHX-%{version}.tar.bz2 Source1: http://downloads.sourceforge.net/libhx/libHX-%{version}.tar.bz2.asc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl gcc-c++ %description A library for: - rbtree with key-value pair extension - deques (double-ended queues) (Stacks (LIFO) / Queues (FIFOs)) - platform independent opendir-style directory access - platform independent dlopen-style shared library access - auto-storage strings with direct access - command line option (argv) parser - shconfig-style config file parser - platform independent random number generator with transparent /dev/urandom support - various string, memory and zvec ops %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %build # Move libHX.so.* to /%{_lib}: # /sbin/mount.crypt from pam_mount uses libHX # /lib/security/pam_mount.so from pam_mount uses libHX %configure --disable-static --libdir=/%{_lib} --with-pkgconfigdir=%{_libdir}/pkgconfig --docdir=%{_docdir}/%{name}-%{version} make %{?_smp_mflags} V=verbose %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT V=verbose find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' # move libHX.so to %{_libdir} rm $RPM_BUILD_ROOT/%{_lib}/libHX.so mkdir -p $RPM_BUILD_ROOT/%{_libdir} pushd $RPM_BUILD_ROOT/%{_libdir} ln -s ../../%{_lib}/libHX.so.*.*.* $RPM_BUILD_ROOT/%{_libdir}/libHX.so popd # :TODO: include the documentation more cleanly rm doc/Makefile* %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc LICENSE.LGPL2 LICENSE.LGPL3 LICENSE.GPL3 /%{_lib}/*.so.* %files devel %defattr(-,root,root,-) %doc doc/* README.txt %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/libHX.pc %changelog * Thu Jul 02 2009 Till Maas - 2.8-1 - Update to new release - Define docdir for %%configure, because of installed PDF documentation * Tue Mar 03 2009 Till Maas - 2.5-1 - Update to new release - Update URL/Source0 to SF.net webpage * Wed Feb 25 2009 Fedora Release Engineering - 2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Jan 20 2009 Till Maas - 2.3-1 - Update to new release * Mon Dec 29 2008 Till Maas - 2.1-1 - Update to new release * Sat Dec 20 2008 Till Maas - 1.25-3 - Fix .so symlink * Thu Nov 27 2008 Till Maas - 1.25-2 - Move libHX.so.* to /%%{_lib} because of /sbin/mount.crypt from pam_mount * Thu Sep 11 2008 Till Maas - 1.25-1 - Update to latest version * Fri Sep 05 2008 Till Maas - 1.23-1 - Update to latest version * Wed Jun 11 2008 Till Maas - 1.18-2 - Set variable V for make: displays full compiler commandline * Wed Jun 11 2008 Till Maas - 1.18-1 - Update to latest version * Tue May 27 2008 Till Maas - 1.17-1 - Update to latest version * Mon May 05 2008 Till Maas - 1.15-1 - Update to latest version - Update description * Wed Feb 20 2008 Fedora Release Engineering - 1.10.2-2 - Autorebuild for GCC 4.3 * Wed Dec 26 2007 Till Maas - 1.10.2-1 - update to latest version - fixed bug: https://sourceforge.net/tracker/?func=detail&atid=430593&aid=1845721&group_id=41452 * Thu Sep 27 2007 Till Maas - 1.10.1-2 - add tests as examples to devel documentation * Wed Sep 26 2007 Till Maas - 1.10.1-1 - initial spec for Fedora