]>
Commit | Line | Data |
---|---|---|
8ccc4429 | 1 | Summary: Utilities for mounting and managing CIFS mounts |
79bd9cf2 | 2 | Summary(pl.UTF-8): Narzędzia do montowania i zarządzania montowaniami CIFS |
8ccc4429 | 3 | Name: cifs-utils |
e305a3d1 | 4 | Version: 7.0 |
3ee423de | 5 | Release: 2 |
f145a480 | 6 | License: GPL v3+ |
8ccc4429 | 7 | Group: Daemons |
e305a3d1 JB |
8 | Source0: https://ftp.samba.org/pub/linux-cifs/cifs-utils/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 518431bf43f23e6aacd97e80e2060df7 | |
79bd9cf2 | 10 | Patch0: %{name}-heimdal.patch |
3ee423de | 11 | Patch1: python3.patch |
e305a3d1 | 12 | URL: https://wiki.samba.org/index.php/LinuxCIFS_utils |
e6edaa1f JB |
13 | BuildRequires: autoconf >= 2.50 |
14 | BuildRequires: automake | |
30492ae0 | 15 | BuildRequires: docutils |
c17d5f62 | 16 | BuildRequires: heimdal-devel >= 1.5.1-3 |
8ccc4429 AM |
17 | BuildRequires: keyutils-devel |
18 | BuildRequires: libcap-ng-devel | |
0d8bfa6e | 19 | BuildRequires: libsmbclient-devel >= 1:4 |
8ccc4429 | 20 | BuildRequires: libtalloc-devel |
0d8bfa6e | 21 | BuildRequires: pam-devel |
8ccc4429 AM |
22 | Requires: keyutils |
23 | Obsoletes: mount-cifs | |
c17d5f62 | 24 | Conflicts: samba-client < 1:3.6.0 |
8ccc4429 AM |
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 | ||
79bd9cf2 JB |
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 | ||
0d8bfa6e JB |
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 | ||
8ccc4429 AM |
56 | %prep |
57 | %setup -q | |
79bd9cf2 | 58 | %patch0 -p1 |
3ee423de | 59 | %patch1 -p1 |
fe3d5032 | 60 | |
3ee423de JR |
61 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' \ |
62 | -e '1s,/usr/bin/env python3,%{__python3},' \ | |
e305a3d1 | 63 | smb2-quota \ |
3ee423de | 64 | smb2-secdesc \ |
e305a3d1 JB |
65 | checkopts \ |
66 | smbinfo | |
8ccc4429 AM |
67 | |
68 | %build | |
bb386497 AM |
69 | %{__aclocal} |
70 | %{__automake} | |
71 | %{__autoconf} | |
c17d5f62 | 72 | %configure \ |
0d8bfa6e | 73 | --with-libcap-ng \ |
e6edaa1f | 74 | --enable-cifsacl \ |
c17d5f62 | 75 | --enable-cifsidmap \ |
e6edaa1f | 76 | --enable-cifsupcall |
8ccc4429 AM |
77 | |
78 | %{__make} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
0d8bfa6e JB |
84 | DESTDIR=$RPM_BUILD_ROOT \ |
85 | pamdir=/%{_lib}/security | |
8ccc4429 AM |
86 | |
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
f145a480 | 92 | %doc AUTHORS README |
8ccc4429 | 93 | %attr(755,root,root) /sbin/mount.cifs |
fe3d5032 | 94 | %attr(755,root,root) /sbin/mount.smb3 |
79bd9cf2 | 95 | %attr(755,root,root) %{_bindir}/cifscreds |
8ccc4429 AM |
96 | %attr(755,root,root) %{_bindir}/getcifsacl |
97 | %attr(755,root,root) %{_bindir}/setcifsacl | |
fe3d5032 | 98 | %attr(755,root,root) %{_bindir}/smb2-quota |
683155a0 | 99 | %attr(755,root,root) %{_bindir}/smbinfo |
8ccc4429 AM |
100 | %attr(755,root,root) %{_sbindir}/cifs.upcall |
101 | %attr(755,root,root) %{_sbindir}/cifs.idmap | |
0d8bfa6e | 102 | %attr(755,root,root) /%{_lib}/security/pam_cifscreds.so |
2b4a66ff AM |
103 | %dir %{_libdir}/%{name} |
104 | %attr(755,root,root) %{_libdir}/%{name}/idmapwb.so | |
79bd9cf2 | 105 | %{_mandir}/man1/cifscreds.1* |
8ccc4429 AM |
106 | %{_mandir}/man1/getcifsacl.1* |
107 | %{_mandir}/man1/setcifsacl.1* | |
fe3d5032 | 108 | %{_mandir}/man1/smb2-quota.1* |
683155a0 | 109 | %{_mandir}/man1/smbinfo.1* |
8ccc4429 AM |
110 | %{_mandir}/man8/cifs.upcall.8* |
111 | %{_mandir}/man8/cifs.idmap.8* | |
2b4a66ff | 112 | %{_mandir}/man8/idmapwb.8* |
8ccc4429 | 113 | %{_mandir}/man8/mount.cifs.8* |
fe3d5032 | 114 | %{_mandir}/man8/mount.smb3.8* |
0d8bfa6e JB |
115 | %{_mandir}/man8/pam_cifscreds.8* |
116 | ||
117 | %files devel | |
118 | %defattr(644,root,root,755) | |
119 | %{_includedir}/cifsidmap.h |