Blame SPECS/libnfsidmap.spec

d659e4
%define _root_libdir    /%{_lib}
d659e4
d659e4
Summary: NFSv4 User and Group ID Mapping Library
d659e4
Name: libnfsidmap
d659e4
Version: 0.25
83af1d
Release: 17%{?dist}
d63810
Provides: libnfsidmap
d659e4
Obsoletes: nfs-utils-lib
d659e4
URL: http://www.citi.umich.edu/projects/nfsv4/linux/
d659e4
License: BSD
d659e4
d659e4
Source0: http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/%{name}-%{version}.tar.gz
d659e4
d659e4
Patch001: libnfsidmap-0.26-rc3.patch
dd15d1
Patch002: libnfsidmap-0.25-zero-ids.patch
dd15d1
Patch003: libnfsidmap-0.25-nobody.patch
dd15d1
Patch004: libnfsidmap-0.25-strrchr.patch
dd15d1
Patch005: libnfsidmap-0.25-warnings.patch
d63810
#
d63810
# RHEL7.2
d63810
#
d63810
Patch006: libnfsidmap-0.25-nullnames.patch
a72e7a
#
a72e7a
# RHEL7.3
a72e7a
#
a72e7a
Patch007: libnfsidmap-0.2-stripnewlines.patch
a72e7a
Patch008: libnfsidmap-0.2-negativerets.patch
a72e7a
Patch009: libnfsidmap-0.2-memleak.patch
83af1d
#
83af1d
# RHEL7.4
83af1d
#
83af1d
Patch010: libnfsidmap-0.25-multidomain.patch
83af1d
Patch011: libnfsidmap-0.25-dns-resolved.patch
83af1d
Patch012: libnfsidmap-0.25-nssgssprinc.patch
d659e4
d659e4
Group: System Environment/Libraries
d659e4
BuildRoot: %{_tmppath}/%{name}-%{version}-root
d659e4
BuildRequires: pkgconfig, openldap-devel
d659e4
BuildRequires: automake, libtool
d659e4
Requires(postun): /sbin/ldconfig
d659e4
Requires(pre): /sbin/ldconfig
d659e4
Requires: openldap
d659e4
d659e4
%description
d659e4
Library that handles mapping between names and ids for NFSv4.
d659e4
d659e4
%package devel
d659e4
Summary: Development files for the libnfsidmap library
d659e4
Group: Development/Libraries
d659e4
Requires: %{name} = %{version}-%{release}
d659e4
Requires: pkgconfig
d659e4
d659e4
%description devel
d659e4
This package includes header files and libraries necessary for
d659e4
developing programs which use the libnfsidmap library.
d659e4
d659e4
%prep
d659e4
%setup -q 
d659e4
d659e4
%patch001 -p1 
d659e4
dd15d1
#
dd15d1
# RHEL7.1
dd15d1
#
dd15d1
# 1093093 - chown does not respect NFSv4 no_root_squash
dd15d1
%patch002 -p1 
dd15d1
# 1129790 - libnfsidmap: respect Nobody-User/Nobody-Group
dd15d1
%patch003 -p1 
dd15d1
# 1114053 - RFE: Make rpcidmap and NFS accept full qualified usernames as a user.
dd15d1
%patch004 -p1 
dd15d1
# 1152658 - A large number of warning occur when the source is compiled
dd15d1
%patch005 -p1 
d63810
# 1214882 - libnfsidmap: crash due to not checking argument
d63810
%patch006 -p1 
a72e7a
# 1261124 - libnfsidmap: strip newlines out of IDMAP_LOG messages
a72e7a
%patch007 -p1 
a72e7a
# 1271449 - "Covscan test" failures in errata RHBA-2015:20444-05....
a72e7a
%patch008 -p1 
a72e7a
%patch009 -p1 
83af1d
# 1378557 - NFSv4 id mapping issues in multi-domain environments 
83af1d
%patch010 -p1 
83af1d
# 980925 - rpc.idmapd should support getting the NFSv4 ID Domains from DNS
83af1d
%patch011 -p1 
83af1d
# 1420352 - Cannot create file in it's directory using kerberos....
83af1d
%patch012 -p1 
a72e7a
dd15d1
rm -f configure.in
dd15d1
d659e4
%build
d659e4
./autogen.sh
d659e4
%configure --disable-static  --with-pluginpath=%{_root_libdir}/%name
d659e4
make %{?_smp_mflags} all
d659e4
d659e4
%install
d659e4
rm -rf %{buildroot}
d659e4
make install DESTDIR=%{buildroot} \
d659e4
    libdir=%{_root_libdir} pkgconfigdir=%{_libdir}/pkgconfig
d659e4
d659e4
mkdir -p %{buildroot}%{_sysconfdir}
d659e4
mkdir -p %{buildroot}%{_mandir}/man5
d659e4
d659e4
install -m 644 idmapd.conf %{buildroot}%{_sysconfdir}/idmapd.conf
d659e4
d659e4
# Delete unneeded libtool libs
d659e4
rm -rf %{buildroot}%{_root_libdir}/*.{a,la}
d659e4
rm -rf %{buildroot}%{_root_libdir}/%{name}/*.{a,la}
d659e4
d659e4
%post -p /sbin/ldconfig
d659e4
d659e4
%postun -p /sbin/ldconfig
d659e4
d659e4
%clean
d659e4
rm -rf %{buildroot}
d659e4
d659e4
%files
d659e4
%defattr(-,root,root,-)
d659e4
%doc AUTHORS ChangeLog NEWS README COPYING
d659e4
%config(noreplace) %{_sysconfdir}/idmapd.conf
d659e4
%{_root_libdir}/*.so.*
d659e4
%{_root_libdir}/%{name}/*.so
d659e4
%{_mandir}/*/*
d659e4
d659e4
%files devel
d659e4
%defattr(0644,root,root,755)
d659e4
%{_libdir}/pkgconfig/libnfsidmap.pc
d659e4
%{_includedir}/nfsidmap.h
d659e4
%{_root_libdir}/*.so
d659e4
d659e4
%changelog
83af1d
* Fri Feb 17 2017 Steve Dickson <steved@redhat.com> 0.25-17
83af1d
- Fixed stripping realm problem in nss_gss_princ routines (bz 1420352)
83af1d
83af1d
* Tue Jan 10 2017 Steve Dickson <steved@redhat.com> 0.25-16
83af1d
- Add options to aid id mapping in multi domain environments (bz 1378557)
83af1d
- Query DNS for the the NFSv4 domain (bz 980925)
83af1d
83af1d
* Wed Aug 17 2016 Steve Dickson <steved@redhat.com> 0.25-15
a72e7a
- nss_getpwnam: correctly check for negative values (bz 1271449)
a72e7a
- Fixed a memory leak in nss_name_to_gid() (bz 1271449)
a72e7a
a72e7a
* Thu Apr  7 2016 Steve Dickson <steved@redhat.com> 0.25-13
a72e7a
- Strip newlines out of IDMAP_LOG messages (bz 1261124)
a72e7a
- Fixed some NEGATIVE_RETURNS that a Covscan scan found (bz 1271449)
a72e7a
d63810
* Mon May  4 2015 Steve Dickson <steved@redhat.com> 0.25-12
d63810
- Handle NULL names better (bz 1214882)
d63810
dd15d1
* Tue Oct 21 2014 Steve Dickson <steved@redhat.com> 0.25-11
dd15d1
- Accept full qualified usernames a a user (bz 1114053)
dd15d1
- Removed a number of warnings (bz 1152658)
dd15d1
dd15d1
* Wed Sep 17 2014 Steve Dickson <steved@redhat.com> 0.25-10
dd15d1
- id_as_chars() fails zero value ids (bz 1093093)
dd15d1
- respect Nobody-User/Nobody-Group (bz 1129790)
dd15d1
534a70
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.25-9
534a70
- Mass rebuild 2014-01-24
534a70
534a70
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.25-8
534a70
- Mass rebuild 2013-12-27
534a70
d659e4
* Mon Aug 19 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.25-7
d659e4
- Updated to latest rc release: libnfsidmap-0-26-rc3
d659e4
d659e4
* Fri Jul 26 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.25-6
d659e4
- Drop unnecessary doc dir references from specfile.
d659e4
- Fix bogus dates in %%changelog.
d659e4
d659e4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-5
d659e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d659e4
d659e4
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-4
d659e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d659e4
d659e4
* Tue Jun 19 2012 Steve Dickson <steved@redhat.com>  0.20-3
d659e4
- Updated to latest rc release: libnfsidmap-0-26-rc1
d659e4
d659e4
* Mon Mar 19 2012 Steve Dickson <steved@redhat.com>  0.20-2
d659e4
- Fixed Local-Realms debugging (bz 804152)
d659e4
d659e4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-1
d659e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d659e4
d659e4
* Tue Dec  6 2011 Steve Dickson <steved@redhat.com>  0.20-0
d659e4
- Updated to latest release: libnfsidmap-0.25
d659e4
d659e4
* Mon Nov 14 2011 Steve Dickson <steved@redhat.com>  0.24-7
d659e4
- Updated to latest rc release: libnfsidmap-0-25-rc3 (bz 753930)
d659e4
d659e4
* Mon Mar  7 2011 Steve Dickson <steved@redhat.com>  0.24-6
d659e4
- Updated to latest rc release: libnfsidmap-0-25-rc2
d659e4
d659e4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-5
d659e4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d659e4
d659e4
* Fri Jan 14 2011 Steve Dickson <steved@redhat.com>  0.24-4
d659e4
- Updated to latest rc release: libnfsidmap-0-25-rc1
d659e4
d659e4
* Wed Dec 22 2010 Steve Dickson <steved@redhat.com>  0.24-3
d659e4
- Used the newly added --with-pluginpath config flag to 
d659e4
  redefine where the plugins live (bz 664641).
d659e4
d659e4
* Fri Dec 10 2010 Steve Dickson <steved@redhat.com>  0.24-2
d659e4
- Removed the versions from the Provides: and Obsoletes: lines
d659e4
d659e4
* Wed Dec  8 2010 Steve Dickson <steved@redhat.com>  0.24-1
d659e4
- Updated to latest upstream release: 0.24
d659e4
- Obsoleted nfs-utils-lib
d659e4
d659e4
* Tue Dec  7 2010 Steve Dickson <steved@redhat.com>  0.23-3
d659e4
- Maded corrections in spec per review comments.
d659e4
d659e4
* Fri Dec  3 2010 Steve Dickson <steved@redhat.com>  0.23-2
d659e4
- Initial commit