]> git.pld-linux.org Git - packages/cifs-utils.git/blob - cifs-utils.spec
- swith all scripts to python 3, rel 2
[packages/cifs-utils.git] / cifs-utils.spec
1 Summary:        Utilities for mounting and managing CIFS mounts
2 Summary(pl.UTF-8):      Narzędzia do montowania i zarządzania montowaniami CIFS
3 Name:           cifs-utils
4 Version:        7.0
5 Release:        2
6 License:        GPL v3+
7 Group:          Daemons
8 Source0:        https://ftp.samba.org/pub/linux-cifs/cifs-utils/%{name}-%{version}.tar.bz2
9 # Source0-md5:  518431bf43f23e6aacd97e80e2060df7
10 Patch0:         %{name}-heimdal.patch
11 Patch1:         python3.patch
12 URL:            https://wiki.samba.org/index.php/LinuxCIFS_utils
13 BuildRequires:  autoconf >= 2.50
14 BuildRequires:  automake
15 BuildRequires:  docutils
16 BuildRequires:  heimdal-devel >= 1.5.1-3
17 BuildRequires:  keyutils-devel
18 BuildRequires:  libcap-ng-devel
19 BuildRequires:  libsmbclient-devel >= 1:4
20 BuildRequires:  libtalloc-devel
21 BuildRequires:  pam-devel
22 Requires:       keyutils
23 Obsoletes:      mount-cifs
24 Conflicts:      samba-client < 1:3.6.0
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 The SMB/CIFS protocol is a standard file sharing protocol widely
29 deployed on Microsoft Windows machines. This package contains tools
30 for mounting shares on Linux using the SMB/CIFS protocol. The tools in
31 this package work in conjunction with support in the kernel to allow
32 one to mount a SMB/CIFS share onto a client and use it as if it were a
33 standard Linux file system.
34
35 %description -l pl.UTF-8
36 Protokół SMB/CIFS to standardowy protokół współdzielenia plików
37 szeroko wykorzystywany na komputerach z systemem Microsoft Windows.
38 Ten pakiet zawiera narzędzia do montowania pod Linuksem udziałów
39 udostępnionych poprzez protokół SMB/CIFS. Narzędzia z tego pakietu
40 współpracując z obsługą w jądrze pozwalają na montowanie udziałów
41 SMB/CIFS na systemie klienckim tak, jakby był to standardowy
42 linuksowy system plików.
43
44 %package devel
45 Summary:        Header file for cifs-utils ID Mapping Plugin interface
46 Summary(pl.UTF-8):      Plik nagłówkowy interfejsu wtyczek ID Mapping cifs-utils
47 Group:          Development/Libraries
48 # doesn't require base
49
50 %description devel
51 Header file for cifs-utils ID Mapping Plugin interface.
52
53 %description devel -l pl.UTF-8
54 Plik nagłówkowy interfejsu wtyczek ID Mapping cifs-utils.
55
56 %prep
57 %setup -q
58 %patch0 -p1
59 %patch1 -p1
60
61 %{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' \
62         -e '1s,/usr/bin/env python3,%{__python3},' \
63         smb2-quota \
64         smb2-secdesc \
65         checkopts \
66         smbinfo
67
68 %build
69 %{__aclocal}
70 %{__automake}
71 %{__autoconf}
72 %configure \
73         --with-libcap-ng \
74         --enable-cifsacl \
75         --enable-cifsidmap \
76         --enable-cifsupcall
77
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT \
85         pamdir=/%{_lib}/security
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc AUTHORS README
93 %attr(755,root,root) /sbin/mount.cifs
94 %attr(755,root,root) /sbin/mount.smb3
95 %attr(755,root,root) %{_bindir}/cifscreds
96 %attr(755,root,root) %{_bindir}/getcifsacl
97 %attr(755,root,root) %{_bindir}/setcifsacl
98 %attr(755,root,root) %{_bindir}/smb2-quota
99 %attr(755,root,root) %{_bindir}/smbinfo
100 %attr(755,root,root) %{_sbindir}/cifs.upcall
101 %attr(755,root,root) %{_sbindir}/cifs.idmap
102 %attr(755,root,root) /%{_lib}/security/pam_cifscreds.so
103 %dir %{_libdir}/%{name}
104 %attr(755,root,root) %{_libdir}/%{name}/idmapwb.so
105 %{_mandir}/man1/cifscreds.1*
106 %{_mandir}/man1/getcifsacl.1*
107 %{_mandir}/man1/setcifsacl.1*
108 %{_mandir}/man1/smb2-quota.1*
109 %{_mandir}/man1/smbinfo.1*
110 %{_mandir}/man8/cifs.upcall.8*
111 %{_mandir}/man8/cifs.idmap.8*
112 %{_mandir}/man8/idmapwb.8*
113 %{_mandir}/man8/mount.cifs.8*
114 %{_mandir}/man8/mount.smb3.8*
115 %{_mandir}/man8/pam_cifscreds.8*
116
117 %files devel
118 %defattr(644,root,root,755)
119 %{_includedir}/cifsidmap.h
This page took 0.118605 seconds and 4 git commands to generate.