]>
Commit | Line | Data |
---|---|---|
29511e6d | 1 | # |
e4bb74d8 | 2 | # Conditional build: |
a3c4e78e JB |
3 | %bcond_without ads # ActiveDirectory support |
4 | %bcond_without cups # CUPS support | |
5 | %bcond_without ldap # LDAP support | |
6 | %bcond_without avahi # Avahi support | |
a9009cd3 | 7 | %bcond_without system_libs # system libraries (talloc,tdb,tevent,ldb,ntdb) |
105507bc | 8 | |
e71e0470 JR |
9 | %if %{with system_libs} |
10 | %define talloc_ver 2.0.7 | |
cd86127c JR |
11 | %define tdb_ver 2:1.2.11 |
12 | %define ldb_ver 1.1.16 | |
f6857f17 | 13 | %define tevent_ver 0.9.18 |
c04968c4 | 14 | %define ntdb_ver 0.9 |
4ecf4d28 JB |
15 | %endif |
16 | ||
a3c4e78e JB |
17 | %include /usr/lib/rpm/macros.perl |
18 | ||
7d14b7f3 | 19 | %define virusfilter_version 0.1.3 |
7a0e596a JR |
20 | Summary: Active Directory server |
21 | Summary(pl.UTF-8): Serwer Active Directory | |
670da5b0 | 22 | Name: samba4 |
a9009cd3 | 23 | Version: 4.1.4 |
e2744b9d | 24 | Release: 2 |
6646cd44 | 25 | Epoch: 1 |
6bef715a | 26 | License: GPL v3 |
11d2c190 | 27 | Group: Networking/Daemons |
670da5b0 | 28 | Source0: http://www.samba.org/samba/ftp/stable/samba-%{version}.tar.gz |
a9009cd3 | 29 | # Source0-md5: c7871012ac40b8c74afff42bbd873bd7 |
ba850b61 | 30 | Source1: smb.init |
46c25e95 | 31 | Source2: samba.pamd |
46c25e95 JR |
32 | Source4: samba.sysconfig |
33 | Source5: samba.logrotate | |
138aecb0 | 34 | Source6: smb.conf |
68134596 | 35 | Source7: winbind.init |
36 | Source8: winbind.sysconfig | |
cd86127c | 37 | Source9: samba.init |
46c25e95 | 38 | Source10: https://github.com/downloads/fumiyas/samba-virusfilter/samba-virusfilter-%{virusfilter_version}.tar.bz2 |
7d14b7f3 | 39 | # Source10-md5: a3a30d5fbf309d356e8c5833db680c17 |
f5211db7 | 40 | Source11: samba3.logrotate |
34895621 | 41 | Patch0: system-heimdal.patch |
46c25e95 | 42 | Patch1: samba-c++-nofail.patch |
46c25e95 | 43 | Patch4: samba-lprng-no-dot-printers.patch |
cd86127c JR |
44 | Patch5: systemd-pid-dir.patch |
45 | Patch6: unicodePwd-nthash-values-over-LDAP.patch | |
c04968c4 | 46 | Patch7: link.patch |
7a52c5df | 47 | URL: http://www.samba.org/ |
bd658e80 | 48 | BuildRequires: acl-devel |
ea8d81e5 | 49 | BuildRequires: autoconf |
017136ce | 50 | BuildRequires: automake |
a0d23d1e | 51 | %{?with_avahi:BuildRequires: avahi-devel} |
95229e05 | 52 | BuildRequires: ceph-devel >= 0.73 |
aceac5ef | 53 | BuildRequires: ctdb-devel |
62dc8910 | 54 | %{?with_cups:BuildRequires: cups-devel >= 1:1.2.0} |
51bcdd9a | 55 | BuildRequires: dmapi-devel |
a3c759b7 | 56 | BuildRequires: docbook-style-xsl |
5b010594 | 57 | BuildRequires: gamin-devel |
ff01b4ff | 58 | BuildRequires: gdbm-devel |
9f74dab7 | 59 | BuildRequires: gettext-devel |
1ae9cf92 | 60 | BuildRequires: glusterfs-devel |
3dbf1ce9 | 61 | BuildRequires: gnutls-devel |
8e43bad6 | 62 | BuildRequires: heimdal-devel >= 1.5.3-1 |
9f74dab7 | 63 | BuildRequires: iconv |
1125cc60 | 64 | BuildRequires: keyutils-devel |
a3c759b7 | 65 | BuildRequires: libaio-devel |
34895621 | 66 | BuildRequires: libcom_err-devel |
53ce942a | 67 | BuildRequires: libmagic-devel |
4d8c5e20 | 68 | BuildRequires: libnscd-devel |
f092c096 | 69 | BuildRequires: libtool >= 2:1.4d |
40d90f9e | 70 | BuildRequires: make >= 3.81 |
0f00e211 | 71 | BuildRequires: ncurses-devel >= 5.2 |
e9c7865a | 72 | BuildRequires: ncurses-ext-devel >= 5.2 |
78d04323 | 73 | %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} |
793ad0f8 | 74 | BuildRequires: pam-devel >= 0.99.8.1 |
a3c4e78e JB |
75 | BuildRequires: perl-ExtUtils-MakeMaker |
76 | BuildRequires: perl-Parse-Yapp | |
9f74dab7 | 77 | BuildRequires: pkgconfig |
f092c096 | 78 | BuildRequires: popt-devel |
16c4fca4 | 79 | %{?with_pgsql:BuildRequires: postgresql-devel} |
190a259b JR |
80 | BuildRequires: python-devel |
81 | BuildRequires: python-dns | |
6bf53014 | 82 | BuildRequires: python-modules |
190a259b | 83 | BuildRequires: python-testtools |
f092c096 | 84 | BuildRequires: readline-devel >= 4.2 |
a3c4e78e | 85 | BuildRequires: rpm-perlprov |
a3c759b7 | 86 | BuildRequires: rpm-pythonprov |
6a43f27b | 87 | BuildRequires: rpmbuild(macros) >= 1.647 |
e155c475 | 88 | BuildRequires: sed >= 4.0 |
e71e0470 | 89 | %if %{with system_libs} |
e71e0470 | 90 | BuildRequires: ldb-devel >= %{ldb_ver} |
a9009cd3 | 91 | BuildRequires: ntdb-devel >= %{ntdb_ver} |
2fe4d181 | 92 | BuildRequires: python-ntdb >= %{ntdb_ver} |
e71e0470 JR |
93 | BuildRequires: python-ldb-devel >= %{ldb_ver} |
94 | BuildRequires: python-talloc-devel >= %{talloc_ver} | |
95 | BuildRequires: python-tevent >= %{tevent_ver} | |
05913998 JR |
96 | BuildRequires: talloc-devel >= %{talloc_ver} |
97 | BuildRequires: tdb-devel >= %{tdb_ver} | |
98 | BuildRequires: tevent-devel >= %{tevent_ver} | |
e71e0470 | 99 | %endif |
bd658e80 | 100 | BuildRequires: xfsprogs-devel |
34895621 | 101 | BuildConflicts: libbsd-devel |
656b05ab | 102 | Requires(post,preun): /sbin/chkconfig |
6646cd44 | 103 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
29533586 | 104 | Requires: %{name}-common-server = %{epoch}:%{version}-%{release} |
cd83be60 | 105 | Requires: logrotate >= 3.7-4 |
793ad0f8 | 106 | Requires: pam >= 0.99.8.1 |
6a43f27b | 107 | Requires: python-samba4 = %{epoch}:%{version}-%{release} |
8bf54aa6 | 108 | Requires: rc-scripts >= 0.4.0.12 |
27879fe9 | 109 | Requires: setup >= 2.4.6-7 |
dce29ff7 | 110 | Requires: systemd-units >= 38 |
62dc8910 | 111 | # smbd links with libcups |
ac083993 | 112 | %{?with_cups:Requires: cups-lib >= 1:1.2.0} |
e765216e JR |
113 | Obsoletes: samba-doc-html |
114 | Obsoletes: samba-doc-pdf | |
05913998 | 115 | Obsoletes: samba-pdb-xml |
da3dadf3 | 116 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1925a8b4 | 117 | |
c10bc67e | 118 | %define _sambahome /home/services/samba |
ddea14b0 | 119 | %if %{with cups} |
478e9eab | 120 | %define cups_serverbin %{_prefix}/lib/cups |
fd9d8b85 | 121 | %endif |
99795f36 | 122 | %define schemadir /usr/share/openldap/schema |
92c45d25 | 123 | |
01485082 ER |
124 | # CFLAGS modified (the second ./configure) |
125 | %undefine configure_cache | |
126 | ||
e11c6ca1 | 127 | %description |
cfa67cf6 | 128 | Samba provides an SMB server which can be used to provide network |
129 | services to SMB (sometimes called "Lan Manager") clients, including | |
130 | various versions of MS Windows, OS/2, and other Linux machines. Samba | |
131 | also provides some SMB clients, which complement the built-in SMB | |
132 | filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols | |
133 | and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol. | |
e11c6ca1 | 134 | |
7a0e596a | 135 | This package contains main Active Directory server daemon. |
96088f7b JR |
136 | |
137 | %description -l pl.UTF-8 | |
138 | Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia | |
139 | usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów | |
140 | takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie | |
141 | znajduje się również oprogramowanie klienckie. Samba używa protokołu | |
142 | NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma | |
143 | pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania | |
144 | haseł w standardzie MS i zarządzania bazą WINS. | |
145 | ||
a3c4e78e | 146 | Ten pakiet dostarcza główny demon Active Directory. |
da957f7e | 147 | |
ac6f9d13 | 148 | %package client |
7a0e596a JR |
149 | Summary: Samba AD client programs |
150 | Summary(pl.UTF-8): Klienci serwera Samba AD | |
2eedd257 | 151 | Group: Applications/Networking |
6646cd44 | 152 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
8e43bad6 | 153 | Requires: heimdal-libs >= 1.5.3-1 |
6a43f27b | 154 | Requires: python-samba4 = %{epoch}:%{version}-%{release} |
b0b9dc36 | 155 | Suggests: cifs-utils |
85d322d3 | 156 | Obsoletes: smbfs |
ac6f9d13 MC |
157 | |
158 | %description client | |
159 | Samba-client provides some SMB clients, which complement the build-in | |
160 | SMB filesystem in Linux. These allow accessing of SMB shares and | |
161 | printing to SMB printers. | |
162 | ||
96088f7b JR |
163 | %description client -l pl.UTF-8 |
164 | Samba-client dostarcza programy uzupełniające obsługę systemu plików | |
165 | SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i | |
bd658e80 | 166 | drukowanie w sieci SMB. |
ac6f9d13 MC |
167 | |
168 | %package common | |
ea8d81e5 | 169 | Summary: Files used by both Samba servers and clients |
a3c4e78e | 170 | Summary(pl.UTF-8): Pliki używane przez serwer i klientów Samby |
2eedd257 | 171 | Group: Networking/Daemons |
d39cef87 | 172 | Requires: python-samba4 = %{epoch}:%{version}-%{release} |
8e43bad6 JR |
173 | %if %{with system_libs} |
174 | Requires: ldb >= %{ldb_ver} | |
a9009cd3 | 175 | Requires: ntdb >= %{ntdb_ver} |
0b940f4e JR |
176 | Requires: talloc >= %{talloc_ver} |
177 | Requires: tdb >= %{tdb_ver} | |
8e43bad6 JR |
178 | Requires: tevent >= %{tevent_ver} |
179 | %endif | |
ac6f9d13 MC |
180 | |
181 | %description common | |
182 | Samba-common provides files necessary for both the server and client | |
183 | packages of Samba. | |
184 | ||
96088f7b JR |
185 | %description common -l pl.UTF-8 |
186 | Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i | |
4ecf4d28 | 187 | klientów Samby. |
ac6f9d13 | 188 | |
29533586 JR |
189 | %package common-server |
190 | Summary: Files used by both Samba3 PDC and Samba4 AD servers | |
191 | Summary(pl.UTF-8): Pliki używane przez serwery Samba3 PDC i Samba4 AD | |
192 | Group: Networking/Daemons | |
193 | ||
194 | %description common-server | |
195 | Files used by both Samba3 PDC and Samba4 AD servers. | |
196 | ||
197 | %description common-server -l pl.UTF-8 | |
198 | Pliki używane przez serwery Samba3 PDC i Samba4 AD. | |
199 | ||
29511e6d | 200 | %package winbind |
29511e6d | 201 | Summary: Samba-winbind daemon, utilities and documentation |
fa1faeca | 202 | Summary(pl.UTF-8): Demon samba-winbind, narzędzia i dokumentacja |
29511e6d | 203 | Group: Networking/Daemons |
29511e6d | 204 | Requires(post,preun): /sbin/chkconfig |
6646cd44 | 205 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
29511e6d | 206 | |
207 | %description winbind | |
208 | Provides the winbind daemon and testing tools to allow authentication | |
209 | and group/user enumeration from a Windows or Samba domain controller. | |
210 | ||
96088f7b JR |
211 | %description winbind -l pl.UTF-8 |
212 | Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia | |
213 | uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny | |
4d750758 JB |
214 | Windows lub Samba. |
215 | ||
f2b0247b ER |
216 | %package devel |
217 | Summary: Header files for Samba | |
fa1faeca | 218 | Summary(pl.UTF-8): Pliki nagłówkowe Samby |
f2b0247b | 219 | Group: Development/Libraries |
8e43bad6 | 220 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
f2b0247b ER |
221 | |
222 | %description devel | |
223 | Header files for Samba. | |
224 | ||
96088f7b JR |
225 | %description devel -l pl.UTF-8 |
226 | Pliki nagłówkowe Samby. | |
9c05ac07 | 227 | |
5ddfdd70 | 228 | %package -n pam-pam_smbpass3 |
382a477a JR |
229 | Summary: PAM Samba Password Module |
230 | Summary(pl.UTF-8): Moduł PAM smbpass | |
231 | Group: Base | |
5ddfdd70 | 232 | Obsoletes: pam-pam_smbpass < 1:4.0.8-3 |
6a43f27b | 233 | Obsoletes: pam_smbpass |
382a477a | 234 | |
5ddfdd70 | 235 | %description -n pam-pam_smbpass3 |
382a477a JR |
236 | PAM module which can be used on conforming systems to keep the |
237 | smbpasswd (Samba password) database in sync with the Unix password | |
238 | file. | |
239 | ||
5ddfdd70 | 240 | %description -n pam-pam_smbpass3 -l pl.UTF-8 |
382a477a JR |
241 | Moduł PAM, który może być używany do trzymania pliku smbpasswd (hasła |
242 | Samby) zsynchronizowanego z hasłami uniksowymi. | |
243 | ||
244 | %package pidl | |
245 | Summary: Perl IDL compiler | |
a3c4e78e | 246 | Summary(pl.UTF-8): Kompilator IDL w Perlu |
382a477a | 247 | Group: Development/Tools |
a3c4e78e | 248 | #Requires: perl-Parse-Yapp |
382a477a JR |
249 | |
250 | %description pidl | |
251 | The samba4-pidl package contains the Perl IDL compiler used by Samba | |
252 | and Wireshark to parse IDL and similar protocols. | |
253 | ||
a3c4e78e JB |
254 | %description pidl -l pl.UTF-8 |
255 | Ten pakiet zawiera kompilator IDL napisany w Perlu, używany przez | |
256 | Sambę oraz Wiresharka to analizy IDL i podobnych protokołów. | |
257 | ||
382a477a JR |
258 | %package -n python-samba4 |
259 | Summary: Samba Module for Python | |
a3c4e78e | 260 | Summary(pl.UTF-8): Moduł Samba dla Pythona |
382a477a | 261 | Group: Development/Languages/Python |
382a477a | 262 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
6a43f27b | 263 | Requires: python |
b069341b JR |
264 | Requires: python-dns |
265 | Requires: python-modules | |
8e43bad6 JR |
266 | %if %{with system_libs} |
267 | Requires: python-ldb >= %{ldb_ver} | |
a9009cd3 | 268 | Requires: python-ntdb >= %{ntdb_ver} |
8e43bad6 JR |
269 | Requires: python-talloc >= %{talloc_ver} |
270 | Requires: python-tevent >= %{tevent_ver} | |
271 | %endif | |
6ed8d415 | 272 | Obsoletes: python-samba |
382a477a JR |
273 | |
274 | %description -n python-samba4 | |
275 | Samba Module for Python. | |
276 | ||
a3c4e78e JB |
277 | %description -n python-samba4 -l pl.UTF-8 |
278 | Moduł Samba dla Pythona. | |
279 | ||
382a477a JR |
280 | %package test |
281 | Summary: Testing tools for Samba servers and clients | |
a3c4e78e | 282 | Summary(pl.UTF-8): Narzędzia testowe dla serwerów i klientów Samby |
382a477a JR |
283 | Group: Applications/System |
284 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
285 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
286 | Requires: %{name}-winbind = %{epoch}:%{version}-%{release} | |
287 | ||
288 | %description test | |
289 | samba4-test provides testing tools for both the server and client | |
290 | packages of Samba. | |
291 | ||
a3c4e78e JB |
292 | %description test -l pl.UTF-8 |
293 | Narzędzia testowe dla serwerów i klientów Samby. | |
294 | ||
382a477a | 295 | %package test-devel |
a3c4e78e JB |
296 | Summary: Testing development files for Samba servers and clients |
297 | Summary(pl.UTF-8): Pliki programistyczne narzędzi testowych dla serwerów i klientów Samby | |
382a477a JR |
298 | Group: Applications/System |
299 | Requires: %{name}-test = %{epoch}:%{version}-%{release} | |
300 | ||
301 | %description test-devel | |
a3c4e78e JB |
302 | samba-test-devel provides development files for the library used by |
303 | testing tools for both the server and client packages of Samba. | |
304 | ||
305 | %description test-devel -l pl.UTF-8 | |
306 | Ten pakiet zawiera pliki programistyczne biblioteki wykorzystywanej | |
307 | przez narzędzia testowe dla serwerów i klientów Samby. | |
382a477a JR |
308 | |
309 | %package -n samba3 | |
7a0e596a JR |
310 | Summary: SMB server |
311 | Summary(pl.UTF-8): Serwer SMB | |
382a477a | 312 | Group: Networking/Daemons |
29533586 | 313 | Requires: %{name}-common-server = %{epoch}:%{version}-%{release} |
6a43f27b | 314 | Requires: samba3-common = %{epoch}:%{version}-%{release} |
7a0e596a JR |
315 | # smbd links with libcups |
316 | %{?with_cups:Requires: cups-lib >= 1:1.2.0} | |
42c524a2 JR |
317 | Requires: logrotate >= 3.7-4 |
318 | Requires: rc-scripts >= 0.4.0.12 | |
319 | Requires: setup >= 2.4.6-7 | |
320 | Obsoletes: samba < 1:4.0.0-1 | |
7a0e596a JR |
321 | Obsoletes: samba-pdb-xml |
322 | Obsoletes: samba-vfs-block | |
d2d4b2ca JR |
323 | Obsoletes: samba-vfs-audit |
324 | Obsoletes: samba-vfs-cap | |
325 | Obsoletes: samba-vfs-catia | |
326 | Obsoletes: samba-vfs-default_quota | |
327 | Obsoletes: samba-vfs-expand_msdfs | |
328 | Obsoletes: samba-vfs-fake_perms | |
329 | Obsoletes: samba-vfs-netatalk | |
330 | Obsoletes: samba-vfs-recycle | |
331 | Obsoletes: samba-vfs-readahead | |
332 | Obsoletes: samba-vfs-readonly | |
333 | Obsoletes: samba-vfs-scannedonly | |
334 | Obsoletes: samba-vfs-shadow_copy | |
bec71280 | 335 | Obsoletes: samba3-server < 1:4.1.3-2.1 |
d2d4b2ca JR |
336 | Obsoletes: samba3-vfs-audit |
337 | Obsoletes: samba3-vfs-cap | |
338 | Obsoletes: samba3-vfs-catia | |
339 | Obsoletes: samba3-vfs-default_quota | |
340 | Obsoletes: samba3-vfs-expand_msdfs | |
341 | Obsoletes: samba3-vfs-fake_perms | |
342 | Obsoletes: samba3-vfs-netatalk | |
343 | Obsoletes: samba3-vfs-recycle | |
344 | Obsoletes: samba3-vfs-readahead | |
345 | Obsoletes: samba3-vfs-readonly | |
346 | Obsoletes: samba3-vfs-scannedonly | |
347 | Obsoletes: samba3-vfs-shadow_copy | |
382a477a JR |
348 | |
349 | %description -n samba3 | |
7a0e596a JR |
350 | Samba provides an SMB server which can be used to provide network |
351 | services to SMB (sometimes called "Lan Manager") clients, including | |
352 | various versions of MS Windows, OS/2, and other Linux machines. Samba | |
353 | also provides some SMB clients, which complement the built-in SMB | |
354 | filesystem in Linux. Samba uses NetBIOS over TCP/IP (NetBT) protocols | |
355 | and does NOT need NetBEUI (Microsoft Raw NetBIOS frame) protocol. | |
356 | ||
3dbf1ce9 | 357 | %description -n samba3 -l pl.UTF-8 |
7a0e596a JR |
358 | Samba udostępnia serwer SMB, który może być użyty w celu dostarczenia |
359 | usług sieciowych (potocznie zwanych "Lan Manager"), dla klientów | |
360 | takich jak MS Windows, OS/2 a także maszyn linuksowych. W pakiecie | |
361 | znajduje się również oprogramowanie klienckie. Samba używa protokołu | |
362 | NetBIOS po TCP/IP (NetBT) i nie wymaga protokołu NetBEUI. Ta wersja ma | |
363 | pełne wsparcie dla blokowania plików, a także wsparcie dla kodowania | |
364 | haseł w standardzie MS i zarządzania bazą WINS. | |
382a477a | 365 | |
6a43f27b ER |
366 | %package -n samba3-server |
367 | Summary: SMB server initscripts | |
368 | Summary(pl.UTF-8): Skrypty startowe serwera SMB | |
369 | Group: Networking/Daemons | |
370 | Requires(post,preun): /sbin/chkconfig | |
371 | Requires: logrotate >= 3.7-4 | |
372 | Requires: rc-scripts >= 0.4.0.12 | |
373 | Requires: samba3 = %{epoch}:%{version}-%{release} | |
374 | Requires: setup >= 2.4.6-7 | |
375 | Obsoletes: samba < 1:4.0.0-1 | |
376 | ||
377 | %description -n samba3-server | |
378 | This package contains startup scripts and services for old SMB server | |
379 | daemons (smbd, nmbd). | |
380 | ||
381 | %description -n samba3-server -l pl.UTF-8 | |
382 | Ten pakiet zawiera skrypty startowe dla starych usług serwera SMB | |
383 | (smbd, nmbd). | |
384 | ||
382a477a | 385 | %package -n samba3-client |
7a0e596a JR |
386 | Summary: Samba client programs |
387 | Summary(pl.UTF-8): Klienci serwera Samba | |
388 | Group: Applications/Networking | |
6a43f27b | 389 | Requires: heimdal-libs |
7a0e596a | 390 | Requires: samba3-common = %{epoch}:%{version}-%{release} |
664cf74c | 391 | Requires: samba3-libsmbclient = %{epoch}:%{version}-%{release} |
7a0e596a | 392 | Suggests: cifs-utils |
6a43f27b ER |
393 | Obsoletes: samba-client < 1:4.0.0-1 |
394 | Obsoletes: smbfs | |
382a477a JR |
395 | |
396 | %description -n samba3-client | |
7a0e596a JR |
397 | Samba-client provides some SMB clients, which complement the build-in |
398 | SMB filesystem in Linux. These allow accessing of SMB shares and | |
399 | printing to SMB printers. | |
400 | ||
3dbf1ce9 | 401 | %description -n samba3-client -l pl.UTF-8 |
7a0e596a JR |
402 | Samba-client dostarcza programy uzupełniające obsługę systemu plików |
403 | SMB zawartą w jądrze. Pozwalają one na współdzielenie zasobów SMB i | |
404 | drukowanie w sieci SMB. | |
382a477a JR |
405 | |
406 | %package -n samba3-common | |
7a0e596a JR |
407 | Summary: Files used by both Samba servers and clients |
408 | Summary(pl.UTF-8): Pliki używane przez serwer i klientów Samba | |
382a477a | 409 | Group: Networking/Daemons |
7a0e596a JR |
410 | Requires: talloc >= %{libtalloc_ver} |
411 | Requires: tdb >= %{libtdb_ver} | |
1b1289b5 | 412 | Obsoletes: samba-common < 1:4.0.0-1 |
382a477a JR |
413 | |
414 | %description -n samba3-common | |
7a0e596a JR |
415 | Samba-common provides files necessary for both the server and client |
416 | packages of Samba. | |
417 | ||
3dbf1ce9 | 418 | %description -n samba3-common -l pl.UTF-8 |
7a0e596a JR |
419 | Samba-common dostarcza pliki niezbędne zarówno dla serwera jak i |
420 | klientów Samba. | |
382a477a | 421 | |
f1c7ad61 JR |
422 | %package -n samba3-devel |
423 | Summary: Header files for Samba | |
424 | Summary(pl.UTF-8): Pliki nagłówkowe Samby | |
425 | Group: Development/Libraries | |
8e43bad6 | 426 | Requires: samba3-common = %{epoch}:%{version}-%{release} |
a3c4e78e | 427 | Obsoletes: samba-devel < 1:4.0.0-1 |
f1c7ad61 JR |
428 | |
429 | %description -n samba3-devel | |
430 | Header files for Samba. | |
431 | ||
432 | %description -n samba3-devel -l pl.UTF-8 | |
433 | Pliki nagłówkowe Samby. | |
434 | ||
01d12910 JR |
435 | %package -n samba3-vfs-ceph |
436 | Summary: VFS module host shares on Ceph file system | |
437 | Summary(pl.UTF-8): Moduł VFS do serwowania zasobów z systemu plików Ceph | |
438 | Group: Networking/Daemons | |
439 | Requires: samba3 = %{epoch}:%{version}-%{release} | |
440 | ||
441 | %description -n samba3-vfs-ceph | |
442 | VFS module host shares on Ceph file system. | |
443 | ||
444 | This module only works with the libceph.so user-space client. It is | |
445 | not needed if you are using the kernel client or the FUSE client. | |
446 | ||
447 | %description -n samba3-vfs-ceph -l pl.UTF-8 | |
448 | Moduł VFS do serwowania zasobów z systemu plików Ceph | |
449 | ||
450 | Ten moduł działa jednynie z klientem libceph.so. Jest zbędny w | |
451 | przypadku używania klienta dostarczanego przez jądro lub FUSE. | |
452 | ||
453 | %package -n samba3-vfs-glusterfs | |
454 | Summary: VFS module to host shares on GlusterFS file system | |
455 | Summary(pl.UTF-8): Moduł VFS do serwowania zasobów z systemu plików GlusterFS | |
456 | Group: Networking/Daemons | |
457 | Requires: samba3 = %{epoch}:%{version}-%{release} | |
458 | ||
459 | %description -n samba3-vfs-glusterfs | |
460 | VFS module to host shares on GlusterFS file system. | |
461 | ||
462 | %description -n samba3-vfs-glusterfs -l pl.UTF-8 | |
463 | Moduł VFS do serwowania zasobów z systemu plików GlusterFS. | |
464 | ||
c083eea8 | 465 | %package -n samba3-vfs-notify_fam |
9f74dab7 | 466 | Summary: VFS module to implement file change notifications |
8ba454ef AM |
467 | Summary(pl.UTF-8): Moduł VFS implementujący informowanie o zmianach w plikach |
468 | Group: Networking/Daemons | |
17937b31 | 469 | Requires: samba3 = %{epoch}:%{version}-%{release} |
1b1289b5 | 470 | Obsoletes: samba-vfs-notify_fam < 1:4.0.0-1 |
8ba454ef | 471 | |
c083eea8 | 472 | %description -n samba3-vfs-notify_fam |
8ba454ef AM |
473 | The vfs_notify_fam module makes use of the system FAM (File Alteration |
474 | Monitor) daemon to implement file change notifications for Windows | |
475 | clients. | |
476 | ||
c083eea8 | 477 | %description -n samba3-vfs-notify_fam -l pl.UTF-8 |
8ba454ef AM |
478 | Ten moduł używa demona FAM (File Alteration Monitor) do implementacji |
479 | informowania o zmianach w plikach dla klientów Windows. | |
480 | ||
5ddfdd70 | 481 | %package -n smbget3 |
382a477a JR |
482 | Summary: A utility for retrieving files using the SMB protocol |
483 | Summary(pl.UTF-8): Narzędzie do pobierania plików protokołem SMB | |
484 | Group: Applications/Networking | |
5ddfdd70 | 485 | Obsoletes: smbget < 1:4.0.8-3 |
4ecf4d28 | 486 | |
5ddfdd70 | 487 | %description -n smbget3 |
a3c4e78e | 488 | wget-like utility for downloading files over SMB. |
4ecf4d28 | 489 | |
5ddfdd70 | 490 | %description -n smbget3 -l pl.UTF-8 |
382a477a JR |
491 | Narzędzie podobne do wgeta do pobierania plików protokołem SMB |
492 | używanym w sieciach MS Windows. | |
4ecf4d28 | 493 | |
5ddfdd70 | 494 | %package -n cups-backend-smb3 |
382a477a JR |
495 | Summary: CUPS backend for printing to SMB printers |
496 | Summary(pl.UTF-8): Backend CUPS-a drukujący na drukarkach SMB | |
497 | Group: Applications/Printing | |
382a477a | 498 | Requires: cups >= 1:1.2.0 |
6a43f27b | 499 | Requires: samba3-client = %{epoch}:%{version}-%{release} |
5ddfdd70 | 500 | Obsoletes: cups-backend-smb < 1:4.0.8-3 |
4ecf4d28 | 501 | |
5ddfdd70 | 502 | %description -n cups-backend-smb3 |
382a477a | 503 | CUPS backend for printing to SMB printers. |
99795f36 | 504 | |
5ddfdd70 | 505 | %description -n cups-backend-smb3 -l pl.UTF-8 |
382a477a | 506 | Backend CUPS-a drukujący na drukarkach SMB. |
99795f36 | 507 | |
382a477a JR |
508 | %package -n samba3-winbind |
509 | Summary: Samba-winbind daemon, utilities and documentation | |
510 | Summary(pl.UTF-8): Demon samba-winbind, narzędzia i dokumentacja | |
511 | Group: Networking/Daemons | |
512 | Requires(post,preun): /sbin/chkconfig | |
29533586 | 513 | Requires: samba3-common = %{epoch}:%{version}-%{release} |
382a477a | 514 | Requires: systemd-units >= 38 |
1b1289b5 | 515 | Obsoletes: samba-winbind < 1:4.0.0-1 |
6646cd44 | 516 | |
382a477a JR |
517 | %description -n samba3-winbind |
518 | Provides the winbind daemon and testing tools to allow authentication | |
519 | and group/user enumeration from a Windows or Samba domain controller. | |
6646cd44 | 520 | |
382a477a JR |
521 | %description -n samba3-winbind -l pl.UTF-8 |
522 | Pakiet zawiera demona winbind oraz narzędzia testowe. Umożliwia | |
523 | uwierzytelnianie i wyliczanie grup/użytkowników z kontrolera domeny | |
524 | Windows lub Samba. | |
6646cd44 | 525 | |
5ddfdd70 | 526 | %package -n nss_wins3 |
382a477a JR |
527 | Summary: Name Service Switch service for WINS |
528 | Summary(pl.UTF-8): Usługa Name Service Switch dla WINS | |
529 | Group: Base | |
8e43bad6 | 530 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
5ddfdd70 | 531 | Obsoletes: nss_wins < 1:4.0.8-3 |
382a477a | 532 | |
5ddfdd70 | 533 | %description -n nss_wins3 |
382a477a JR |
534 | Provides the libnss_wins shared library which resolves NetBIOS names |
535 | to IP addresses. | |
536 | ||
5ddfdd70 | 537 | %description -n nss_wins3 -l pl.UTF-8 |
382a477a JR |
538 | Biblioteka dzielona libnss_wins rozwiązująca nazwy NetBIOS na adresy |
539 | IP. | |
540 | ||
664cf74c | 541 | %package -n samba3-libsmbclient |
a3c4e78e JB |
542 | Summary: libsmbclient and libwbclient - Samba client libraries |
543 | Summary(pl.UTF-8): libsmbclient i libwbclient - biblioteki klienckie Samby | |
382a477a | 544 | Group: Libraries |
277b5368 | 545 | Obsoletes: libsmbclient |
382a477a | 546 | |
664cf74c | 547 | %description -n samba3-libsmbclient |
a3c4e78e JB |
548 | libsmbclient and libwbclient - libraries that allow to use Samba |
549 | client functions. | |
382a477a | 550 | |
664cf74c | 551 | %description -n samba3-libsmbclient -l pl.UTF-8 |
a3c4e78e JB |
552 | libsmbclient i libwbclient - biblioteki pozwalające korzystać z funcji |
553 | klienta Samby. | |
382a477a | 554 | |
664cf74c | 555 | %package -n samba3-libsmbclient-devel |
a3c4e78e JB |
556 | Summary: Development files for Samba client libraries |
557 | Summary(pl.UTF-8): Pliki programistyczne bibliotek klienta Samby | |
382a477a | 558 | Group: Development/Libraries |
664cf74c | 559 | Requires: samba3-libsmbclient = %{epoch}:%{version}-%{release} |
65f6e010 | 560 | Provides: libsmbclient-devel |
277b5368 JR |
561 | Obsoletes: libsmbclient-devel |
562 | Obsoletes: libsmbclient-static | |
6646cd44 | 563 | |
664cf74c | 564 | %description -n samba3-libsmbclient-devel |
a3c4e78e | 565 | Header files for libsmbclient and libwbclient libraries. |
6646cd44 | 566 | |
664cf74c | 567 | %description -n samba3-libsmbclient-devel -l pl.UTF-8 |
a3c4e78e | 568 | Pliki nagłówkowe bibliotek libsmbclient i libwbclient. |
c083eea8 | 569 | |
1b1289b5 | 570 | %package -n openldap-schema-samba3 |
382a477a | 571 | Summary: Samba LDAP schema |
a3c4e78e | 572 | Summary(pl.UTF-8): Schemat LDAP dla Samby |
ed426448 | 573 | Group: Networking/Daemons |
382a477a JR |
574 | Requires(post,postun): sed >= 4.0 |
575 | Requires: openldap-servers | |
1b1289b5 | 576 | Obsoletes: openldap-schema-samba < 1:4.0.0-1 |
ed426448 | 577 | |
17234a2e | 578 | %description -n openldap-schema-samba3 |
a3c4e78e | 579 | This package contains samba.schema for OpenLDAP. |
382a477a | 580 | |
17234a2e | 581 | %description -n openldap-schema-samba3 -l pl.UTF-8 |
a3c4e78e | 582 | Ten pakiet zawiera schemat Samby (samba.schema) dla OpenLDAP-a. |
ed426448 | 583 | |
1925a8b4 | 584 | %prep |
670da5b0 | 585 | %setup -q -n samba-%{version} |
34895621 | 586 | %patch0 -p1 |
8932759c | 587 | %patch1 -p1 |
ce9af3e2 | 588 | %patch4 -p1 |
450db13e | 589 | %patch5 -p1 |
2aa9f2b6 | 590 | %patch6 -p1 |
c04968c4 | 591 | %patch7 -p1 |
6fb3721a | 592 | |
7f7b5c36 JR |
593 | sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python|' source4/scripting/bin/samba* |
594 | sed -i -e 's|#!/usr/bin/env perl|#!/usr/bin/perl|' pidl/pidl | |
595 | ||
1925a8b4 | 596 | %build |
34895621 JR |
597 | LDFLAGS="${LDFLAGS:-%rpmldflags}" \ |
598 | CFLAGS="${CFLAGS:-%rpmcflags}" \ | |
599 | CXXFLAGS="${CXXFLAGS:-%rpmcxxflags}" \ | |
600 | FFLAGS="${FFLAGS:-%rpmcflags}" \ | |
601 | FCFLAGS="${FCFLAGS:-%rpmcflags}" \ | |
602 | CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \ | |
603 | %{?__cc:CC="%{__cc}"} \ | |
604 | %{?__cxx:CXX="%{__cxx}"} \ | |
605 | ./configure \ | |
606 | --enable-fhs \ | |
607 | --prefix=%{_prefix} \ | |
608 | --exec-prefix=%{_exec_prefix} \ | |
609 | --bindir=%{_bindir} \ | |
610 | --sbindir=%{_sbindir} \ | |
611 | --sysconfdir=%{_sysconfdir} \ | |
612 | --datadir=%{_datadir} \ | |
613 | --includedir=%{_includedir} \ | |
614 | --libdir=%{_libdir} \ | |
615 | --libexecdir=%{_libexecdir} \ | |
616 | --localstatedir=%{_localstatedir} \ | |
617 | --sharedstatedir=%{_sharedstatedir} \ | |
618 | --mandir=%{_mandir} \ | |
619 | --infodir=%{_infodir} \ | |
2e711b12 JR |
620 | --with-privatelibdir=%{_libdir}/samba \ |
621 | --with-modulesdir=%{_libdir}/samba \ | |
01485082 | 622 | --with-pammodulesdir=/%{_lib}/security \ |
34895621 JR |
623 | --with-lockdir=/var/lib/samba \ |
624 | --with-privatedir=%{_sysconfdir}/samba \ | |
34895621 | 625 | --disable-rpath-install \ |
5c9e395f | 626 | --builtin-libraries=replace,ccan \ |
a9009cd3 | 627 | --bundled-libraries=NONE,subunit,iniparser,%{!?with_system_libs:talloc,tdb,ldb,ntdb,tevent,pytalloc,pytalloc-util,pytdb,pytevent,pyldb,pyldb-util} \ |
34895621 JR |
628 | --private-libraries=smbclient,smbsharemodes,wbclient \ |
629 | --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2,pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4,auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4 \ | |
f4f0ea2d | 630 | --with-acl-support \ |
34895621 | 631 | --with%{!?with_ads:out}-ads \ |
40d90f9e | 632 | --with-aio-support \ |
432ee34d | 633 | --with-automount \ |
34895621 JR |
634 | --with-dmapi \ |
635 | --with-dnsupdate \ | |
636 | --with-iconv \ | |
637 | --with%{!?with_ldap:out}-ldap \ | |
d1d64cbe | 638 | --with-pam \ |
29511e6d | 639 | --with-pam_smbpass \ |
4ef99dd8 | 640 | --with-quotas \ |
e9c7865a | 641 | --with-regedit \ |
34895621 | 642 | --with-sendfile-support \ |
4ef99dd8 | 643 | --with-syslog \ |
644 | --with-utmp \ | |
34895621 | 645 | --with-winbind \ |
66e5c63e | 646 | --%{?with_avahi:en}%{!?with_avahi:dis}able-avahi \ |
34895621 JR |
647 | --enable-cups \ |
648 | --enable-iprint | |
1925a8b4 | 649 | |
70ff6d03 | 650 | %{__make} |
192f48a8 | 651 | |
6646cd44 JR |
652 | # Build PIDL for installation into vendor directories before |
653 | # 'make proto' gets to it. | |
654 | cd pidl | |
655 | %{__perl} Makefile.PL \ | |
656 | INSTALLDIRS=vendor | |
657 | ||
1925a8b4 | 658 | %install |
659 | rm -rf $RPM_BUILD_ROOT | |
cd86127c | 660 | install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,pam.d,security,sysconfig/rc-inetd,ld.so.conf.d,env.d} \ |
2e711b12 | 661 | $RPM_BUILD_ROOT{/var/{log/archive,spool}/samba,/var/lib/samba/printing} \ |
08bf002e | 662 | $RPM_BUILD_ROOT/var/log/samba/cores/{smbd,nmbd} \ |
2e711b12 JR |
663 | $RPM_BUILD_ROOT{/sbin,/%{_lib}/security,%{_libdir},%{_libdir}/samba/vfs,%{_includedir},%{_sambahome},%{schemadir}} \ |
664 | $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir}} | |
ba850b61 | 665 | |
34895621 | 666 | %{__make} install \ |
bd658e80 | 667 | DESTDIR=$RPM_BUILD_ROOT \ |
29511e6d | 668 | CONFIGDIR=$RPM_BUILD_ROOT%{_sysconfdir}/samba |
bd658e80 | 669 | |
6646cd44 JR |
670 | # Undo the PIDL install, we want to try again with the right options. |
671 | %{__rm} -r $RPM_BUILD_ROOT/%{_datadir}/perl5 | |
672 | ||
673 | # Install PIDL | |
674 | cd pidl | |
675 | %{__make} install \ | |
676 | PERL_INSTALL_ROOT=$RPM_BUILD_ROOT | |
677 | cd .. | |
678 | ||
679 | # Clean out crap left behind by the PIDL install | |
680 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/wscript_build | |
681 | %{__rm} -r $RPM_BUILD_ROOT%{perl_vendorlib}/Parse/Yapp | |
fbf926f3 | 682 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Parse/Pidl/.packlist |
6646cd44 | 683 | |
42039dcb JR |
684 | # not ready for production, and no MIT kerberos in PLD |
685 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/mit_samba.so | |
686 | ||
b25f7233 | 687 | install -p source3/script/mksmbpasswd.sh $RPM_BUILD_ROOT%{_sbindir} |
1925a8b4 | 688 | |
2e711b12 JR |
689 | install packaging/systemd/samba.conf.tmp $RPM_BUILD_ROOT%{systemdtmpfilesdir}/samba.conf |
690 | install packaging/systemd/nmb.service $RPM_BUILD_ROOT%{systemdunitdir} | |
691 | install packaging/systemd/samba.service $RPM_BUILD_ROOT%{systemdunitdir} | |
692 | install packaging/systemd/smb.service $RPM_BUILD_ROOT%{systemdunitdir} | |
693 | install packaging/systemd/winbind.service $RPM_BUILD_ROOT%{systemdunitdir} | |
694 | ||
b25f7233 ER |
695 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/smb |
696 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/samba | |
b25f7233 ER |
697 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/samba |
698 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/samba | |
f5211db7 | 699 | cp -p %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/samba3 |
3dbf1ce9 | 700 | cp -p %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/samba/smb.conf |
b25f7233 ER |
701 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/winbind |
702 | cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/winbind | |
cd86127c JR |
703 | install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/samba |
704 | ||
705 | echo "LDB_MODULES_PATH=%{_libdir}/samba/ldb" > $RPM_BUILD_ROOT/etc/env.d/LDB_MODULES_PATH | |
29511e6d | 706 | |
37a62870 JR |
707 | # move lib{smb,wb}client where they always were for compatibility |
708 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/samba/libsmbclient.so.* $RPM_BUILD_ROOT%{_libdir} | |
709 | ln -s libsmbclient.so.0 $RPM_BUILD_ROOT%{_libdir}/libsmbclient.so | |
710 | ln -s libwbclient.so.0 $RPM_BUILD_ROOT%{_libdir}/libwbclient.so | |
711 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/samba/libwbclient.so.* $RPM_BUILD_ROOT%{_libdir} | |
712 | %{__mv} $RPM_BUILD_ROOT%{_includedir}/samba-4.0/libsmbclient.h $RPM_BUILD_ROOT%{_includedir} | |
713 | %{__mv} $RPM_BUILD_ROOT%{_includedir}/samba-4.0/wbclient.h $RPM_BUILD_ROOT%{_includedir} | |
714 | ||
34895621 JR |
715 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libnss_winbind.so* $RPM_BUILD_ROOT/%{_lib} |
716 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libnss_wins.so* $RPM_BUILD_ROOT/%{_lib} | |
717 | install -p bin/vfstest $RPM_BUILD_ROOT%{_bindir} | |
79d8a749 | 718 | |
6a2e83e0 | 719 | touch $RPM_BUILD_ROOT/var/lib/samba/{wins.dat,browse.dat} |
1925a8b4 | 720 | |
01485082 | 721 | echo '127.0.0.1 localhost' > $RPM_BUILD_ROOT%{_sysconfdir}/samba/lmhosts |
8b604b68 | 722 | |
b069341b JR |
723 | echo "%{_libdir}/samba" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/samba.conf |
724 | ||
ddea14b0 | 725 | %if %{with cups} |
fd9d8b85 JB |
726 | install -d $RPM_BUILD_ROOT%{cups_serverbin}/backend |
727 | ln -s %{_bindir}/smbspool $RPM_BUILD_ROOT%{cups_serverbin}/backend/smb | |
728 | %endif | |
9f6f5df1 | 729 | |
29511e6d | 730 | > $RPM_BUILD_ROOT%{_sysconfdir}/samba/smbusers |
8b604b68 | 731 | > $RPM_BUILD_ROOT/etc/security/blacklist.samba |
11d2c190 | 732 | |
105507bc | 733 | %if %{with ldap} |
99795f36 | 734 | install examples/LDAP/samba.schema $RPM_BUILD_ROOT%{schemadir} |
105507bc | 735 | %endif |
99795f36 | 736 | |
7a0e596a | 737 | # remove man pages for not installed commands |
fbf926f3 | 738 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/log2pcap.1* |
fbf926f3 JR |
739 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_cacheprime.8* |
740 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_gpfs.8* | |
741 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_prealloc.8* | |
742 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/vfs_tsmsm.8* | |
7a0e596a | 743 | |
1a8c003b AM |
744 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
745 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
f6857f17 | 746 | %py_postclean |
1a8c003b | 747 | |
ea8d81e5 JB |
748 | %clean |
749 | rm -rf $RPM_BUILD_ROOT | |
9661cd11 | 750 | |
1925a8b4 | 751 | %post |
cd86127c JR |
752 | /sbin/chkconfig --add samba |
753 | %service samba restart "Samba AD daemon" | |
dce29ff7 | 754 | %systemd_post samba.service |
1925a8b4 | 755 | |
756 | %preun | |
cd86127c JR |
757 | if [ "$1" = "0" ]; then |
758 | %service samba stop | |
759 | /sbin/chkconfig --del samba | |
760 | fi | |
dce29ff7 JR |
761 | %systemd_preun samba.service |
762 | ||
763 | %postun | |
764 | %systemd_reload | |
11d2c190 | 765 | |
0b940f4e JR |
766 | %post common -p /sbin/ldconfig |
767 | %postun common -p /sbin/ldconfig | |
70975be6 | 768 | |
d39cef87 JR |
769 | %post -n python-samba4 -p /sbin/ldconfig |
770 | %postun -n python-samba4 -p /sbin/ldconfig | |
771 | ||
42c524a2 | 772 | %post -n samba3 |
382a477a JR |
773 | /sbin/chkconfig --add smb |
774 | %service smb restart "Samba3 daemons" | |
1a90c755 | 775 | %systemd_post smb.service nmb.service |
382a477a | 776 | |
42c524a2 | 777 | %preun -n samba3 |
382a477a JR |
778 | if [ "$1" = "0" ]; then |
779 | %service smb stop | |
217f90c0 | 780 | /sbin/chkconfig --del smb |
382a477a JR |
781 | fi |
782 | %systemd_preun smb.service nmb.service | |
783 | ||
42c524a2 | 784 | %postun -n samba3 |
382a477a JR |
785 | %systemd_reload |
786 | ||
42c524a2 | 787 | %triggerpostun -n samba3 -- samba < 1:4.0.0-1 |
00fd225e JR |
788 | /sbin/chkconfig --add smb |
789 | %service smb restart "Samba3 daemons" | |
790 | %systemd_post smb.service nmb.service | |
791 | ||
382a477a | 792 | %post -n samba3-winbind |
29511e6d | 793 | /sbin/chkconfig --add winbind |
27879fe9 | 794 | %service winbind restart "Winbind daemon" |
dce29ff7 | 795 | %systemd_post winbind.service |
29511e6d | 796 | |
382a477a | 797 | %preun -n samba3-winbind |
29511e6d | 798 | if [ "$1" = "0" ]; then |
27879fe9 | 799 | %service winbind stop |
29511e6d | 800 | /sbin/chkconfig --del winbind |
801 | fi | |
dce29ff7 JR |
802 | %systemd_preun winbind.service |
803 | ||
382a477a | 804 | %postun -n samba3-winbind |
dce29ff7 | 805 | %systemd_reload |
29511e6d | 806 | |
00fd225e JR |
807 | %triggerpostun -n samba3-winbind -- samba-winbind < 1:4.0.0-1 |
808 | /sbin/chkconfig --add winbind | |
809 | %service winbind restart "Winbind daemon" | |
810 | %systemd_post winbind.service | |
811 | ||
8bb2da81 | 812 | %post -n openldap-schema-samba3 |
c4db757c ER |
813 | # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber) |
814 | %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis | |
27879fe9 | 815 | %service -q ldap restart |
99795f36 | 816 | |
8bb2da81 | 817 | %postun -n openldap-schema-samba3 |
99795f36 | 818 | if [ "$1" = "0" ]; then |
c4db757c | 819 | %openldap_schema_unregister %{schemadir}/samba.schema |
27879fe9 | 820 | %service -q ldap restart |
99795f36 ER |
821 | fi |
822 | ||
00fd225e JR |
823 | %triggerpostun -n openldap-schema-samba3 -- openldap-schema-samba < 1:4.0.0-1 |
824 | # dependant schemas: cosine(uid) inetorgperson(displayName) nis(gidNumber) | |
825 | %openldap_schema_register %{schemadir}/samba.schema -d cosine,inetorgperson,nis | |
826 | %service -q ldap restart | |
827 | ||
1925a8b4 | 828 | %files |
829 | %defattr(644,root,root,755) | |
cd86127c | 830 | %config(noreplace) %verify(not md5 mtime size) /etc/env.d/LDB_MODULES_PATH |
9ff647f7 | 831 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba |
cd86127c | 832 | %attr(754,root,root) /etc/rc.d/init.d/samba |
0b940f4e JR |
833 | %{systemdunitdir}/samba.service |
834 | %{systemdtmpfilesdir}/samba.conf | |
c083eea8 | 835 | %attr(755,root,root) %{_bindir}/oLschema2ldif |
0b940f4e JR |
836 | %attr(755,root,root) %{_sbindir}/samba |
837 | %attr(755,root,root) %{_sbindir}/samba_dnsupdate | |
7f7b5c36 | 838 | %attr(755,root,root) %{_sbindir}/samba_kcc |
0b940f4e JR |
839 | %attr(755,root,root) %{_sbindir}/samba_spnupdate |
840 | %attr(755,root,root) %{_sbindir}/samba_upgradedns | |
0b940f4e | 841 | %attr(755,root,root) %{_libdir}/samba/libdsdb-module.so |
c083eea8 | 842 | %attr(755,root,root) %{_libdir}/samba/libpac.so |
0b940f4e JR |
843 | %dir %{_libdir}/samba/bind9 |
844 | %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9.so | |
845 | %attr(755,root,root) %{_libdir}/samba/bind9/dlz_bind9_9.so | |
846 | %dir %{_libdir}/samba/hdb | |
847 | %attr(755,root,root) %{_libdir}/samba/hdb/hdb_samba4.so | |
0b940f4e JR |
848 | %dir %{_libdir}/samba/gensec |
849 | %attr(755,root,root) %{_libdir}/samba/gensec/krb5.so | |
e4310f27 | 850 | %dir %{_libdir}/samba/ldb |
e4310f27 | 851 | %attr(755,root,root) %{_libdir}/samba/ldb/aclread.so |
0b940f4e | 852 | %attr(755,root,root) %{_libdir}/samba/ldb/acl.so |
e4310f27 JR |
853 | %attr(755,root,root) %{_libdir}/samba/ldb/anr.so |
854 | %attr(755,root,root) %{_libdir}/samba/ldb/descriptor.so | |
855 | %attr(755,root,root) %{_libdir}/samba/ldb/dirsync.so | |
856 | %attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_in.so | |
857 | %attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_out.so | |
858 | %attr(755,root,root) %{_libdir}/samba/ldb/extended_dn_store.so | |
859 | %attr(755,root,root) %{_libdir}/samba/ldb/ildap.so | |
860 | %attr(755,root,root) %{_libdir}/samba/ldb/instancetype.so | |
861 | %attr(755,root,root) %{_libdir}/samba/ldb/lazy_commit.so | |
862 | %attr(755,root,root) %{_libdir}/samba/ldb/ldbsamba_extensions.so | |
863 | %attr(755,root,root) %{_libdir}/samba/ldb/linked_attributes.so | |
864 | %attr(755,root,root) %{_libdir}/samba/ldb/local_password.so | |
865 | %attr(755,root,root) %{_libdir}/samba/ldb/new_partition.so | |
e4310f27 | 866 | %attr(755,root,root) %{_libdir}/samba/ldb/objectclass_attrs.so |
0b940f4e | 867 | %attr(755,root,root) %{_libdir}/samba/ldb/objectclass.so |
e4310f27 JR |
868 | %attr(755,root,root) %{_libdir}/samba/ldb/objectguid.so |
869 | %attr(755,root,root) %{_libdir}/samba/ldb/operational.so | |
870 | %attr(755,root,root) %{_libdir}/samba/ldb/partition.so | |
871 | %attr(755,root,root) %{_libdir}/samba/ldb/password_hash.so | |
872 | %attr(755,root,root) %{_libdir}/samba/ldb/ranged_results.so | |
873 | %attr(755,root,root) %{_libdir}/samba/ldb/repl_meta_data.so | |
874 | %attr(755,root,root) %{_libdir}/samba/ldb/resolve_oids.so | |
875 | %attr(755,root,root) %{_libdir}/samba/ldb/rootdse.so | |
876 | %attr(755,root,root) %{_libdir}/samba/ldb/samba3sam.so | |
877 | %attr(755,root,root) %{_libdir}/samba/ldb/samba3sid.so | |
878 | %attr(755,root,root) %{_libdir}/samba/ldb/samba_dsdb.so | |
879 | %attr(755,root,root) %{_libdir}/samba/ldb/samba_secrets.so | |
880 | %attr(755,root,root) %{_libdir}/samba/ldb/samldb.so | |
881 | %attr(755,root,root) %{_libdir}/samba/ldb/schema_data.so | |
882 | %attr(755,root,root) %{_libdir}/samba/ldb/schema_load.so | |
883 | %attr(755,root,root) %{_libdir}/samba/ldb/secrets_tdb_sync.so | |
884 | %attr(755,root,root) %{_libdir}/samba/ldb/show_deleted.so | |
885 | %attr(755,root,root) %{_libdir}/samba/ldb/simple_dn.so | |
886 | %attr(755,root,root) %{_libdir}/samba/ldb/simple_ldap_map.so | |
887 | %attr(755,root,root) %{_libdir}/samba/ldb/subtree_delete.so | |
888 | %attr(755,root,root) %{_libdir}/samba/ldb/subtree_rename.so | |
889 | %attr(755,root,root) %{_libdir}/samba/ldb/update_keytab.so | |
890 | %attr(755,root,root) %{_libdir}/samba/ldb/wins_ldb.so | |
382a477a JR |
891 | %dir %{_libdir}/samba/process_model |
892 | %attr(755,root,root) %{_libdir}/samba/process_model/onefork.so | |
893 | %attr(755,root,root) %{_libdir}/samba/process_model/prefork.so | |
894 | %attr(755,root,root) %{_libdir}/samba/process_model/standard.so | |
895 | %dir %{_libdir}/samba/service | |
896 | %attr(755,root,root) %{_libdir}/samba/service/cldap.so | |
897 | %attr(755,root,root) %{_libdir}/samba/service/dcerpc.so | |
898 | %attr(755,root,root) %{_libdir}/samba/service/dns.so | |
899 | %attr(755,root,root) %{_libdir}/samba/service/dns_update.so | |
900 | %attr(755,root,root) %{_libdir}/samba/service/drepl.so | |
901 | %attr(755,root,root) %{_libdir}/samba/service/kcc.so | |
902 | %attr(755,root,root) %{_libdir}/samba/service/kdc.so | |
903 | %attr(755,root,root) %{_libdir}/samba/service/ldap.so | |
904 | %attr(755,root,root) %{_libdir}/samba/service/nbtd.so | |
905 | %attr(755,root,root) %{_libdir}/samba/service/ntp_signd.so | |
906 | %attr(755,root,root) %{_libdir}/samba/service/s3fs.so | |
907 | %attr(755,root,root) %{_libdir}/samba/service/smb.so | |
908 | %attr(755,root,root) %{_libdir}/samba/service/web.so | |
909 | %attr(755,root,root) %{_libdir}/samba/service/winbind.so | |
910 | %attr(755,root,root) %{_libdir}/samba/service/wrepl.so | |
0b940f4e JR |
911 | %{_datadir}/samba/setup |
912 | %{_mandir}/man1/oLschema2ldif.1* | |
913 | %{_mandir}/man8/samba.8* | |
c9c921bd | 914 | |
ac6f9d13 | 915 | %files client |
2eedd257 | 916 | %defattr(644,root,root,755) |
6646cd44 | 917 | %attr(755,root,root) %{_bindir}/cifsdd |
6646cd44 | 918 | %attr(755,root,root) %{_bindir}/nmblookup4 |
0b940f4e | 919 | %attr(755,root,root) %{_bindir}/reg* |
6646cd44 | 920 | %attr(755,root,root) %{_bindir}/smbclient4 |
6c886cab | 921 | %{_mandir}/man1/findsmb.1* |
481bc0b7 | 922 | %{_mandir}/man1/nmblookup4.1* |
0b940f4e | 923 | %{_mandir}/man1/reg*.1* |
ac6f9d13 | 924 | |
ac6f9d13 | 925 | %files common |
2eedd257 | 926 | %defattr(644,root,root,755) |
2e711b12 | 927 | %doc README WHATSNEW.txt Roadmap |
b069341b | 928 | /etc/ld.so.conf.d/samba.conf |
89730013 | 929 | %attr(755,root,root) %{_bindir}/samba-regedit |
c083eea8 | 930 | %attr(755,root,root) %{_bindir}/samba-tool |
2f0e4f6e | 931 | %dir %{_sysconfdir}/samba |
d0e87ba8 | 932 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/lmhosts |
70975be6 JR |
933 | %attr(755,root,root) %{_libdir}/libdcerpc.so.*.*.* |
934 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc.so.0 | |
e4310f27 JR |
935 | %attr(755,root,root) %{_libdir}/libdcerpc-atsvc.so.*.*.* |
936 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-atsvc.so.0 | |
8e43bad6 JR |
937 | %attr(755,root,root) %{_libdir}/libdcerpc-binding.so.*.*.* |
938 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-binding.so.0 | |
0b940f4e JR |
939 | %attr(755,root,root) %{_libdir}/libdcerpc-samr.so.*.*.* |
940 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-samr.so.0 | |
8e43bad6 JR |
941 | %attr(755,root,root) %{_libdir}/libdcerpc-server.so.*.*.* |
942 | %attr(755,root,root) %ghost %{_libdir}/libdcerpc-server.so.0 | |
943 | %attr(755,root,root) %{_libdir}/libgensec.so.*.*.* | |
944 | %attr(755,root,root) %ghost %{_libdir}/libgensec.so.0 | |
945 | %attr(755,root,root) %{_libdir}/libndr-nbt.so.*.*.* | |
946 | %attr(755,root,root) %ghost %{_libdir}/libndr-nbt.so.0 | |
947 | %attr(755,root,root) %{_libdir}/libndr.so.*.*.* | |
948 | %attr(755,root,root) %ghost %{_libdir}/libndr.so.0 | |
949 | %attr(755,root,root) %{_libdir}/libndr-krb5pac.so.*.*.* | |
950 | %attr(755,root,root) %ghost %{_libdir}/libndr-krb5pac.so.0 | |
ed426448 JR |
951 | %attr(755,root,root) %{_libdir}/libregistry.so.*.*.* |
952 | %attr(755,root,root) %ghost %{_libdir}/libregistry.so.0 | |
8e43bad6 JR |
953 | %attr(755,root,root) %{_libdir}/libndr-standard.so.*.*.* |
954 | %attr(755,root,root) %ghost %{_libdir}/libndr-standard.so.0 | |
955 | %attr(755,root,root) %{_libdir}/libsamba-credentials.so.*.*.* | |
956 | %attr(755,root,root) %ghost %{_libdir}/libsamba-credentials.so.0 | |
957 | %attr(755,root,root) %{_libdir}/libsamba-hostconfig.so.*.*.* | |
958 | %attr(755,root,root) %ghost %{_libdir}/libsamba-hostconfig.so.0 | |
4d036a87 JR |
959 | %attr(755,root,root) %{_libdir}/libsamba-util.so.*.*.* |
960 | %attr(755,root,root) %ghost %{_libdir}/libsamba-util.so.0 | |
8e43bad6 JR |
961 | %attr(755,root,root) %{_libdir}/libsamdb.so.*.*.* |
962 | %attr(755,root,root) %ghost %{_libdir}/libsamdb.so.0 | |
4d036a87 JR |
963 | %attr(755,root,root) %{_libdir}/libsmbclient-raw.so.*.*.* |
964 | %attr(755,root,root) %ghost %{_libdir}/libsmbclient-raw.so.0 | |
8e43bad6 JR |
965 | %attr(755,root,root) %{_libdir}/libtevent-util.so.*.*.* |
966 | %attr(755,root,root) %ghost %{_libdir}/libtevent-util.so.0 | |
967 | %attr(755,root,root) %{_libdir}/libnetapi.so.0 | |
968 | %attr(755,root,root) %{_libdir}/libpdb.so.0 | |
4d036a87 | 969 | %attr(755,root,root) %{_libdir}/libsmbconf.so.0 |
8e43bad6 | 970 | %attr(755,root,root) %{_libdir}/libsmbldap.so.0 |
4d036a87 JR |
971 | %dir %{_libdir}/samba |
972 | %attr(755,root,root) %{_libdir}/samba/libCHARSET3.so | |
8e43bad6 JR |
973 | %attr(755,root,root) %{_libdir}/samba/libLIBWBCLIENT_OLD.so |
974 | %attr(755,root,root) %{_libdir}/samba/libMESSAGING.so | |
4d036a87 | 975 | %attr(755,root,root) %{_libdir}/samba/libaddns.so |
8e43bad6 | 976 | %attr(755,root,root) %{_libdir}/samba/libads.so |
4d036a87 | 977 | %attr(755,root,root) %{_libdir}/samba/libasn1util.so |
8e43bad6 JR |
978 | %attr(755,root,root) %{_libdir}/samba/libauth.so |
979 | %attr(755,root,root) %{_libdir}/samba/libauth4.so | |
4d036a87 | 980 | %attr(755,root,root) %{_libdir}/samba/libauth_sam_reply.so |
8e43bad6 JR |
981 | %attr(755,root,root) %{_libdir}/samba/libauth_unix_token.so |
982 | %attr(755,root,root) %{_libdir}/samba/libauthkrb5.so | |
983 | %attr(755,root,root) %{_libdir}/samba/libcli-ldap-common.so | |
984 | %attr(755,root,root) %{_libdir}/samba/libcli-ldap.so | |
4d036a87 JR |
985 | %attr(755,root,root) %{_libdir}/samba/libcli-nbt.so |
986 | %attr(755,root,root) %{_libdir}/samba/libcli_cldap.so | |
8e43bad6 JR |
987 | %attr(755,root,root) %{_libdir}/samba/libcli_smb_common.so |
988 | %attr(755,root,root) %{_libdir}/samba/libcli_spoolss.so | |
4d036a87 | 989 | %attr(755,root,root) %{_libdir}/samba/libcliauth.so |
8e43bad6 JR |
990 | %attr(755,root,root) %{_libdir}/samba/libcluster.so |
991 | %attr(755,root,root) %{_libdir}/samba/libcmdline-credentials.so | |
4d036a87 | 992 | %attr(755,root,root) %{_libdir}/samba/libdbwrap.so |
8e43bad6 JR |
993 | %attr(755,root,root) %{_libdir}/samba/libdcerpc-samba.so |
994 | %attr(755,root,root) %{_libdir}/samba/libdcerpc-samba4.so | |
995 | %attr(755,root,root) %{_libdir}/samba/libdfs_server_ad.so | |
4d036a87 | 996 | %attr(755,root,root) %{_libdir}/samba/liberrors.so |
8e43bad6 JR |
997 | %attr(755,root,root) %{_libdir}/samba/libevents.so |
998 | %attr(755,root,root) %{_libdir}/samba/libflag_mapping.so | |
999 | %attr(755,root,root) %{_libdir}/samba/libgse.so | |
1000 | %attr(755,root,root) %{_libdir}/samba/libiniparser.so | |
4d036a87 JR |
1001 | %attr(755,root,root) %{_libdir}/samba/libinterfaces.so |
1002 | %attr(755,root,root) %{_libdir}/samba/libkrb5samba.so | |
8e43bad6 | 1003 | %attr(755,root,root) %{_libdir}/samba/libldb-cmdline.so |
4d036a87 | 1004 | %attr(755,root,root) %{_libdir}/samba/libldbsamba.so |
8e43bad6 JR |
1005 | %attr(755,root,root) %{_libdir}/samba/liblibcli_lsa3.so |
1006 | %attr(755,root,root) %{_libdir}/samba/liblibcli_netlogon3.so | |
1007 | %attr(755,root,root) %{_libdir}/samba/liblibsmb.so | |
1008 | %attr(755,root,root) %{_libdir}/samba/libmsrpc3.so | |
1009 | %attr(755,root,root) %{_libdir}/samba/libndr-samba.so | |
1010 | %attr(755,root,root) %{_libdir}/samba/libndr-samba4.so | |
1011 | %attr(755,root,root) %{_libdir}/samba/libnetif.so | |
89730013 | 1012 | %attr(755,root,root) %{_libdir}/samba/libnon_posix_acls.so |
8e43bad6 | 1013 | %attr(755,root,root) %{_libdir}/samba/libnpa_tstream.so |
7f7b5c36 | 1014 | %attr(755,root,root) %{_libdir}/samba/libntvfs.so |
8e43bad6 JR |
1015 | %attr(755,root,root) %{_libdir}/samba/libposix_eadb.so |
1016 | %attr(755,root,root) %{_libdir}/samba/libprinting_migrate.so | |
7f7b5c36 | 1017 | %attr(755,root,root) %{_libdir}/samba/libprocess_model.so |
4d036a87 JR |
1018 | %attr(755,root,root) %{_libdir}/samba/libsamba-modules.so |
1019 | %attr(755,root,root) %{_libdir}/samba/libsamba-security.so | |
1020 | %attr(755,root,root) %{_libdir}/samba/libsamba-sockets.so | |
1021 | %attr(755,root,root) %{_libdir}/samba/libsamba3-util.so | |
1022 | %attr(755,root,root) %{_libdir}/samba/libsamdb-common.so | |
8e43bad6 | 1023 | %attr(755,root,root) %{_libdir}/samba/libsecrets3.so |
4d036a87 | 1024 | %attr(755,root,root) %{_libdir}/samba/libserver-role.so |
7f7b5c36 JR |
1025 | %attr(755,root,root) %{_libdir}/samba/libservice.so |
1026 | %attr(755,root,root) %{_libdir}/samba/libshares.so | |
4d036a87 | 1027 | %attr(755,root,root) %{_libdir}/samba/libsmb_transport.so |
4d036a87 | 1028 | %attr(755,root,root) %{_libdir}/samba/libsmbd_base.so |
4d036a87 JR |
1029 | %attr(755,root,root) %{_libdir}/samba/libsmbd_conn.so |
1030 | %attr(755,root,root) %{_libdir}/samba/libsmbd_shim.so | |
8e43bad6 JR |
1031 | %attr(755,root,root) %{_libdir}/samba/libsmbpasswdparser.so |
1032 | %attr(755,root,root) %{_libdir}/samba/libsmbregistry.so | |
4d036a87 | 1033 | %attr(755,root,root) %{_libdir}/samba/libtdb-wrap.so |
4d036a87 | 1034 | %attr(755,root,root) %{_libdir}/samba/libtdb_compat.so |
8e43bad6 | 1035 | %attr(755,root,root) %{_libdir}/samba/libutil_cmdline.so |
89730013 | 1036 | %attr(755,root,root) %{_libdir}/samba/libutil_ntdb.so |
4d036a87 JR |
1037 | %attr(755,root,root) %{_libdir}/samba/libutil_reg.so |
1038 | %attr(755,root,root) %{_libdir}/samba/libutil_setid.so | |
1039 | %attr(755,root,root) %{_libdir}/samba/libutil_tdb.so | |
1040 | %attr(755,root,root) %{_libdir}/samba/libwinbind-client.so | |
8e43bad6 | 1041 | %attr(755,root,root) %{_libdir}/samba/libxattr_tdb.so |
48dca9c0 JB |
1042 | %dir %{_libdir}/samba/vfs |
1043 | %attr(755,root,root) %{_libdir}/samba/vfs/acl_xattr.so | |
1044 | %attr(755,root,root) %{_libdir}/samba/vfs/btrfs.so | |
48dca9c0 | 1045 | %attr(755,root,root) %{_libdir}/samba/vfs/fileid.so |
48dca9c0 JB |
1046 | %attr(755,root,root) %{_libdir}/samba/vfs/posix_eadb.so |
1047 | %attr(755,root,root) %{_libdir}/samba/vfs/xattr_tdb.so | |
8e43bad6 JR |
1048 | %dir %{_datadir}/samba |
1049 | %dir %{_datadir}/samba/codepages | |
1050 | %{_datadir}/samba/codepages/lowcase.dat | |
1051 | %{_datadir}/samba/codepages/upcase.dat | |
1052 | %{_datadir}/samba/codepages/valid.dat | |
1053 | %{_mandir}/man5/lmhosts.5* | |
1054 | %{_mandir}/man5/smb.conf.5* | |
1055 | %{_mandir}/man7/samba.7* | |
89730013 | 1056 | %{_mandir}/man8/samba-regedit.8* |
8e43bad6 | 1057 | %{_mandir}/man8/samba-tool.8* |
48dca9c0 JB |
1058 | %{_mandir}/man8/vfs_acl_xattr.8* |
1059 | %{_mandir}/man8/vfs_btrfs.8* | |
1060 | %{_mandir}/man8/vfs_fileid.8* | |
1061 | %{_mandir}/man8/vfs_xattr_tdb.8* | |
4d036a87 | 1062 | |
a9009cd3 | 1063 | %if %{without system_libs} |
89730013 JR |
1064 | %attr(755,root,root) %{_bindir}/ntdbbackup |
1065 | %attr(755,root,root) %{_bindir}/ntdbdump | |
1066 | %attr(755,root,root) %{_bindir}/ntdbrestore | |
1067 | %attr(755,root,root) %{_bindir}/ntdbtool | |
287950f2 JR |
1068 | %attr(755,root,root) %{_bindir}/tdbbackup |
1069 | %attr(755,root,root) %{_bindir}/tdbdump | |
1070 | %attr(755,root,root) %{_bindir}/tdbtool | |
a9009cd3 | 1071 | %attr(755,root,root) %{_libdir}/samba/libntdb.so.* |
e71e0470 JR |
1072 | %attr(755,root,root) %{_libdir}/samba/libtalloc.so.* |
1073 | %attr(755,root,root) %{_libdir}/samba/libtdb.so.* | |
a9009cd3 JR |
1074 | %{_mandir}/man8/ntdbbackup.8* |
1075 | %{_mandir}/man8/ntdbdump.8* | |
1076 | %{_mandir}/man8/ntdbrestore.8* | |
1077 | %{_mandir}/man8/ntdbtool.8* | |
287950f2 JR |
1078 | %{_mandir}/man8/tdbbackup.8* |
1079 | %{_mandir}/man8/tdbdump.8* | |
1080 | %{_mandir}/man8/tdbtool.8* | |
e71e0470 JR |
1081 | %endif |
1082 | ||
29533586 JR |
1083 | %files common-server |
1084 | %defattr(644,root,root,755) | |
1085 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smbusers | |
1086 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/samba | |
29533586 JR |
1087 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/samba |
1088 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.samba | |
1089 | ||
1090 | %dir %{_sambahome} | |
1091 | %dir /var/lib/samba | |
1092 | %ghost /var/lib/samba/*.dat | |
1093 | %dir /var/lib/samba/printing | |
1094 | ||
1095 | %attr(750,root,root) %dir /var/log/samba | |
1096 | %attr(750,root,root) %dir /var/log/samba/cores | |
1097 | %attr(750,root,root) %dir /var/log/samba/cores/smbd | |
1098 | %attr(750,root,root) %dir /var/log/samba/cores/nmbd | |
1099 | %attr(750,root,root) %dir /var/log/archive/samba | |
1100 | %attr(1777,root,root) %dir /var/spool/samba | |
1101 | %if %{with ldap} | |
1102 | %doc examples/LDAP | |
1103 | %endif | |
1104 | ||
382a477a | 1105 | %files winbind |
b36aa9d5 | 1106 | %defattr(644,root,root,755) |
382a477a JR |
1107 | %attr(755,root,root) %{_bindir}/wbinfo |
1108 | %attr(755,root,root) /%{_lib}/security/pam_winbind* | |
1109 | %attr(755,root,root) /%{_lib}/libnss_winbind* | |
1110 | %attr(755,root,root) %{_libdir}/winbind_krb5_locator.so | |
1111 | %{_mandir}/man1/wbinfo*.1* | |
1112 | %{_mandir}/man5/pam_winbind.conf.5* | |
1113 | %{_mandir}/man7/winbind_krb5_locator.7* | |
1114 | %{_mandir}/man8/pam_winbind.8* | |
79d8a749 | 1115 | |
f2b0247b ER |
1116 | %files devel |
1117 | %defattr(644,root,root,755) | |
f1c7ad61 JR |
1118 | %dir %{_includedir}/samba-4.0 |
1119 | %{_includedir}/samba-4.0/charset.h | |
1120 | %dir %{_includedir}/samba-4.0/core | |
1121 | %{_includedir}/samba-4.0/core/doserr.h | |
1122 | %{_includedir}/samba-4.0/core/error.h | |
1123 | %{_includedir}/samba-4.0/core/ntstatus.h | |
1124 | %{_includedir}/samba-4.0/core/werror.h | |
1125 | %{_includedir}/samba-4.0/credentials.h | |
1126 | %{_includedir}/samba-4.0/dcerpc.h | |
1127 | %{_includedir}/samba-4.0/dcerpc_server.h | |
1128 | %{_includedir}/samba-4.0/dlinklist.h | |
1129 | %{_includedir}/samba-4.0/domain_credentials.h | |
1130 | %dir %{_includedir}/samba-4.0/gen_ndr | |
1131 | %{_includedir}/samba-4.0/gen_ndr/atsvc.h | |
1132 | %{_includedir}/samba-4.0/gen_ndr/auth.h | |
1133 | %{_includedir}/samba-4.0/gen_ndr/dcerpc.h | |
8e43bad6 JR |
1134 | %{_includedir}/samba-4.0/gen_ndr/drsblobs.h |
1135 | %{_includedir}/samba-4.0/gen_ndr/drsuapi.h | |
f1c7ad61 JR |
1136 | %{_includedir}/samba-4.0/gen_ndr/epmapper.h |
1137 | %{_includedir}/samba-4.0/gen_ndr/krb5pac.h | |
1138 | %{_includedir}/samba-4.0/gen_ndr/lsa.h | |
1139 | %{_includedir}/samba-4.0/gen_ndr/mgmt.h | |
1140 | %{_includedir}/samba-4.0/gen_ndr/misc.h | |
1141 | %{_includedir}/samba-4.0/gen_ndr/nbt.h | |
f1c7ad61 | 1142 | %{_includedir}/samba-4.0/gen_ndr/ndr_atsvc.h |
8e43bad6 | 1143 | %{_includedir}/samba-4.0/gen_ndr/ndr_atsvc_c.h |
f1c7ad61 | 1144 | %{_includedir}/samba-4.0/gen_ndr/ndr_dcerpc.h |
8e43bad6 JR |
1145 | %{_includedir}/samba-4.0/gen_ndr/ndr_drsblobs.h |
1146 | %{_includedir}/samba-4.0/gen_ndr/ndr_drsuapi.h | |
f1c7ad61 | 1147 | %{_includedir}/samba-4.0/gen_ndr/ndr_epmapper.h |
8e43bad6 | 1148 | %{_includedir}/samba-4.0/gen_ndr/ndr_epmapper_c.h |
f1c7ad61 | 1149 | %{_includedir}/samba-4.0/gen_ndr/ndr_krb5pac.h |
f1c7ad61 | 1150 | %{_includedir}/samba-4.0/gen_ndr/ndr_mgmt.h |
8e43bad6 | 1151 | %{_includedir}/samba-4.0/gen_ndr/ndr_mgmt_c.h |
f1c7ad61 JR |
1152 | %{_includedir}/samba-4.0/gen_ndr/ndr_misc.h |
1153 | %{_includedir}/samba-4.0/gen_ndr/ndr_nbt.h | |
f1c7ad61 | 1154 | %{_includedir}/samba-4.0/gen_ndr/ndr_samr.h |
8e43bad6 | 1155 | %{_includedir}/samba-4.0/gen_ndr/ndr_samr_c.h |
f1c7ad61 | 1156 | %{_includedir}/samba-4.0/gen_ndr/ndr_svcctl.h |
8e43bad6 | 1157 | %{_includedir}/samba-4.0/gen_ndr/ndr_svcctl_c.h |
f1c7ad61 JR |
1158 | %{_includedir}/samba-4.0/gen_ndr/netlogon.h |
1159 | %{_includedir}/samba-4.0/gen_ndr/samr.h | |
1160 | %{_includedir}/samba-4.0/gen_ndr/security.h | |
1161 | %{_includedir}/samba-4.0/gen_ndr/server_id.h | |
1162 | %{_includedir}/samba-4.0/gen_ndr/svcctl.h | |
1163 | %{_includedir}/samba-4.0/gensec.h | |
8e43bad6 | 1164 | %{_includedir}/samba-4.0/ldap-util.h |
f1c7ad61 JR |
1165 | %{_includedir}/samba-4.0/ldap_errors.h |
1166 | %{_includedir}/samba-4.0/ldap_message.h | |
1167 | %{_includedir}/samba-4.0/ldap_ndr.h | |
f1c7ad61 JR |
1168 | %{_includedir}/samba-4.0/ldb_wrap.h |
1169 | %{_includedir}/samba-4.0/ndr.h | |
1170 | %dir %{_includedir}/samba-4.0/ndr | |
8e43bad6 JR |
1171 | %{_includedir}/samba-4.0/ndr/ndr_drsblobs.h |
1172 | %{_includedir}/samba-4.0/ndr/ndr_drsuapi.h | |
f1c7ad61 JR |
1173 | %{_includedir}/samba-4.0/ndr/ndr_nbt.h |
1174 | %{_includedir}/samba-4.0/ndr/ndr_svcctl.h | |
1175 | %{_includedir}/samba-4.0/param.h | |
1176 | %{_includedir}/samba-4.0/policy.h | |
8e43bad6 | 1177 | %{_includedir}/samba-4.0/read_smb.h |
f1c7ad61 JR |
1178 | %{_includedir}/samba-4.0/registry.h |
1179 | %{_includedir}/samba-4.0/roles.h | |
1180 | %{_includedir}/samba-4.0/rpc_common.h | |
1181 | %dir %{_includedir}/samba-4.0/samba | |
1182 | %{_includedir}/samba-4.0/samba/session.h | |
f1c7ad61 | 1183 | %{_includedir}/samba-4.0/samba/version.h |
8e43bad6 | 1184 | %{_includedir}/samba-4.0/samba_util.h |
f1c7ad61 | 1185 | %{_includedir}/samba-4.0/share.h |
8e43bad6 JR |
1186 | %{_includedir}/samba-4.0/smb2.h |
1187 | %{_includedir}/samba-4.0/smb2_constants.h | |
1188 | %{_includedir}/samba-4.0/smb2_create_blob.h | |
89730013 | 1189 | %{_includedir}/samba-4.0/smb2_lease.h |
8e43bad6 JR |
1190 | %{_includedir}/samba-4.0/smb2_signing.h |
1191 | %{_includedir}/samba-4.0/smb_cli.h | |
1192 | %{_includedir}/samba-4.0/smb_cliraw.h | |
1193 | %{_includedir}/samba-4.0/smb_common.h | |
1194 | %{_includedir}/samba-4.0/smb_composite.h | |
1195 | %{_includedir}/samba-4.0/smb_constants.h | |
1196 | %{_includedir}/samba-4.0/smb_raw.h | |
1197 | %{_includedir}/samba-4.0/smb_raw_interfaces.h | |
1198 | %{_includedir}/samba-4.0/smb_raw_signing.h | |
1199 | %{_includedir}/samba-4.0/smb_raw_trans2.h | |
1200 | %{_includedir}/samba-4.0/smb_request.h | |
1201 | %{_includedir}/samba-4.0/smb_seal.h | |
1202 | %{_includedir}/samba-4.0/smb_signing.h | |
1203 | %{_includedir}/samba-4.0/smb_unix_ext.h | |
1204 | %{_includedir}/samba-4.0/smb_util.h | |
f1c7ad61 JR |
1205 | %{_includedir}/samba-4.0/tdr.h |
1206 | %{_includedir}/samba-4.0/tsocket.h | |
1207 | %{_includedir}/samba-4.0/tsocket_internal.h | |
1208 | %dir %{_includedir}/samba-4.0/util | |
1209 | %{_includedir}/samba-4.0/util/attr.h | |
1210 | %{_includedir}/samba-4.0/util/byteorder.h | |
1211 | %{_includedir}/samba-4.0/util/data_blob.h | |
1212 | %{_includedir}/samba-4.0/util/debug.h | |
f1c7ad61 JR |
1213 | %{_includedir}/samba-4.0/util/memory.h |
1214 | %{_includedir}/samba-4.0/util/safe_string.h | |
1215 | %{_includedir}/samba-4.0/util/string_wrappers.h | |
1216 | %{_includedir}/samba-4.0/util/talloc_stack.h | |
1217 | %{_includedir}/samba-4.0/util/tevent_ntstatus.h | |
1218 | %{_includedir}/samba-4.0/util/tevent_unix.h | |
1219 | %{_includedir}/samba-4.0/util/tevent_werror.h | |
1220 | %{_includedir}/samba-4.0/util/time.h | |
1221 | %{_includedir}/samba-4.0/util/xfile.h | |
8e43bad6 JR |
1222 | %{_includedir}/samba-4.0/util_ldb.h |
1223 | %attr(755,root,root) %{_libdir}/libdcerpc-atsvc.so | |
1224 | %attr(755,root,root) %{_libdir}/libdcerpc-binding.so | |
1225 | %attr(755,root,root) %{_libdir}/libdcerpc-samr.so | |
1226 | %attr(755,root,root) %{_libdir}/libdcerpc-server.so | |
1227 | %attr(755,root,root) %{_libdir}/libdcerpc.so | |
1228 | %attr(755,root,root) %{_libdir}/libgensec.so | |
1229 | %attr(755,root,root) %{_libdir}/libndr-krb5pac.so | |
1230 | %attr(755,root,root) %{_libdir}/libndr-nbt.so | |
1231 | %attr(755,root,root) %{_libdir}/libndr-standard.so | |
1232 | %attr(755,root,root) %{_libdir}/libndr.so | |
1233 | %attr(755,root,root) %{_libdir}/libregistry.so | |
1234 | %attr(755,root,root) %{_libdir}/libsamba-credentials.so | |
1235 | %attr(755,root,root) %{_libdir}/libsamba-hostconfig.so | |
1236 | %attr(755,root,root) %{_libdir}/libsamba-policy.so | |
1237 | %attr(755,root,root) %{_libdir}/libsamba-util.so | |
1238 | %attr(755,root,root) %{_libdir}/libsamdb.so | |
1239 | %attr(755,root,root) %{_libdir}/libsmbclient-raw.so | |
1240 | %attr(755,root,root) %{_libdir}/libsmbconf.so | |
1241 | %attr(755,root,root) %{_libdir}/libtevent-util.so | |
f1c7ad61 | 1242 | %{_pkgconfigdir}/dcerpc.pc |
8e43bad6 | 1243 | %{_pkgconfigdir}/dcerpc_atsvc.pc |
05913998 JR |
1244 | %{_pkgconfigdir}/dcerpc_samr.pc |
1245 | %{_pkgconfigdir}/dcerpc_server.pc | |
1246 | %{_pkgconfigdir}/gensec.pc | |
8e43bad6 | 1247 | %{_pkgconfigdir}/ndr.pc |
05913998 JR |
1248 | %{_pkgconfigdir}/ndr_krb5pac.pc |
1249 | %{_pkgconfigdir}/ndr_nbt.pc | |
1250 | %{_pkgconfigdir}/ndr_standard.pc | |
05913998 JR |
1251 | %{_pkgconfigdir}/registry.pc |
1252 | %{_pkgconfigdir}/samba-credentials.pc | |
1253 | %{_pkgconfigdir}/samba-hostconfig.pc | |
1254 | %{_pkgconfigdir}/samba-policy.pc | |
1255 | %{_pkgconfigdir}/samba-util.pc | |
1256 | %{_pkgconfigdir}/samdb.pc | |
4d036a87 | 1257 | %{_pkgconfigdir}/smbclient-raw.pc |
a9009cd3 | 1258 | %if %{without system_libs} |
89730013 | 1259 | %{_mandir}/man3/ntdb.3* |
a9009cd3 | 1260 | %endif |
4d036a87 | 1261 | |
5ddfdd70 | 1262 | %files -n pam-pam_smbpass3 |
29511e6d | 1263 | %defattr(644,root,root,755) |
382a477a JR |
1264 | %doc source3/pam_smbpass/{CHAN*,README,TODO} source3/pam_smbpass/samples |
1265 | %attr(755,root,root) /%{_lib}/security/pam_smbpass.so | |
1266 | ||
1267 | %files pidl | |
1268 | %defattr(644,root,root,755) | |
1269 | %attr(755,root,root) %{_bindir}/pidl | |
1270 | %{_mandir}/man1/pidl.1* | |
1271 | %{_mandir}/man3/Parse::Pidl*.3* | |
1272 | %{perl_vendorlib}/Parse/Pidl* | |
29511e6d | 1273 | |
c083eea8 | 1274 | %files -n python-samba4 |
9f6f5df1 | 1275 | %defattr(644,root,root,755) |
7f7b5c36 JR |
1276 | %attr(755,root,root) %{_libdir}/libsamba-policy.so.*.*.* |
1277 | %attr(755,root,root) %ghost %{_libdir}/libsamba-policy.so.0 | |
0245eccc | 1278 | %attr(755,root,root) %{_libdir}/samba/libHDB_SAMBA4.so |
0245eccc | 1279 | %attr(755,root,root) %{_libdir}/samba/libdb-glue.so |
7f7b5c36 | 1280 | %attr(755,root,root) %{_libdir}/samba/libsamba-net.so |
04e7a791 | 1281 | %attr(755,root,root) %{_libdir}/samba/libsamba_python.so |
c083eea8 JR |
1282 | %dir %{py_sitedir}/samba |
1283 | %attr(755,root,root) %{py_sitedir}/samba/*.so | |
1284 | %{py_sitedir}/samba/*.py[co] | |
1285 | %dir %{py_sitedir}/samba/dcerpc | |
1286 | %{py_sitedir}/samba/dcerpc/*.py[co] | |
1287 | %attr(755,root,root) %{py_sitedir}/samba/dcerpc/*.so | |
1288 | %dir %{py_sitedir}/samba/external | |
1289 | %{py_sitedir}/samba/external/*.py[co] | |
1290 | %dir %{py_sitedir}/samba/external/subunit | |
1291 | %{py_sitedir}/samba/external/subunit/*.py[co] | |
1292 | %dir %{py_sitedir}/samba/external/subunit/tests | |
1293 | %{py_sitedir}/samba/external/subunit/tests/*.py[co] | |
1294 | %dir %{py_sitedir}/samba/netcmd | |
1295 | %{py_sitedir}/samba/netcmd/*.py[co] | |
1296 | %dir %{py_sitedir}/samba/provision | |
1297 | %{py_sitedir}/samba/provision/*.py[co] | |
6ed8d415 JR |
1298 | %dir %{py_sitedir}/samba/samba3 |
1299 | %attr(755,root,root) %{py_sitedir}/samba/samba3/*.so | |
1300 | %{py_sitedir}/samba/samba3/*.py[co] | |
c083eea8 JR |
1301 | %dir %{py_sitedir}/samba/tests |
1302 | %{py_sitedir}/samba/tests/*.py[co] | |
1303 | %dir %{py_sitedir}/samba/tests/blackbox | |
1304 | %{py_sitedir}/samba/tests/blackbox/*.py[co] | |
1305 | %dir %{py_sitedir}/samba/tests/samba_tool | |
1306 | %{py_sitedir}/samba/tests/samba_tool/*.py[co] | |
1307 | %dir %{py_sitedir}/samba/tests/dcerpc | |
1308 | %{py_sitedir}/samba/tests/dcerpc/*.py[co] | |
1309 | %dir %{py_sitedir}/samba/web_server | |
1310 | %{py_sitedir}/samba/web_server/*.py[co] | |
1311 | %if %{without system_libs} | |
ef67314f | 1312 | %attr(755,root,root) %{py_sitedir}/ldb.so |
a9009cd3 | 1313 | %attr(755,root,root) %{py_sitedir}/ntdb.so |
ef67314f JB |
1314 | %attr(755,root,root) %{py_sitedir}/talloc.so |
1315 | %attr(755,root,root) %{py_sitedir}/tdb.so | |
1316 | %attr(755,root,root) %{py_sitedir}/_tevent.so | |
c083eea8 | 1317 | %{py_sitedir}/tevent.py[co] |
fd9d8b85 | 1318 | %endif |
70ff6d03 | 1319 | |
c083eea8 | 1320 | %files test |
d1f5710a | 1321 | %defattr(644,root,root,755) |
c083eea8 JR |
1322 | %attr(755,root,root) %{_bindir}/gentest |
1323 | %attr(755,root,root) %{_bindir}/locktest | |
1324 | %attr(755,root,root) %{_bindir}/masktest | |
1325 | %attr(755,root,root) %{_bindir}/ndrdump | |
1326 | %attr(755,root,root) %{_bindir}/smbtorture | |
1327 | %attr(755,root,root) %{_libdir}/libtorture.so.*.*.* | |
1328 | %attr(755,root,root) %ghost %{_libdir}/libtorture.so.0 | |
1329 | %attr(755,root,root) %{_libdir}/samba/libsubunit.so | |
1330 | %attr(755,root,root) %{_libdir}/samba/libdlz_bind9_for_torture.so | |
c083eea8 JR |
1331 | %{_mandir}/man1/gentest.1* |
1332 | %{_mandir}/man1/locktest.1* | |
1333 | %{_mandir}/man1/masktest.1* | |
1334 | %{_mandir}/man1/ndrdump.1* | |
1335 | %{_mandir}/man1/smbtorture.1* | |
d1f5710a | 1336 | |
c083eea8 | 1337 | %files test-devel |
4ecf4d28 | 1338 | %defattr(644,root,root,755) |
c083eea8 JR |
1339 | %attr(755,root,root) %{_libdir}/libtorture.so |
1340 | %{_includedir}/samba-4.0/torture.h | |
1341 | %{_pkgconfigdir}/torture.pc | |
4ecf4d28 | 1342 | |
17937b31 | 1343 | %files -n samba3 |
c083eea8 | 1344 | %defattr(644,root,root,755) |
42c524a2 JR |
1345 | #%attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/samba/smb.conf |
1346 | %attr(754,root,root) /etc/rc.d/init.d/smb | |
1347 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/samba3 | |
1348 | %{systemdunitdir}/nmb.service | |
1349 | %{systemdunitdir}/smb.service | |
c083eea8 | 1350 | %attr(755,root,root) %{_bindir}/dbwrap_tool |
c083eea8 | 1351 | %attr(755,root,root) %{_bindir}/smbcontrol |
c083eea8 | 1352 | %attr(755,root,root) %{_bindir}/smbpasswd |
c083eea8 | 1353 | %attr(755,root,root) %{_bindir}/smbstatus |
c083eea8 | 1354 | %attr(755,root,root) %{_bindir}/smbta-util |
450db13e | 1355 | %attr(755,root,root) %{_sbindir}/mksmbpasswd.sh |
c083eea8 JR |
1356 | %attr(755,root,root) %{_sbindir}/nmbd |
1357 | %attr(755,root,root) %{_sbindir}/smbd | |
287950f2 JR |
1358 | %attr(755,root,root) %{_libdir}/samba/auth/samba4.so |
1359 | %attr(755,root,root) %{_libdir}/samba/auth/unix.so | |
1360 | %attr(755,root,root) %{_libdir}/samba/auth/wbc.so | |
f1c7ad61 | 1361 | %attr(755,root,root) %{_libdir}/samba/libsmbsharemodes.so.0 |
c083eea8 | 1362 | %dir %{_libdir}/samba/idmap |
c083eea8 | 1363 | %attr(755,root,root) %{_libdir}/samba/idmap/ad.so |
0b940f4e | 1364 | %attr(755,root,root) %{_libdir}/samba/idmap/autorid.so |
c083eea8 | 1365 | %attr(755,root,root) %{_libdir}/samba/idmap/hash.so |
89730013 | 1366 | %attr(755,root,root) %{_libdir}/samba/idmap/rfc2307.so |
c083eea8 JR |
1367 | %attr(755,root,root) %{_libdir}/samba/idmap/rid.so |
1368 | %attr(755,root,root) %{_libdir}/samba/idmap/tdb2.so | |
c083eea8 | 1369 | %attr(755,root,root) %{_libdir}/samba/vfs/acl_tdb.so |
c083eea8 | 1370 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_fork.so |
450db13e JR |
1371 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_linux.so |
1372 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_posix.so | |
1373 | %attr(755,root,root) %{_libdir}/samba/vfs/aio_pthread.so | |
d2d4b2ca JR |
1374 | %attr(755,root,root) %{_libdir}/samba/vfs/audit.so |
1375 | %attr(755,root,root) %{_libdir}/samba/vfs/cap.so | |
1376 | %attr(755,root,root) %{_libdir}/samba/vfs/catia.so | |
450db13e | 1377 | %attr(755,root,root) %{_libdir}/samba/vfs/commit.so |
c083eea8 | 1378 | %attr(755,root,root) %{_libdir}/samba/vfs/crossrename.so |
d2d4b2ca | 1379 | %attr(755,root,root) %{_libdir}/samba/vfs/default_quota.so |
c083eea8 | 1380 | %attr(755,root,root) %{_libdir}/samba/vfs/dirsort.so |
d2d4b2ca JR |
1381 | %attr(755,root,root) %{_libdir}/samba/vfs/expand_msdfs.so |
1382 | %attr(755,root,root) %{_libdir}/samba/vfs/extd_audit.so | |
1383 | %attr(755,root,root) %{_libdir}/samba/vfs/fake_perms.so | |
1384 | %attr(755,root,root) %{_libdir}/samba/vfs/full_audit.so | |
c083eea8 | 1385 | %attr(755,root,root) %{_libdir}/samba/vfs/linux_xfs_sgid.so |
450db13e | 1386 | %attr(755,root,root) %{_libdir}/samba/vfs/media_harmony.so |
d2d4b2ca | 1387 | %attr(755,root,root) %{_libdir}/samba/vfs/netatalk.so |
c083eea8 | 1388 | %attr(755,root,root) %{_libdir}/samba/vfs/preopen.so |
d2d4b2ca JR |
1389 | %attr(755,root,root) %{_libdir}/samba/vfs/readahead.so |
1390 | %attr(755,root,root) %{_libdir}/samba/vfs/readonly.so | |
1391 | %attr(755,root,root) %{_libdir}/samba/vfs/recycle.so | |
1392 | %attr(755,root,root) %{_libdir}/samba/vfs/scannedonly.so | |
c083eea8 | 1393 | %attr(755,root,root) %{_libdir}/samba/vfs/shadow_copy2.so |
d2d4b2ca | 1394 | %attr(755,root,root) %{_libdir}/samba/vfs/shadow_copy.so |
c083eea8 JR |
1395 | %attr(755,root,root) %{_libdir}/samba/vfs/smb_traffic_analyzer.so |
1396 | %attr(755,root,root) %{_libdir}/samba/vfs/streams_depot.so | |
1397 | %attr(755,root,root) %{_libdir}/samba/vfs/streams_xattr.so | |
1398 | %attr(755,root,root) %{_libdir}/samba/vfs/syncops.so | |
1399 | %attr(755,root,root) %{_libdir}/samba/vfs/time_audit.so | |
0b940f4e | 1400 | %dir %{_libdir}/samba/pdb |
f6857f17 | 1401 | %attr(755,root,root) %{_libdir}/samba/pdb/ldapsam.so |
0b940f4e JR |
1402 | %attr(755,root,root) %{_libdir}/samba/pdb/smbpasswd.so |
1403 | %attr(755,root,root) %{_libdir}/samba/pdb/tdbsam.so | |
1404 | %attr(755,root,root) %{_libdir}/samba/pdb/wbc_sam.so | |
1405 | %dir %{_libdir}/samba/nss_info | |
1406 | %attr(755,root,root) %{_libdir}/samba/nss_info/hash.so | |
1407 | %attr(755,root,root) %{_libdir}/samba/nss_info/rfc2307.so | |
0b940f4e | 1408 | %attr(755,root,root) %{_libdir}/samba/nss_info/sfu20.so |
450db13e | 1409 | %attr(755,root,root) %{_libdir}/samba/nss_info/sfu.so |
0b940f4e | 1410 | %{_mandir}/man1/dbwrap_tool.1* |
0b940f4e | 1411 | %{_mandir}/man1/smbcontrol.1* |
0b940f4e | 1412 | %{_mandir}/man1/smbstatus.1* |
0b940f4e | 1413 | %{_mandir}/man5/smbpasswd.5* |
0b940f4e JR |
1414 | %{_mandir}/man8/idmap_ad.8* |
1415 | %{_mandir}/man8/idmap_autorid.8* | |
1416 | %{_mandir}/man8/idmap_hash.8* | |
1417 | %{_mandir}/man8/idmap_ldap.8* | |
1418 | %{_mandir}/man8/idmap_nss.8* | |
89730013 | 1419 | %{_mandir}/man8/idmap_rfc2307.8* |
0b940f4e JR |
1420 | %{_mandir}/man8/idmap_rid.8* |
1421 | %{_mandir}/man8/idmap_tdb2.8* | |
1422 | %{_mandir}/man8/idmap_tdb.8* | |
0b940f4e | 1423 | %{_mandir}/man8/nmbd.8* |
0b940f4e JR |
1424 | %{_mandir}/man8/smbd.8* |
1425 | %{_mandir}/man8/smbpasswd.8* | |
1426 | %{_mandir}/man8/smbta-util.8* | |
c083eea8 | 1427 | %{_mandir}/man8/vfs_acl_tdb.8* |
0b940f4e JR |
1428 | %{_mandir}/man8/vfs_aio_fork.8* |
1429 | %{_mandir}/man8/vfs_aio_linux.8* | |
1430 | %{_mandir}/man8/vfs_aio_pthread.8* | |
d2d4b2ca JR |
1431 | %{_mandir}/man8/vfs_audit.8* |
1432 | %{_mandir}/man8/vfs_cap.8* | |
1433 | %{_mandir}/man8/vfs_catia.8* | |
450db13e | 1434 | %{_mandir}/man8/vfs_commit.8* |
c083eea8 | 1435 | %{_mandir}/man8/vfs_crossrename.8* |
d2d4b2ca | 1436 | %{_mandir}/man8/vfs_default_quota.8* |
c083eea8 | 1437 | %{_mandir}/man8/vfs_dirsort.8* |
d2d4b2ca JR |
1438 | %{_mandir}/man8/vfs_extd_audit.8* |
1439 | %{_mandir}/man8/vfs_fake_perms.8* | |
1440 | %{_mandir}/man8/vfs_full_audit.8* | |
89730013 | 1441 | %{_mandir}/man8/vfs_linux_xfs_sgid.8* |
0b940f4e | 1442 | %{_mandir}/man8/vfs_media_harmony.8* |
d2d4b2ca | 1443 | %{_mandir}/man8/vfs_netatalk.8* |
c083eea8 | 1444 | %{_mandir}/man8/vfs_preopen.8* |
d2d4b2ca JR |
1445 | %{_mandir}/man8/vfs_readahead.8* |
1446 | %{_mandir}/man8/vfs_readonly.8* | |
1447 | %{_mandir}/man8/vfs_recycle.8* | |
1448 | %{_mandir}/man8/vfs_scannedonly.8* | |
c083eea8 | 1449 | %{_mandir}/man8/vfs_shadow_copy2.8* |
d2d4b2ca | 1450 | %{_mandir}/man8/vfs_shadow_copy.8* |
c083eea8 | 1451 | %{_mandir}/man8/vfs_smb_traffic_analyzer.8* |
c083eea8 | 1452 | %{_mandir}/man8/vfs_streams_depot.8* |
0b940f4e | 1453 | %{_mandir}/man8/vfs_streams_xattr.8* |
89730013 | 1454 | %{_mandir}/man8/vfs_syncops.8* |
c083eea8 | 1455 | %{_mandir}/man8/vfs_time_audit.8* |
c083eea8 | 1456 | |
382a477a JR |
1457 | %files -n samba3-client |
1458 | %defattr(644,root,root,755) | |
1459 | %attr(755,root,root) %{_bindir}/net | |
1460 | %attr(755,root,root) %{_bindir}/nmblookup | |
1461 | %attr(755,root,root) %{_bindir}/rpcclient | |
1462 | %attr(755,root,root) %{_bindir}/sharesec | |
1463 | %attr(755,root,root) %{_bindir}/smbcacls | |
1464 | %attr(755,root,root) %{_bindir}/smbclient | |
cd86127c | 1465 | %attr(755,root,root) %{_bindir}/smbtar |
382a477a | 1466 | %attr(755,root,root) %{_bindir}/smbtree |
8e43bad6 JR |
1467 | %attr(755,root,root) %{_libdir}/samba/libgpo.so |
1468 | %attr(755,root,root) %{_libdir}/samba/libnet_keytab.so | |
382a477a JR |
1469 | %{_mandir}/man1/nmblookup.1* |
1470 | %{_mandir}/man1/rpcclient.1* | |
1471 | %{_mandir}/man1/sharesec.1* | |
1472 | %{_mandir}/man1/smbcacls.1* | |
1473 | %{_mandir}/man1/smbclient.1* | |
cd86127c | 1474 | %{_mandir}/man1/smbtar.1* |
382a477a | 1475 | %{_mandir}/man1/smbtree.1* |
287950f2 | 1476 | %{_mandir}/man8/net.8* |
382a477a | 1477 | |
17937b31 | 1478 | %files -n samba3-common |
ed426448 JR |
1479 | %defattr(644,root,root,755) |
1480 | %attr(755,root,root) %{_bindir}/eventlogadm | |
1481 | %attr(755,root,root) %{_bindir}/ntlm_auth | |
1482 | %attr(755,root,root) %{_bindir}/pdbedit | |
1483 | %attr(755,root,root) %{_bindir}/profiles | |
1484 | %attr(755,root,root) %{_bindir}/smbcquotas | |
1485 | %attr(755,root,root) %{_bindir}/testparm | |
1486 | %attr(755,root,root) %{_bindir}/vfstest | |
8e43bad6 JR |
1487 | %attr(755,root,root) %{_libdir}/samba/libsmbldaphelper.so |
1488 | %attr(755,root,root) %{_libdir}/samba/libnss_info.so | |
1489 | %attr(755,root,root) %{_libdir}/samba/libidmap.so | |
1490 | %attr(755,root,root) %{_libdir}/samba/libtrusts_util.so | |
1491 | %attr(755,root,root) %{_libdir}/samba/libpopt_samba3.so | |
ed426448 JR |
1492 | %dir %{_libdir}/samba/auth |
1493 | %attr(755,root,root) %{_libdir}/samba/auth/script.so | |
1494 | %{_mandir}/man1/ntlm_auth.1* | |
1495 | %{_mandir}/man1/profiles.1* | |
1496 | %{_mandir}/man1/smbcquotas.1* | |
1497 | %{_mandir}/man1/testparm.1* | |
1498 | %{_mandir}/man1/vfstest.1* | |
1499 | %{_mandir}/man8/eventlogadm.8* | |
1500 | %{_mandir}/man8/pdbedit.8* | |
1501 | ||
f1c7ad61 JR |
1502 | %files -n samba3-devel |
1503 | %defattr(644,root,root,755) | |
450db13e JR |
1504 | %attr(755,root,root) %{_libdir}/libnetapi.so |
1505 | %attr(755,root,root) %{_libdir}/libpdb.so | |
1506 | %attr(755,root,root) %{_libdir}/libsmbldap.so | |
f1c7ad61 | 1507 | %{_includedir}/samba-4.0/lookup_sid.h |
287950f2 JR |
1508 | %{_includedir}/samba-4.0/machine_sid.h |
1509 | %{_includedir}/samba-4.0/netapi.h | |
f1c7ad61 | 1510 | %{_includedir}/samba-4.0/passdb.h |
287950f2 | 1511 | %{_includedir}/samba-4.0/smbconf.h |
f1c7ad61 JR |
1512 | %{_includedir}/samba-4.0/smb_ldap.h |
1513 | %{_includedir}/samba-4.0/smbldap.h | |
287950f2 | 1514 | %{_includedir}/samba-4.0/smb_share_modes.h |
f1c7ad61 JR |
1515 | %{_pkgconfigdir}/netapi.pc |
1516 | ||
01d12910 JR |
1517 | %files -n samba3-vfs-ceph |
1518 | %defattr(644,root,root,755) | |
1519 | %attr(755,root,root) %{_libdir}/samba/vfs/ceph.so | |
1520 | ||
1521 | %files -n samba3-vfs-glusterfs | |
1522 | %defattr(644,root,root,755) | |
1523 | %attr(755,root,root) %{_libdir}/samba/vfs/glusterfs.so | |
1524 | ||
450db13e JR |
1525 | %files -n samba3-vfs-notify_fam |
1526 | %defattr(644,root,root,755) | |
1527 | %attr(755,root,root) %{_libdir}/samba/vfs/notify_fam.so | |
1528 | %{_mandir}/man8/vfs_notify_fam.8* | |
8ba454ef | 1529 | |
5ddfdd70 | 1530 | %files -n smbget3 |
4ecf4d28 | 1531 | %defattr(644,root,root,755) |
c083eea8 JR |
1532 | %attr(755,root,root) %{_bindir}/smbget |
1533 | %{_mandir}/man1/smbget.1* | |
1534 | %{_mandir}/man5/smbgetrc.5* | |
4ecf4d28 | 1535 | |
c083eea8 | 1536 | %if %{with cups} |
5ddfdd70 | 1537 | %files -n cups-backend-smb3 |
99795f36 | 1538 | %defattr(644,root,root,755) |
c083eea8 JR |
1539 | %attr(755,root,root) %{cups_serverbin}/backend/smb |
1540 | %attr(755,root,root) %{_bindir}/smbspool | |
1541 | %{_mandir}/man8/smbspool.8* | |
105507bc | 1542 | %endif |
8d59ae13 | 1543 | |
382a477a | 1544 | %files -n samba3-winbind |
6a43f27b | 1545 | %defattr(644,root,root,755) |
382a477a JR |
1546 | %attr(755,root,root) %{_sbindir}/winbindd |
1547 | %attr(754,root,root) /etc/rc.d/init.d/winbind | |
1548 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/winbind | |
1549 | %{systemdunitdir}/winbind.service | |
1550 | %{_mandir}/man8/winbindd*.8* | |
1551 | ||
5ddfdd70 | 1552 | %files -n nss_wins3 |
382a477a JR |
1553 | %defattr(644,root,root,755) |
1554 | %attr(755,root,root) /%{_lib}/libnss_wins* | |
1555 | ||
664cf74c | 1556 | %files -n samba3-libsmbclient |
382a477a JR |
1557 | %defattr(644,root,root,755) |
1558 | %attr(755,root,root) %{_libdir}/libsmbclient.so.* | |
382a477a | 1559 | %attr(755,root,root) %{_libdir}/libwbclient.so.* |
287950f2 | 1560 | %{_mandir}/man7/libsmbclient.7* |
382a477a | 1561 | |
664cf74c | 1562 | %files -n samba3-libsmbclient-devel |
382a477a JR |
1563 | %defattr(644,root,root,755) |
1564 | %attr(755,root,root) %{_libdir}/libsmbclient.so | |
382a477a JR |
1565 | %attr(755,root,root) %{_libdir}/libwbclient.so |
1566 | %{_includedir}/libsmbclient.h | |
1567 | %{_includedir}/wbclient.h | |
1568 | ||
382a477a | 1569 | %if %{with ldap} |
8bb2da81 | 1570 | %files -n openldap-schema-samba3 |
382a477a | 1571 | %defattr(644,root,root,755) |
a3c4e78e | 1572 | %{schemadir}/samba.schema |
382a477a | 1573 | %endif |