nfs-utils-lib/nfs-utils-lib.spec

Fri, 11 Mar 2011 21:30:26 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:30:26 +0100
changeset 0
4f133201e207
child 1
4667f24fe848
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

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

mercurial