%define _root_libdir /%{_lib} Summary: NFSv4 User and Group ID Mapping Library Name: libnfsidmap Version: 0.25 Release: 7%{?dist} Provides: nfs-utils-lib Obsoletes: nfs-utils-lib URL: http://www.citi.umich.edu/projects/nfsv4/linux/ License: BSD Source0: http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/%{name}-%{version}.tar.gz Patch001: libnfsidmap-0.26-rc3.patch Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: pkgconfig, openldap-devel BuildRequires: automake, libtool Requires(postun): /sbin/ldconfig Requires(pre): /sbin/ldconfig Requires: openldap %description Library that handles mapping between names and ids for NFSv4. %package devel Summary: Development files for the libnfsidmap library Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig %description devel This package includes header files and libraries necessary for developing programs which use the libnfsidmap library. %prep %setup -q %patch001 -p1 %build ./autogen.sh %configure --disable-static --with-pluginpath=%{_root_libdir}/%name make %{?_smp_mflags} all %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} \ libdir=%{_root_libdir} pkgconfigdir=%{_libdir}/pkgconfig mkdir -p %{buildroot}%{_sysconfdir} mkdir -p %{buildroot}%{_mandir}/man5 install -m 644 idmapd.conf %{buildroot}%{_sysconfdir}/idmapd.conf # Delete unneeded libtool libs rm -rf %{buildroot}%{_root_libdir}/*.{a,la} rm -rf %{buildroot}%{_root_libdir}/%{name}/*.{a,la} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog NEWS README COPYING %config(noreplace) %{_sysconfdir}/idmapd.conf %{_root_libdir}/*.so.* %{_root_libdir}/%{name}/*.so %{_mandir}/*/* %files devel %defattr(0644,root,root,755) %{_libdir}/pkgconfig/libnfsidmap.pc %{_includedir}/nfsidmap.h %{_root_libdir}/*.so %changelog * Mon Aug 19 2013 Ville Skyttä - 0.25-7 - Updated to latest rc release: libnfsidmap-0-26-rc3 * Fri Jul 26 2013 Ville Skyttä - 0.25-6 - Drop unnecessary doc dir references from specfile. - Fix bogus dates in %%changelog. * Thu Feb 14 2013 Fedora Release Engineering - 0.25-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 0.25-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 19 2012 Steve Dickson 0.20-3 - Updated to latest rc release: libnfsidmap-0-26-rc1 * Mon Mar 19 2012 Steve Dickson 0.20-2 - Fixed Local-Realms debugging (bz 804152) * Fri Jan 13 2012 Fedora Release Engineering - 0.25-1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Dec 6 2011 Steve Dickson 0.20-0 - Updated to latest release: libnfsidmap-0.25 * Mon Nov 14 2011 Steve Dickson 0.24-7 - Updated to latest rc release: libnfsidmap-0-25-rc3 (bz 753930) * Mon Mar 7 2011 Steve Dickson 0.24-6 - Updated to latest rc release: libnfsidmap-0-25-rc2 * Tue Feb 08 2011 Fedora Release Engineering - 0.24-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jan 14 2011 Steve Dickson 0.24-4 - Updated to latest rc release: libnfsidmap-0-25-rc1 * Wed Dec 22 2010 Steve Dickson 0.24-3 - Used the newly added --with-pluginpath config flag to redefine where the plugins live (bz 664641). * Fri Dec 10 2010 Steve Dickson 0.24-2 - Removed the versions from the Provides: and Obsoletes: lines * Wed Dec 8 2010 Steve Dickson 0.24-1 - Updated to latest upstream release: 0.24 - Obsoleted nfs-utils-lib * Tue Dec 7 2010 Steve Dickson 0.23-3 - Maded corrections in spec per review comments. * Fri Dec 3 2010 Steve Dickson 0.23-2 - Initial commit