From 169aef0315b86c1a66e6d792c2a533fafc91dd53 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 11 Aug 2010 12:10:19 -0400 Subject: dhash: Add targets for RPM build --- dhash/contrib/libdhash.spec.in | 87 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 dhash/contrib/libdhash.spec.in (limited to 'dhash/contrib/libdhash.spec.in') diff --git a/dhash/contrib/libdhash.spec.in b/dhash/contrib/libdhash.spec.in new file mode 100644 index 0000000..0408979 --- /dev/null +++ b/dhash/contrib/libdhash.spec.in @@ -0,0 +1,87 @@ +Name: @PACKAGE_NAME@ +Version: @PACKAGE_VERSION@ +Release: 0%{?dist} +Group: Development/Libraries +Summary: Dynamic hash table +License: LGPLv3+ +URL: http://fedorahosted.org/sssd/ +Source0: %{name}-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +### Patches ### + +### Dependencies ### + +### Build Dependencies ### + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: m4 + +%description +A hash table which will dynamically resize to achieve optimal storage & access +time properties + +%package devel +Summary: Development files for libdhash +Group: Development/Libraries +Requires: libdhash = %{version}-%{release} +License: LGPLv3+ + +%description devel +A hash table which will dynamically resize to achieve optimal storage & access +time properties + +%prep +%setup -q + +%build +%configure \ + --disable-static \ + --disable-rpath + +make %{?_smp_mflags} + +%check +make %{?_smp_mflags} check + +%install +rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT + +# Remove the example files from the output directory +# We will copy them directly from the source directory +# for packaging +rm -f \ + $RPM_BUILD_ROOT/usr/share/doc/libdhash/README \ + $RPM_BUILD_ROOT/usr/share/doc/libdhash/examples/dhash_example.c \ + $RPM_BUILD_ROOT/usr/share/doc/libdhash/examples/dhash_test.c + +# Remove .la files created by libtool +rm -f $RPM_BUILD_ROOT/%{_libdir}/libdhash.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc COPYING COPYING.LESSER +%{_libdir}/libdhash.so.1 +%{_libdir}/libdhash.so.1.0.0 + +%files devel +%defattr(-,root,root,-) +%{_includedir}/dhash.h +%{_libdir}/libdhash.so +%{_libdir}/pkgconfig/dhash.pc +%doc README examples/ + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%changelog +* Mon Mar 15 2010 Stephen Gallagher - @PACKAGE_VERSION@-0 +- Automated build of libdhash -- cgit