Name: libHX
Version: 1.25
Release: 2%{?dist}
Summary: General-purpose library for typical low-level operations
Group: System Environment/Libraries
License: LGPLv2 or LGPLv3
URL: http://jengelh.hopto.org/files/libHX/
Source0: http://jengelh.hopto.org/files/libHX/libHX-%{version}.tar.bz2
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
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}
pushd $RPM_BUILD_ROOT/%{_lib}
rm libHX.so
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
ln -s ../../%{_lib}/libHX.so.?.?.? $RPM_BUILD_ROOT/%{_libdir}/libHX.so
popd
%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 Nov 27 2008 Till Maas <opensource@till.name> - 1.25-2
- Move libHX.so.* to /%%{_lib} because of /sbin/mount.crypt from pam_mount
* Thu Sep 11 2008 Till Maas <opensource@till.name> - 1.25-1
- Update to latest version
* Fri Sep 05 2008 Till Maas <opensource@till.name> - 1.23-1
- Update to latest version
* Wed Jun 11 2008 Till Maas <opensource till name> - 1.18-2
- Set variable V for make: displays full compiler commandline
* Wed Jun 11 2008 Till Maas <opensource till name> - 1.18-1
- Update to latest version
* Tue May 27 2008 Till Maas <opensource till name> - 1.17-1
- Update to latest version
* Mon May 05 2008 Till Maas <opensource till name> - 1.15-1
- Update to latest version
- Update description
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.10.2-2
- Autorebuild for GCC 4.3
* Wed Dec 26 2007 Till Maas <opensource till name> - 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 <opensource till name> - 1.10.1-2
- add tests as examples to devel documentation
* Wed Sep 26 2007 Till Maas <opensource till name> - 1.10.1-1
- initial spec for Fedora