diff -r 000000000000 -r 4f133201e207 nfs-utils-lib/nfs-utils-lib.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nfs-utils-lib/nfs-utils-lib.spec Fri Mar 11 21:30:26 2011 +0100 @@ -0,0 +1,240 @@ +Summary: Network File System Support Library +Name: nfs-utils-lib +Version: 1.1.5 +Release: 2%{?dist} +URL: http://www.citi.umich.edu/projects/nfsv4/linux/ +License: BSD + +%define idmapvers 0.23 +%define libnfsidmap libnfsidmap +%define rpcsecgssvers 0.18 +%define librpcsecgss librpcsecgss +%define libs %{librpcsecgss} %{libnfsidmap} + +%define _docdir %{_defaultdocdir}/%{name}-%{version} +%define librpcsecgss_docdir %{_docdir}/%{librpcsecgss}-%{rpcsecgssvers} +%define libnfsidmap_docdir %{_docdir}/%{libnfsidmap}-%{idmapvers} + +Source0: http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/%{libnfsidmap}-%{idmapvers}.tar.gz +Source1: http://www.citi.umich.edu/projects/nfsv4/linux/librpcsecgss/%{librpcsecgss}-%{rpcsecgssvers}.tar.gz + +Patch000: nfs-utils-lib-changelicensetoBSD.patch + +Group: System Environment/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: pkgconfig, gettext, autoconf, automake +BuildRequires: libgssglue-devel, openldap-devel +Requires(postun): /sbin/ldconfig +Requires(pre): /sbin/ldconfig +Requires: libgssglue, openldap, nfs-utils >= 1.2.1-14 + +%description +Support libraries that are needed by the commands and +daemons the nfs-utils rpm. + +%package devel +Summary: Development files for the nfs-utils-lib 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 nfs-utils-lib library. + +%prep +%setup -c -q -a1 +mv %{libnfsidmap}-%{idmapvers} %{libnfsidmap} +mv %{librpcsecgss}-%{rpcsecgssvers} %{librpcsecgss} + +%patch000 -p1 + +%build + +for dir in %{libs} ; do + pushd $dir + %configure --disable-static + popd +done +for dir in %{libs} ; do + pushd $dir + make all + popd +done + +%install +rm -rf %{buildroot} +for dir in %{libs} ; do + pushd $dir + DESTDIR=%{buildroot} make install + popd +done + +mkdir -p %{buildroot}/%{librpcsecgss_docdir} +pushd %{librpcsecgss} +for file in AUTHORS ChangeLog NEWS README ; do + install -m 644 $file %{buildroot}/%{librpcsecgss_docdir} +done +popd + +mkdir -p %{buildroot}/%{libnfsidmap_docdir} +pushd %{libnfsidmap} +for file in AUTHORS ChangeLog NEWS README ; do + install -m 644 $file %{buildroot}/%{libnfsidmap_docdir} +done +popd + +mkdir -p %{buildroot}/etc +install -m 644 %{libnfsidmap}/idmapd.conf $RPM_BUILD_ROOT/etc/idmapd.conf +mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5 + +# Delete unneeded libtool libs +rm -rf ${RPM_BUILD_ROOT}%{_libdir}/*.la ${RPM_BUILD_ROOT}%{_libdir}/libnfsidmap/*.la + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%dir %{_docdir} +%{_libdir}/librpcsecgss.so.* +%dir %{librpcsecgss_docdir} +%{librpcsecgss_docdir}/* + +%config(noreplace) /etc/idmapd.conf +%{_libdir}/libnfsidmap*.so.* +%dir %{libnfsidmap_docdir} +%{libnfsidmap_docdir}/* +%{_mandir}/*/* +%{_libdir}/libnfsidmap/*.so + +%files devel +%defattr(0644,root,root,755) +%{_libdir}/librpcsecgss.so +%dir %{_includedir}/rpcsecgss +%dir %{_includedir}/rpcsecgss/rpc +%{_libdir}/pkgconfig/librpcsecgss.pc +%{_libdir}/pkgconfig/libnfsidmap.pc +%{_includedir}/rpcsecgss/rpc/auth.h +%{_includedir}/rpcsecgss/rpc/auth_gss.h +%{_includedir}/rpcsecgss/rpc/svc.h +%{_includedir}/rpcsecgss/rpc/svc_auth.h +%{_includedir}/rpcsecgss/rpc/rpc.h +%{_includedir}/rpcsecgss/rpc/rpcsecgss_rename.h +%{_includedir}/nfsidmap.h +%{_libdir}/libnfsidmap*.so + +%changelog +* Fri May 28 2010 Tom "spot" Callaway - 1.1.5-2 +- disable static libs (bz 556087) +- disable libtool libs + +* Mon Jan 25 2010 Steve Dickson 1.1.5-1 +Updated to latest upstream release: libnfsidmap-0.23 + +* Sat Jul 25 2009 Fedora Release Engineering - 1.1.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Fri Jun 5 2009 Steve Dickson 1.1.4-7 +- Added a debug line to log when the local realm is not found + +* Tue May 19 2009 Tom "spot" Callaway 1.1.4-6 +- Replace the Sun RPC license with the BSD license, with the explicit permission of Sun Microsystems + +* Mon Apr 13 2009 Steve Dickson 1.1.4-5 +- Moved the .pc files into the -devel rpm (bz 489173) + +* Wed Apr 1 2009 Michael Schwendt - 1.1.4-4 +- Fix unowned header directories (#483464). + +* Wed Feb 25 2009 Fedora Release Engineering - 1.1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Oct 24 2008 Steve Dickson 1.1.4-2 +- Incorporated from upstream as to how how nss deals + with Local Realms + +* Sat Oct 18 2008 Steve Dickson 1.1.4-1 +- Fixed a bad assumtion in nss code. + +* Wed Aug 27 2008 Steve Dickson 1.1.3-2 +- Upgraded librpcsecgss to latest upstream version: 0.18 + +* Wed Aug 27 2008 Steve Dickson 1.1.3-1 +- Upgraded libnfsidmap to latest upstream version: 0.21 + +* Fri Jun 27 2008 Steve Dickson 1.1.1-4 +- In idmapd.conf, commented out 'Domain' so DNS will be + used to define the domainname. (bz 447237) + +* Tue Feb 19 2008 Fedora Release Engineering - 1.1.1-3 +- Autorebuild for GCC 4.3 + +* Thu Jan 24 2008 Steve Dickson 1.1.1-2 +- Changed the file mode on documentation files (bz 427827) +- Chagned how the doc directories are created so they + are owned by the package. (bz 211001) + +* Thu Jan 24 2008 Steve Dickson 1.1.1-1 +- Updated librpcsecgss to the 0.17 release + +* Tue Dec 04 2007 Release Engineering - 1.1.0-4 + - Rebuild for openldap bump + +* Tue Oct 16 2007 Steve Dickson 1.1.0-3 +- Switch the libgssapi dependency to libgssglue +- Updated librpcsecgss to the 0.16 release + +* Wed Aug 29 2007 Fedora Release Engineering - 1.1.0-2 +- Rebuild for selinux ppc32 issue. + +* Sat Jul 28 2007 Steve Dickson 1.1.0-1 +- Updated libnfsidmap to the 0.20 release +- Added rules to install/remove /etc/idmap.conf + +* Mon Mar 12 2007 Steve Dickson 1.0.8-9 +- Removed the --prefix=$RPM_BUILD_ROOT from the %%configure (bz 213152) + +* Tue Feb 20 2007 Steve Dickson 1.0.8-8 +- Updated libnfsidmap to the 0.19 release + +* Fri Dec 1 2006 Steve Dickson 1.0.8-7.3 +- Fixed typo in the package description (bz 189652) + +* Wed Aug 30 2006 Steve Dickson 1.0.8-7.2 +- added automake to BuildRequires: + +* Wed Aug 30 2006 Steve Dickson 1.0.8-7.1 +- rebuild + +* Wed Aug 2 2006 Steve Dickson 1.0.8-7 +- Updated librpcsecgss to -0.14 + +* Wed Jul 26 2006 Steve Dickson 1.0.8-6 +- Added GSSLIBS to the linking of librpcsecgss (bz 198238) + +* Wed Jul 12 2006 Jesse Keating - 1.0.8-5.1 +- rebuild + +* Tue Jun 20 2006 Steve Dickson 1.0.8-3.1 +- Updated libnfsidmap and librpcsecgss to latest upstream version + +* Fri Feb 10 2006 Jesse Keating - 1.0.8-3.1 +- bump again for double-long bug on ppc(64) + +* Thu Feb 09 2006 Florian La Roche 1.0.8-3 +- remove empty scripts + +* Tue Feb 07 2006 Jesse Keating - 1.0.8-2.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Thu Jan 19 2006 Steve Dickson 1.0.8-2 +- Added debugging routines to libnfsidmap + +* Fri Jan 6 2006 Steve Dickson 1.0.8-1 +- Initial commit