Blame SPECS/cifs-utils.spec

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