Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Staging:A
cifs-utils
cifs-utils.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cifs-utils.spec of Package cifs-utils
# # spec file for package cifs-utils # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: cifs-utils Version: 6.5 Release: 0 Summary: Utilities for doing and managing mounts of the Linux CIFS filesystem License: GPL-3.0+ Group: System/Filesystems Url: http://www.samba.org/linux-cifs/cifs-utils/ Source: http://ftp.samba.org/pub/linux-cifs/%{name}/%{name}-%{version}.tar.bz2 Source5: http://ftp.samba.org/pub/linux-cifs/%{name}/%{name}-%{version}.tar.bz2.asc # http://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-pubkey_70F3B981.asc Source6: cifs-utils.keyring Source100: README.cifstab.migration %if "%{_vendor}" == "suse" %define NET_CFGDIR network %else %define NET_CFGDIR network-scripts %endif Source1: cifs.init %if 0%{?suse_version} PreReq: insserv %{?fillup_prereq} %else PreReq: /sbin/chkconfig %endif %define initdir %{_sysconfdir}/init.d Provides: cifs-mount = %{version} Obsoletes: cifs-mount < %{version} %if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140 BuildRequires: autoconf %endif BuildRequires: automake %if 0%{?suse_version} > 1020 BuildRequires: keyutils-devel %endif BuildRequires: krb5-devel %if 0%{?suse_version} > 1120 BuildRequires: libcap-ng-devel %else BuildRequires: libcap-devel %endif #!BuildIgnore: samba4-libs BuildRequires: libtalloc-devel %if 0%{?suse_version} > 1110 BuildRequires: fdupes %endif %if 0%{?mandriva_version} BuildRequires: libkeyutils-devel %endif %if 0%{?centos_version} > 599 || 0%{?fedora_version} > 14 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 1020 BuildRequires: libwbclient-devel %endif BuildRequires: pam-devel %if 0%{?suse_version} > 1020 BuildRequires: pkg-config %else BuildRequires: pkgconfig %endif Requires: keyutils %if ! %{defined _rundir} %define _rundir %{_localstatedir}/run %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The cifs-utils package consist of utilities for doing and managing mounts of the Linux CIFS filesystem. %package devel Summary: Files needed for building plugins for cifs-utils Group: Development/Libraries %description devel The SMB/CIFS protocol is a standard file sharing protocol widely deployed on Microsoft Windows machines. This package contains the header file necessary for building ID mapping plugins for cifs-utils. %package -n pam_cifscreds Summary: PAM module to manage NTLM credentials in kernel keyring Group: System/Libraries %description -n pam_cifscreds The pam_cifscreds PAM module is a tool for automatically adding credentials (username and password) for the purpose of establishing sessions in multiuser mounts. When a cifs filesystem is mounted with the "multiuser" option, and does not use krb5 authentication, it needs to be able to get the credentials for each user from somewhere. The pam_cifscreds module can be used to provide these credentials to the kernel automatically at login. %prep %setup -q cp -a ${RPM_SOURCE_DIR}/README.cifstab.migration . %build export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fpie" export LDFLAGS="-pie" autoreconf -i %{configure} \ --with-pamdir=/%{_lib}/security %{__make} %{?_smp_mflags} %install mkdir -p \ ${RPM_BUILD_ROOT}/%{_sysconfdir}/init.d %{__make} install \ DESTDIR=${RPM_BUILD_ROOT} %if 0%{?centos_version} > 599 || 0%{?fedora_version} > 14 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 1020 mkdir -p %{buildroot}%{_sysconfdir}/%{name} ln -s %{_libdir}/%{name}/idmapwb.so %{buildroot}%{_sysconfdir}/%{name}/idmap-plugin %endif mkdir -p %{buildroot}%{_sysconfdir}/request-key.d install -m 644 -p contrib/request-key.d/cifs.idmap.conf %{buildroot}%{_sysconfdir}/request-key.d install -m 644 -p contrib/request-key.d/cifs.spnego.conf %{buildroot}%{_sysconfdir}/request-key.d %if 0%{?suse_version} == 0 || 0%{?suse_version} > 1221 mkdir -p \ ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-{down,up}.d \ ${RPM_BUILD_ROOT}/%{_sysconfdir}/samba \ ${RPM_BUILD_ROOT}/%{_sbindir} \ ${RPM_BUILD_ROOT}/%{_rundir} install -m 0755 -p ${RPM_SOURCE_DIR}/cifs.init ${RPM_BUILD_ROOT}/%{_sysconfdir}/init.d/cifs ln -s service ${RPM_BUILD_ROOT}/%{_sbindir}/rccifs touch ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/%{NET_CFGDIR}/if-{down,up}.d/${script} \ ${RPM_BUILD_ROOT}%{_rundir}/cifs %endif # Hardlink duplicate files %if 0%{?suse_version} > 1110 %fdupes ${RPM_BUILD_ROOT} %endif %files %defattr(-,root,root) /sbin/mount.cifs %if 0%{?centos_version} > 599 || 0%{?fedora_version} > 14 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 1020 %{_bindir}/getcifsacl %{_bindir}/setcifsacl %{_sbindir}/cifs.idmap %{_mandir}/man1/getcifsacl.1.* %{_mandir}/man1/setcifsacl.1.* %{_mandir}/man8/cifs.idmap.8.* %endif %if 0%{?centos_version} > 499 || 0%{?fedora_version} > 14 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 499 || 0%{?suse_version} > 1020 %{_bindir}/cifscreds %{_sbindir}/cifs.upcall %{_mandir}/man1/cifscreds.1.* %{_mandir}/man8/cifs.upcall.8.* %endif %{_mandir}/man8/mount.cifs.8.* %dir %{_sysconfdir}/request-key.d %config(noreplace) %{_sysconfdir}/request-key.d/cifs.idmap.conf %config(noreplace) %{_sysconfdir}/request-key.d/cifs.spnego.conf %if 0%{?centos_version} > 599 || 0%{?fedora_version} > 14 || 0%{?mandriva_version} > 201100 || 0%{?rhel_version} > 599 || 0%{?suse_version} > 1020 %dir %{_libdir}/cifs-utils %dir %{_sysconfdir}/cifs-utils %config(noreplace) %{_sysconfdir}/cifs-utils/idmap-plugin %{_libdir}/%{name}/idmapwb.so %{_mandir}/man8/idmapwb.8.* %endif %if 0%{?suse_version} == 0 || 0%{?suse_version} > 1221 %attr(0754,root,root) %config %{_sysconfdir}/init.d/cifs %{_sbindir}/rccifs %dir %{_sysconfdir}/samba %ghost %{_rundir}/cifs %endif %doc README.cifstab.migration %files devel %defattr(-,root,root) %{_includedir}/cifsidmap.h %files -n pam_cifscreds %defattr(-,root,root) /%{_lib}/security/pam_cifscreds.so %{_mandir}/man8/pam_cifscreds.8.* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor