Fri, 11 Mar 2011 21:30:26 +0100
Import package vendor original specs for necessary manipulations.
1 Summary: Network File System Support Library
2 Name: nfs-utils-lib
3 Version: 1.1.5
4 Release: 2%{?dist}
5 URL: http://www.citi.umich.edu/projects/nfsv4/linux/
6 License: BSD
8 %define idmapvers 0.23
9 %define libnfsidmap libnfsidmap
10 %define rpcsecgssvers 0.18
11 %define librpcsecgss librpcsecgss
12 %define libs %{librpcsecgss} %{libnfsidmap}
14 %define _docdir %{_defaultdocdir}/%{name}-%{version}
15 %define librpcsecgss_docdir %{_docdir}/%{librpcsecgss}-%{rpcsecgssvers}
16 %define libnfsidmap_docdir %{_docdir}/%{libnfsidmap}-%{idmapvers}
18 Source0: http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/%{libnfsidmap}-%{idmapvers}.tar.gz
19 Source1: http://www.citi.umich.edu/projects/nfsv4/linux/librpcsecgss/%{librpcsecgss}-%{rpcsecgssvers}.tar.gz
21 Patch000: nfs-utils-lib-changelicensetoBSD.patch
23 Group: System Environment/Libraries
24 BuildRoot: %{_tmppath}/%{name}-%{version}-root
25 BuildRequires: pkgconfig, gettext, autoconf, automake
26 BuildRequires: libgssglue-devel, openldap-devel
27 Requires(postun): /sbin/ldconfig
28 Requires(pre): /sbin/ldconfig
29 Requires: libgssglue, openldap, nfs-utils >= 1.2.1-14
31 %description
32 Support libraries that are needed by the commands and
33 daemons the nfs-utils rpm.
35 %package devel
36 Summary: Development files for the nfs-utils-lib library
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
39 Requires: pkgconfig
41 %description devel
42 This package includes header files and libraries necessary for
43 developing programs which use the nfs-utils-lib library.
45 %prep
46 %setup -c -q -a1
47 mv %{libnfsidmap}-%{idmapvers} %{libnfsidmap}
48 mv %{librpcsecgss}-%{rpcsecgssvers} %{librpcsecgss}
50 %patch000 -p1
52 %build
54 for dir in %{libs} ; do
55 pushd $dir
56 %configure --disable-static
57 popd
58 done
59 for dir in %{libs} ; do
60 pushd $dir
61 make all
62 popd
63 done
65 %install
66 rm -rf %{buildroot}
67 for dir in %{libs} ; do
68 pushd $dir
69 DESTDIR=%{buildroot} make install
70 popd
71 done
73 mkdir -p %{buildroot}/%{librpcsecgss_docdir}
74 pushd %{librpcsecgss}
75 for file in AUTHORS ChangeLog NEWS README ; do
76 install -m 644 $file %{buildroot}/%{librpcsecgss_docdir}
77 done
78 popd
80 mkdir -p %{buildroot}/%{libnfsidmap_docdir}
81 pushd %{libnfsidmap}
82 for file in AUTHORS ChangeLog NEWS README ; do
83 install -m 644 $file %{buildroot}/%{libnfsidmap_docdir}
84 done
85 popd
87 mkdir -p %{buildroot}/etc
88 install -m 644 %{libnfsidmap}/idmapd.conf $RPM_BUILD_ROOT/etc/idmapd.conf
89 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5
91 # Delete unneeded libtool libs
92 rm -rf ${RPM_BUILD_ROOT}%{_libdir}/*.la ${RPM_BUILD_ROOT}%{_libdir}/libnfsidmap/*.la
94 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
98 %clean
99 rm -rf %{buildroot}
102 %files
103 %defattr(-,root,root,-)
104 %dir %{_docdir}
105 %{_libdir}/librpcsecgss.so.*
106 %dir %{librpcsecgss_docdir}
107 %{librpcsecgss_docdir}/*
109 %config(noreplace) /etc/idmapd.conf
110 %{_libdir}/libnfsidmap*.so.*
111 %dir %{libnfsidmap_docdir}
112 %{libnfsidmap_docdir}/*
113 %{_mandir}/*/*
114 %{_libdir}/libnfsidmap/*.so
116 %files devel
117 %defattr(0644,root,root,755)
118 %{_libdir}/librpcsecgss.so
119 %dir %{_includedir}/rpcsecgss
120 %dir %{_includedir}/rpcsecgss/rpc
121 %{_libdir}/pkgconfig/librpcsecgss.pc
122 %{_libdir}/pkgconfig/libnfsidmap.pc
123 %{_includedir}/rpcsecgss/rpc/auth.h
124 %{_includedir}/rpcsecgss/rpc/auth_gss.h
125 %{_includedir}/rpcsecgss/rpc/svc.h
126 %{_includedir}/rpcsecgss/rpc/svc_auth.h
127 %{_includedir}/rpcsecgss/rpc/rpc.h
128 %{_includedir}/rpcsecgss/rpc/rpcsecgss_rename.h
129 %{_includedir}/nfsidmap.h
130 %{_libdir}/libnfsidmap*.so
132 %changelog
133 * Fri May 28 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.5-2
134 - disable static libs (bz 556087)
135 - disable libtool libs
137 * Mon Jan 25 2010 Steve Dickson <steved@redhat.com> 1.1.5-1
138 Updated to latest upstream release: libnfsidmap-0.23
140 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-8
141 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
143 * Fri Jun 5 2009 Steve Dickson <steved@redhat.com> 1.1.4-7
144 - Added a debug line to log when the local realm is not found
146 * Tue May 19 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.4-6
147 - Replace the Sun RPC license with the BSD license, with the explicit permission of Sun Microsystems
149 * Mon Apr 13 2009 Steve Dickson <steved@redhat.com> 1.1.4-5
150 - Moved the .pc files into the -devel rpm (bz 489173)
152 * Wed Apr 1 2009 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1.4-4
153 - Fix unowned header directories (#483464).
155 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-3
156 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
158 * Fri Oct 24 2008 Steve Dickson <steved@redhat.com> 1.1.4-2
159 - Incorporated from upstream as to how how nss deals
160 with Local Realms
162 * Sat Oct 18 2008 Steve Dickson <steved@redhat.com> 1.1.4-1
163 - Fixed a bad assumtion in nss code.
165 * Wed Aug 27 2008 Steve Dickson <steved@redhat.com> 1.1.3-2
166 - Upgraded librpcsecgss to latest upstream version: 0.18
168 * Wed Aug 27 2008 Steve Dickson <steved@redhat.com> 1.1.3-1
169 - Upgraded libnfsidmap to latest upstream version: 0.21
171 * Fri Jun 27 2008 Steve Dickson <steved@redhat.com> 1.1.1-4
172 - In idmapd.conf, commented out 'Domain' so DNS will be
173 used to define the domainname. (bz 447237)
175 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.1-3
176 - Autorebuild for GCC 4.3
178 * Thu Jan 24 2008 Steve Dickson <steved@redhat.com> 1.1.1-2
179 - Changed the file mode on documentation files (bz 427827)
180 - Chagned how the doc directories are created so they
181 are owned by the package. (bz 211001)
183 * Thu Jan 24 2008 Steve Dickson <steved@redhat.com> 1.1.1-1
184 - Updated librpcsecgss to the 0.17 release
186 * Tue Dec 04 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.1.0-4
187 - Rebuild for openldap bump
189 * Tue Oct 16 2007 Steve Dickson <steved@redhat.com> 1.1.0-3
190 - Switch the libgssapi dependency to libgssglue
191 - Updated librpcsecgss to the 0.16 release
193 * Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.1.0-2
194 - Rebuild for selinux ppc32 issue.
196 * Sat Jul 28 2007 Steve Dickson <steved@redhat.com> 1.1.0-1
197 - Updated libnfsidmap to the 0.20 release
198 - Added rules to install/remove /etc/idmap.conf
200 * Mon Mar 12 2007 Steve Dickson <steved@redhat.com> 1.0.8-9
201 - Removed the --prefix=$RPM_BUILD_ROOT from the %%configure (bz 213152)
203 * Tue Feb 20 2007 Steve Dickson <steved@redhat.com> 1.0.8-8
204 - Updated libnfsidmap to the 0.19 release
206 * Fri Dec 1 2006 Steve Dickson <steved@redhat.com> 1.0.8-7.3
207 - Fixed typo in the package description (bz 189652)
209 * Wed Aug 30 2006 Steve Dickson <steved@redhat.com> 1.0.8-7.2
210 - added automake to BuildRequires:
212 * Wed Aug 30 2006 Steve Dickson <steved@redhat.com> 1.0.8-7.1
213 - rebuild
215 * Wed Aug 2 2006 Steve Dickson <steved@redhat.com> 1.0.8-7
216 - Updated librpcsecgss to -0.14
218 * Wed Jul 26 2006 Steve Dickson <steved@redhat.com> 1.0.8-6
219 - Added GSSLIBS to the linking of librpcsecgss (bz 198238)
221 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.8-5.1
222 - rebuild
224 * Tue Jun 20 2006 Steve Dickson <steved@redhat.com> 1.0.8-3.1
225 - Updated libnfsidmap and librpcsecgss to latest upstream version
227 * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.8-3.1
228 - bump again for double-long bug on ppc(64)
230 * Thu Feb 09 2006 Florian La Roche <laroche@redhat.com> 1.0.8-3
231 - remove empty scripts
233 * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.8-2.1
234 - rebuilt for new gcc4.1 snapshot and glibc changes
236 * Thu Jan 19 2006 Steve Dickson <steved@redhat.com> 1.0.8-2
237 - Added debugging routines to libnfsidmap
239 * Fri Jan 6 2006 Steve Dickson <steved@redhat.com> 1.0.8-1
240 - Initial commit