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