2625698
Name:           libHX
7316172
Version:        1.25
9c03829
Release:        2%{?dist}.1
e0bef64
Summary:        General-purpose library for typical low-level operations
2625698
2625698
Group:          System Environment/Libraries
2625698
License:        LGPLv2 or LGPLv3
d44c95e
URL:            http://jengelh.hopto.org/files/libHX/
d44c95e
Source0:        http://jengelh.hopto.org/files/libHX/libHX-%{version}.tar.bz2
2625698
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2625698
2625698
BuildRequires:  perl gcc-c++
2625698
2625698
2625698
%description
2625698
A library for:
e0bef64
- rbtree with key-value pair extension
e0bef64
- deques (double-ended queues) (Stacks (LIFO) / Queues (FIFOs))
2625698
- platform independent opendir-style directory access
2625698
- platform independent dlopen-style shared library access
2625698
- auto-storage strings with direct access
2625698
- command line option (argv) parser
e0bef64
- shconfig-style config file parser
2625698
- platform independent random number generator with transparent
2625698
  /dev/urandom support
2625698
- various string, memory and zvec ops
2625698
2625698
2625698
%package        devel
2625698
Summary:        Development files for %{name}
2625698
Group:          Development/Libraries
2625698
Requires:       %{name} = %{version}-%{release}
2625698
Requires:       pkgconfig
2625698
2625698
%description    devel
2625698
The %{name}-devel package contains libraries and header files for
2625698
developing applications that use %{name}.
2625698
2625698
2625698
%prep
2625698
%setup -q
2625698
2625698
2625698
%build
298130d
# Move libHX.so.* to /%{_lib}:
298130d
# /sbin/mount.crypt from pam_mount uses libHX
298130d
# /lib/security/pam_mount.so from pam_mount uses libHX
298130d
%configure --disable-static --libdir=/%{_lib} --with-pkgconfigdir=%{_libdir}/pkgconfig
c7e4389
make %{?_smp_mflags} V=verbose
e0bef64
2625698
2625698
%install
2625698
rm -rf $RPM_BUILD_ROOT
e0bef64
c7e4389
make install DESTDIR=$RPM_BUILD_ROOT V=verbose
2625698
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
2625698
298130d
# move libHX.so to %{_libdir}
298130d
pushd $RPM_BUILD_ROOT/%{_lib}
298130d
rm libHX.so
298130d
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
298130d
ln -s ../../%{_lib}/libHX.so.?.?.? $RPM_BUILD_ROOT/%{_libdir}/libHX.so
298130d
popd
298130d
2625698
2625698
%clean
2625698
rm -rf $RPM_BUILD_ROOT
2625698
2625698
2625698
%post -p /sbin/ldconfig
2625698
2625698
%postun -p /sbin/ldconfig
2625698
2625698
2625698
%files
2625698
%defattr(-,root,root,-)
2625698
%doc LICENSE.LGPL2 LICENSE.LGPL3 LICENSE.GPL3
298130d
/%{_lib}/*.so.*
2625698
2625698
2625698
%files devel
2625698
%defattr(-,root,root,-)
e0bef64
%doc doc/* README.txt
2625698
%{_includedir}/*
2625698
%{_libdir}/*.so
2625698
%{_libdir}/pkgconfig/libHX.pc
2625698
2625698
2625698
%changelog
9c03829
* Thu Nov 27 2008 Till Maas <opensource@till.name> - 1.25-2.1
9c03829
- Bump release because of tagging mistake
9c03829
298130d
* Thu Nov 27 2008 Till Maas <opensource@till.name> - 1.25-2
298130d
- Move libHX.so.* to /%%{_lib} because of /sbin/mount.crypt from pam_mount
298130d
7316172
* Thu Sep 11 2008 Till Maas <opensource@till.name> - 1.25-1
7316172
- Update to latest version
7316172
d44c95e
* Fri Sep 05 2008 Till Maas <opensource@till.name> - 1.23-1
d44c95e
- Update to latest version
d44c95e
c7e4389
* Wed Jun 11 2008 Till Maas <opensource till name> - 1.18-2
c7e4389
- Set variable V for make: displays full compiler commandline
c7e4389
32df6e6
* Wed Jun 11 2008 Till Maas <opensource till name> - 1.18-1
32df6e6
- Update to latest version
32df6e6
702baeb
* Tue May 27 2008 Till Maas <opensource till name> - 1.17-1
702baeb
- Update to latest version
702baeb
e0bef64
* Mon May 05 2008 Till Maas <opensource till name> - 1.15-1
e0bef64
- Update to latest version
e0bef64
- Update description
e0bef64
9665c72
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.10.2-2
9665c72
- Autorebuild for GCC 4.3
9665c72
5986c06
* Wed Dec 26 2007 Till Maas <opensource till name> - 1.10.2-1
5986c06
- update to latest version
5986c06
- fixed bug: https://sourceforge.net/tracker/?func=detail&atid=430593&aid=1845721&group_id=41452
5986c06
2625698
* Thu Sep 27 2007 Till Maas <opensource till name> - 1.10.1-2
2625698
- add tests as examples to devel documentation
2625698
2625698
* Wed Sep 26 2007 Till Maas <opensource till name> - 1.10.1-1
2625698
- initial spec for Fedora