]>
Commit | Line | Data |
---|---|---|
59b16b51 ER |
1 | # |
2 | # Conditional build: | |
9aba1f37 ER |
3 | %bcond_with autodeps # don't BR packages needed only for resolving deps |
4 | ||
59b16b51 | 5 | %include /usr/lib/rpm/macros.perl |
70586c2e | 6 | Summary: User & Group administration tools for Samba-OpenLDAP |
dbc69c81 | 7 | Summary(pl.UTF-8): Narzędzia do administracji użytkownikami i grupami dla Samby i OpenLDAP |
70586c2e | 8 | Name: smbldap-tools |
158b1504 | 9 | Version: 0.9.10 |
c30d596b | 10 | Release: 1 |
70586c2e | 11 | License: GPL |
59b16b51 | 12 | Group: Applications/Networking |
158b1504 JR |
13 | Source0: http://download.gna.org/smbldap-tools/sources/%{version}/%{name}-%{version}.tar.gz |
14 | # Source0-md5: f52a626637c468d66a4e71f30c174873 | |
83f80b24 | 15 | URL: https://gna.org/projects/smbldap-tools/ |
68165a85 JR |
16 | Patch0: %{name}-configure.patch |
17 | Patch1: %{name}-krb5.patch | |
18 | Patch2: %{name}-no-client-cert.patch | |
158b1504 JR |
19 | Patch3: %{name}-podchecker.patch |
20 | BuildRequires: perl-tools-pod | |
59b16b51 ER |
21 | BuildRequires: rpm-perlprov >= 4.1-13 |
22 | %if %{with autodeps} | |
23 | BuildRequires: perl-Crypt-SmbHash | |
24 | BuildRequires: perl-Digest-SHA1 | |
25 | BuildRequires: perl-ldap | |
26 | %endif | |
1a4f14d3 | 27 | Requires: openldap |
4a5f843b | 28 | Requires: samba |
59b16b51 | 29 | BuildArch: noarch |
70586c2e | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | In settings with OpenLDAP and Samba-LDAP servers, this collection is | |
34 | useful to add, modify and delete users and groups, and to change Unix | |
35 | and Samba passwords. In those context they replace the system tools to | |
36 | manage users, groups and passwords. | |
37 | ||
7d13d6b0 JR |
38 | %description -l pl.UTF-8 |
39 | W połączeniu z OpenLDAP i serwerami Samba-LDAP ten zestaw narzędzi | |
40 | jest użyteczny przy dodawaniu, modyfikowaniu i usuwaniu użytkowników i | |
41 | grup oraz zmianie haseł w Uniksie i Sambie. W tym zastosowaniu mogą | |
42 | zastąpić narzędzia systemowe do zarządzania użytkownikami, grupami i | |
43 | hasłami. | |
70586c2e | 44 | |
45 | %prep | |
46 | %setup -q | |
730af562 | 47 | %patch0 -p1 |
990ea609 | 48 | %patch1 -p1 |
2b78dc0d | 49 | %patch2 -p1 |
158b1504 | 50 | %patch3 -p1 |
68165a85 JR |
51 | |
52 | %build | |
53 | %configure | |
54 | %{__make} | |
70586c2e | 55 | |
70586c2e | 56 | %install |
57 | rm -rf $RPM_BUILD_ROOT | |
68165a85 | 58 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/smbldap-tools |
70586c2e | 59 | %{__make} install \ |
70586c2e | 60 | DESTDIR=$RPM_BUILD_ROOT |
61 | ||
9aba1f37 | 62 | cp -p smbldap.conf smbldap_bind.conf $RPM_BUILD_ROOT%{_sysconfdir}/smbldap-tools |
68165a85 | 63 | install -p smbldap-config.cmd $RPM_BUILD_ROOT%{_sbindir}/smbldap-config |
4984077d | 64 | install -p smbldap-upgrade-0.9.6.cmd $RPM_BUILD_ROOT%{_sbindir}/smbldap-upgrade-0.9.6.pl |
fa58af85 | 65 | |
70586c2e | 66 | %clean |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
4984077d ER |
69 | %triggerpostun -- %{name} < 0.9.7-0 |
70 | if [ "$1" -eq "2" ]; then ## Upgrade | |
71 | %{_sbindir}/smbldap-upgrade-0.9.6.pl || : | |
72 | fi | |
73 | ||
70586c2e | 74 | %files |
75 | %defattr(644,root,root,755) | |
62abe73d | 76 | %doc CONTRIBUTORS ChangeLog FILES INFRA README INSTALL TODO |
68165a85 | 77 | %doc doc/*.example doc/smbldap-tools.* doc/migration_scripts |
3680cab7 | 78 | %dir %{_sysconfdir}/smbldap-tools |
f90f69c7 | 79 | %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/smbldap-tools/smbldap.conf |
f90f69c7 | 80 | %attr(600,root,root) %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/smbldap-tools/smbldap_bind.conf |
9aba1f37 ER |
81 | %attr(755,root,root) %{_sbindir}/smbldap-config |
82 | %attr(755,root,root) %{_sbindir}/smbldap-groupadd | |
83 | %attr(755,root,root) %{_sbindir}/smbldap-groupdel | |
84 | %attr(755,root,root) %{_sbindir}/smbldap-grouplist | |
85 | %attr(755,root,root) %{_sbindir}/smbldap-groupmod | |
86 | %attr(755,root,root) %{_sbindir}/smbldap-groupshow | |
87 | %attr(755,root,root) %{_sbindir}/smbldap-passwd | |
88 | %attr(755,root,root) %{_sbindir}/smbldap-populate | |
89 | %attr(755,root,root) %{_sbindir}/smbldap-useradd | |
90 | %attr(755,root,root) %{_sbindir}/smbldap-userdel | |
91 | %attr(755,root,root) %{_sbindir}/smbldap-userinfo | |
92 | %attr(755,root,root) %{_sbindir}/smbldap-userlist | |
93 | %attr(755,root,root) %{_sbindir}/smbldap-usermod | |
94 | %attr(755,root,root) %{_sbindir}/smbldap-usershow | |
4984077d | 95 | %attr(755,root,root) %{_sbindir}/smbldap-upgrade-0.9.6.pl |
9aba1f37 | 96 | %{perl_vendorlib}/smbldap_tools.pm |