Blame SPECS/cifs-utils.spec

97823b
#% define pre_release rc1
97823b
%define pre_release %nil
97823b
97823b
Name:            cifs-utils
97823b
Version:         6.2
97823b
Release:         10%{pre_release}%{?dist}
97823b
Summary:         Utilities for mounting and managing CIFS mounts
97823b
97823b
Group:           System Environment/Daemons
97823b
License:         GPLv3
97823b
URL:             http://linux-cifs.samba.org/cifs-utils/
97823b
BuildRoot:       %{_tmppath}/%{name}-%{version}%{pre_release}-%{release}-root-%(%{__id_u} -n)
97823b
97823b
BuildRequires:   libcap-ng-devel libtalloc-devel krb5-devel keyutils-libs-devel autoconf automake libwbclient-devel
97823b
97823b
Requires:        keyutils
97823b
Requires(post):  /usr/sbin/alternatives
97823b
Requires(preun): /usr/sbin/alternatives
97823b
97823b
Source0:         ftp://ftp.samba.org/pub/linux-cifs/cifs-utils/%{name}-%{version}%{pre_release}.tar.bz2
97823b
Patch1:          0001-get-setcifsacl-fix-bad-bit-shifts.patch
97823b
Patch2:          0002-getcifsacl-remove-some-dead-code.patch
97823b
Patch3:          0003-asn1-remove-some-usused-functions.patch
97823b
Patch4:          0004-data_blob-clean-out-unused-functions.patch
97823b
Patch5:          0005-mount.cifs-fix-bad-free-of-string-returned-by-dirnam.patch
97823b
Patch6:          0001-asn1-fix-use-after-free-in-asn1_write.patch
97823b
Patch7:          0001-cifs-use-krb5_kt_default-to-determine-default-keytab.patch
97823b
Patch8:          0001-autoconf-fix-link-of-libwbclient.patch
97823b
Patch9:          0002-mount.cifs-on-2nd-try-mount.cifs-must-also-uppercase.patch
97823b
Patch10:         0003-mtab.c-include-paths.h-for-_PATH_MOUNTED.patch
97823b
Patch11:         0004-manpage-clarify-use-of-backupuid-and-backupgid-in-mo.patch
97823b
Patch12:         0005-mount.cifs-ignore-x-mount-options.patch
97823b
Patch13:         0001-autoconf-Use-DEFS-when-building-idmapwb.so.patch
97823b
Patch14:         0007-aclocal-fix-typo-in-idmap.m4.patch
97823b
Patch15:         0008-mount.cifs-Removed-extra-comma-in-front-of-domain.patch
97823b
Patch16:         0009-mount.cifs-Accept-empty-domains-on-the-command-line.patch
97823b
Patch17:         0010-mount.cifs-Fixed-command-line-parsing-and-aligned-wi.patch
97823b
Patch18:         0011-mount.cifs-Remove-unneeded-stdbool-header-include.patch
97823b
Patch19:         0012-manpage-document-mfsymlinks-in-the-mount.cifs-man-pa.patch
97823b
97823b
%description
97823b
The SMB/CIFS protocol is a standard file sharing protocol widely deployed
97823b
on Microsoft Windows machines. This package contains tools for mounting
97823b
shares on Linux using the SMB/CIFS protocol. The tools in this package
97823b
work in conjunction with support in the kernel to allow one to mount a
97823b
SMB/CIFS share onto a client and use it as if it were a standard Linux
97823b
file system.
97823b
97823b
%package devel
97823b
Summary:        Files needed for building plugins for cifs-utils
97823b
Group:          Development/Libraries
97823b
97823b
%description devel
97823b
The SMB/CIFS protocol is a standard file sharing protocol widely deployed
97823b
on Microsoft Windows machines. This package contains the header file
97823b
necessary for building ID mapping plugins for cifs-utils.
97823b
97823b
%prep
97823b
%setup -q -n %{name}-%{version}%{pre_release}
97823b
%patch1 -p1
97823b
%patch2 -p1
97823b
%patch3 -p1
97823b
%patch4 -p1
97823b
%patch5 -p1
97823b
%patch6 -p1
97823b
%patch7 -p1
97823b
%patch8 -p1
97823b
%patch9 -p1
97823b
%patch10 -p1
97823b
%patch11 -p1
97823b
%patch12 -p1
97823b
%patch13 -p1
97823b
%patch14 -p1
97823b
%patch15 -p1
97823b
%patch16 -p1
97823b
%patch17 -p1
97823b
%patch18 -p1
97823b
%patch19 -p1
97823b
97823b
%build
97823b
%configure --prefix=/usr ROOTSBINDIR=%{_sbindir}
97823b
make %{?_smp_mflags}
97823b
97823b
%install
97823b
rm -rf %{buildroot}
97823b
make install DESTDIR=%{buildroot}
97823b
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
97823b
mkdir -p %{buildroot}%{_sysconfdir}/request-key.d
97823b
install -m 644 contrib/request-key.d/cifs.idmap.conf %{buildroot}%{_sysconfdir}/request-key.d
97823b
install -m 644 contrib/request-key.d/cifs.spnego.conf %{buildroot}%{_sysconfdir}/request-key.d
97823b
97823b
%clean
97823b
rm -rf %{buildroot}
97823b
97823b
%files
97823b
%defattr(-,root,root,-)
97823b
%doc
97823b
%{_bindir}/getcifsacl
97823b
%{_bindir}/setcifsacl
97823b
%{_bindir}/cifscreds
97823b
%{_sbindir}/mount.cifs
97823b
%{_sbindir}/cifs.upcall
97823b
%{_sbindir}/cifs.idmap
97823b
%{_libdir}/%{name}/idmapwb.so
97823b
%{_mandir}/man1/getcifsacl.1.gz
97823b
%{_mandir}/man1/setcifsacl.1.gz
97823b
%{_mandir}/man1/cifscreds.1.gz
97823b
%{_mandir}/man8/cifs.upcall.8.gz
97823b
%{_mandir}/man8/cifs.idmap.8.gz
97823b
%{_mandir}/man8/mount.cifs.8.gz
97823b
%{_mandir}/man8/idmapwb.8.gz
97823b
%ghost %{_sysconfdir}/cifs-utils/idmap-plugin
97823b
%config(noreplace) %{_sysconfdir}/request-key.d/cifs.idmap.conf
97823b
%config(noreplace) %{_sysconfdir}/request-key.d/cifs.spnego.conf
97823b
97823b
%post
97823b
/usr/sbin/alternatives --install /etc/cifs-utils/idmap-plugin cifs-idmap-plugin %{_libdir}/%{name}/idmapwb.so 10
97823b
97823b
%preun
97823b
if [ $1 = 0 ]; then
97823b
	/usr/sbin/alternatives --remove cifs-idmap-plugin %{_libdir}/%{name}/idmapwb.so
97823b
fi
97823b
97823b
%files devel
97823b
%{_includedir}/cifsidmap.h
97823b
97823b
%changelog
97823b
* Mon Apr 03 2017 Sachin Prabhu <sprabhu@redhat.com> - 6.2-10
97823b
- aclocal: fix typo in idmap.m4
97823b
- mount.cifs: Removed extra comma in front of domain
97823b
- mount.cifs: Accept empty domains on the command line
97823b
- mount.cifs: Fixed command line parsing and aligned with kernel
97823b
- mount.cifs: Remove unneeded stdbool header include
97823b
- manpage: document mfsymlinks in the mount.cifs man page
97823b
97823b
* Thu Jun 30 2016 Sachin Prabhu <sprabhu@redhat.com> - 6.2-9
97823b
- Use $(DEFS) when building idmapwb.so
97823b
97823b
* Thu Jun 30 2016 Sachin Prabhu <sprabhu@redhat.com> - 6.2-8
97823b
- Prevent unnecessary linking of libwbclient
97823b
- Uppercase orig_dev on 2nd try at mounting
97823b
- Include paths.h in mtab.c
97823b
- Clarify use of backupuid/backupgid in manpage
97823b
- Ignore x-* mount options
97823b
97823b
* Fri Aug 29 2014 Sachin Prabhu <sprabhu@redhat.com> - 6.2-7
97823b
-  use krb5_kt_default() to determine default keytab location (bz#1083795)
97823b
97823b
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 6.2-6
97823b
- Mass rebuild 2014-01-24
97823b
97823b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 6.2-5
97823b
- Mass rebuild 2013-12-27
97823b
97823b
* Mon Oct 14 2013 Jeff Layton <jlayton@redhat.com> 6.2-4
97823b
- fix use-after-free in asn1_write
97823b
97823b
* Fri Oct 11 2013 Jeff Layton <jlayton@redhat.com> 6.2-3
97823b
- fixes for bugs reported by coverity:
97823b
- update bad bit shift patch with one that patches getcifsacl.c too
97823b
- remove some dead code from getcifsacl.c, asn1.c, and data_blob.c
97823b
- fix bad handling of allocated memory in del_mtab in mount.cifs.c
97823b
97823b
* Wed Oct 09 2013 Jeff Layton <jlayton@redhat.com> 6.2-2
97823b
- fix bad bit shift in setcifsacl.c (bz#1016932)
97823b
97823b
* Mon Oct 07 2013 Jeff Layton <jlayton@redhat.com> 6.2-1
97823b
- update to 6.2 release
97823b
97823b
* Tue Jul 16 2013 Jeff Layton <jlayton@redhat.com> 6.1-3
97823b
- allow setcifsacl to work if plugin can't be loaded (#985067)
97823b
97823b
* Tue Jul 16 2013 Jeff Layton <jlayton@redhat.com> 6.1-2
97823b
- Convert idmapping plugin symlink to use alternatives system (#984643)
97823b
97823b
* Wed Jul 03 2013 Jeff Layton <jlayton@redhat.com> 6.1-1
97823b
- update to 6.1 release
97823b
97823b
* Mon Mar 25 2013 Jeff Layton <jlayton@redhat.com> 6.0-1
97823b
- update to 6.0 release
97823b
97823b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9-4
97823b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
97823b
97823b
* Sun Jan 13 2013 Jeff Layton <jlayton@redhat.com> 5.9-3
97823b
- comment fixes in cifsidmap.h
97823b
97823b
* Sun Jan 13 2013 Jeff Layton <jlayton@redhat.com> 5.9-2
97823b
- fix regression in credential file handling
97823b
97823b
* Mon Jan 07 2013 Jeff Layton <jlayton@redhat.com> 5.9-1
97823b
- update to 5.9
97823b
- move mount.cifs to /usr/sbin per new packaging guidelines
97823b
- add -devel package to hold cifsidmap.h
97823b
97823b
* Sun Nov 11 2012 Jeff Layton <jlayton@redhat.com> 5.8-1
97823b
- update to 5.8
97823b
97823b
* Wed Nov 07 2012 Jeff Layton <jlayton@redhat.com> 5.7-3
97823b
- update to latest patches queued for 5.8. More idmapping and ACL tool fixes.
97823b
97823b
* Sun Nov 04 2012 Jeff Layton <jlayton@redhat.com> 5.7-2
97823b
- update to latest patches queued for 5.8. Mostly idmapping and ACL tool fixes.
97823b
97823b
* Tue Oct 09 2012 Jeff Layton <jlayton@redhat.com> 5.7-1
97823b
- update to 5.7
97823b
97823b
* Fri Aug 24 2012 Jeff Layton <jlayton@redhat.com> 5.6-2
97823b
- update to current upstream head
97823b
97823b
* Thu Jul 26 2012 Jeff Layton <jlayton@redhat.com> 5.6-1
97823b
- update to 5.6
97823b
97823b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.5-3
97823b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
97823b
97823b
* Mon Jul 09 2012 Jeff Layton <jlayton@redhat.com> 5.5-2
97823b
- remove -Werror flag
97823b
- enable PIE and RELRO
97823b
97823b
* Wed May 30 2012 Jeff Layton <jlayton@redhat.com> 5.5-1
97823b
- update to 5.5
97823b
97823b
* Wed Apr 25 2012 Jeff Layton <jlayton@redhat.com> 5.4-2
97823b
- rebuild to fix dependencies due to libwbclient changes
97823b
97823b
* Wed Apr 18 2012 Jeff Layton <jlayton@redhat.com> 5.4-1
97823b
- update to 5.4
97823b
- add patch to fix up more warnings
97823b
97823b
* Mon Mar 19 2012 Jeff Layton <jlayton@redhat.com> 5.3-4
97823b
- fix tests for strtoul success (bz# 800621)
97823b
97823b
* Wed Feb 08 2012 Jeff Layton <jlayton@redhat.com> 5.3-3
97823b
- revert mount.cifs move. It's unnecessary at this point.
97823b
97823b
* Wed Feb 08 2012 Jeff Layton <jlayton@redhat.com> 5.3-2
97823b
- move mount.cifs to /usr/sbin per new packaging guidelines
97823b
97823b
* Sat Jan 28 2012 Jeff Layton <jlayton@redhat.com> 5.3-1
97823b
- update to 5.3
97823b
97823b
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2-3
97823b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
97823b
97823b
* Fri Dec 09 2011 Jeff Layton <jlayton@redhat.com> 5.2-2
97823b
- add /etc/request-key.d files
97823b
97823b
* Fri Dec 09 2011 Jeff Layton <jlayton@redhat.com> 5.2-1
97823b
- update to 5.2
97823b
97823b
* Fri Sep 23 2011 Jeff Layton <jlayton@redhat.com> 5.1-1
97823b
- update to 5.1
97823b
- add getcifsacl and setcifsacl to package
97823b
97823b
* Fri Jul 29 2011 Jeff Layton <jlayton@redhat.com> 5.0-2
97823b
- mount.cifs: fix check_newline retcode check (bz# 726717)
97823b
97823b
* Wed Jun 01 2011 Jeff Layton <jlayton@redhat.com> 5.0-1
97823b
- update to 5.0
97823b
97823b
* Mon May 16 2011 Jeff Layton <jlayton@redhat.com> 4.9-2
97823b
- mount.cifs: pass unadulterated device string to kernel (bz# 702664)
97823b
97823b
* Fri Mar 04 2011 Jeff Layton <jlayton@redhat.com> 4.9-1
97823b
- update to 4.9
97823b
97823b
* Tue Feb 08 2011 Jeff Layton <jlayton@redhat.com> 4.8.1-4
97823b
- mount.cifs: reenable CAP_DAC_READ_SEARCH when mounting (bz# 675761)
97823b
97823b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.1-3
97823b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
97823b
97823b
* Tue Feb 01 2011 Jeff Layton <jlayton@redhat.com> 4.8.1-2
97823b
- mount.cifs: don't update mtab if it's a symlink (bz# 674101)
97823b
97823b
* Fri Jan 21 2011 Jeff Layton <jlayton@redhat.com> 4.8.1-1
97823b
- update to 4.8.1
97823b
97823b
* Sat Jan 15 2011 Jeff Layton <jlayton@redhat.com> 4.8-1
97823b
- update to 4.8
97823b
97823b
* Tue Oct 19 2010 Jeff Layton <jlayton@redhat.com> 4.7-1
97823b
- update to 4.7
97823b
97823b
* Fri Jul 30 2010 Jeff Layton <jlayton@redhat.com> 4.6-1
97823b
- update to 4.6
97823b
97823b
* Tue Jun 01 2010 Jeff Layton <jlayton@redhat.com> 4.5-2
97823b
- mount.cifs: fix parsing of cred= option (BZ#597756)
97823b
97823b
* Tue May 25 2010 Jeff Layton <jlayton@redhat.com> 4.5-1
97823b
- update to 4.5
97823b
97823b
* Thu Apr 29 2010 Jeff Layton <jlayton@redhat.com> 4.4-3
97823b
- mount.cifs: fix regression in prefixpath patch
97823b
97823b
* Thu Apr 29 2010 Jeff Layton <jlayton@redhat.com> 4.4-2
97823b
- mount.cifs: strip leading delimiter from prefixpath
97823b
97823b
* Wed Apr 28 2010 Jeff Layton <jlayton@redhat.com> 4.4-1
97823b
- update to 4.4
97823b
97823b
* Sat Apr 17 2010 Jeff Layton <jlayton@redhat.com> 4.3-2
97823b
- fix segfault when address list is exhausted (BZ#583230)
97823b
97823b
* Fri Apr 09 2010 Jeff Layton <jlayton@redhat.com> 4.3-1
97823b
- update to 4.3
97823b
97823b
* Fri Apr 02 2010 Jeff Layton <jlayton@redhat.com> 4.2-1
97823b
- update to 4.2
97823b
97823b
* Tue Mar 23 2010 Jeff Layton <jlayton@redhat.com> 4.1-1
97823b
- update to 4.1
97823b
97823b
* Mon Mar 08 2010 Jeff Layton <jlayton@redhat.com> 4.0-2
97823b
- fix bad pointer dereference in IPv6 scopeid handling
97823b
97823b
* Wed Mar 03 2010 Jeff Layton <jlayton@redhat.com> 4.0-1
97823b
- update to 4.0
97823b
- minor specfile fixes
97823b
97823b
* Fri Feb 26 2010 Jeff Layton <jlayton@redhat.com> 4.0-1rc1
97823b
- update to 4.0rc1
97823b
- fix prerelease version handling
97823b
97823b
* Mon Feb 08 2010 Jeff Layton <jlayton@redhat.com> 4.0a1-1
97823b
- first RPM package build
97823b