]> git.pld-linux.org Git - packages/smbldap-tools.git/blob - smbldap-tools.spec
- up to 0.9.10
[packages/smbldap-tools.git] / smbldap-tools.spec
1 #
2 # Conditional build:
3 %bcond_with     autodeps        # don't BR packages needed only for resolving deps
4
5 %include        /usr/lib/rpm/macros.perl
6 Summary:        User & Group administration tools for Samba-OpenLDAP
7 Summary(pl.UTF-8):      Narzędzia do administracji użytkownikami i grupami dla Samby i OpenLDAP
8 Name:           smbldap-tools
9 Version:        0.9.10
10 Release:        1
11 License:        GPL
12 Group:          Applications/Networking
13 Source0:        http://download.gna.org/smbldap-tools/sources/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5:  f52a626637c468d66a4e71f30c174873
15 URL:            https://gna.org/projects/smbldap-tools/
16 Patch0:         %{name}-configure.patch
17 Patch1:         %{name}-krb5.patch
18 Patch2:         %{name}-no-client-cert.patch
19 Patch3:         %{name}-podchecker.patch
20 BuildRequires:  perl-tools-pod
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
27 Requires:       openldap
28 Requires:       samba
29 BuildArch:      noarch
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
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.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48 %patch1 -p1
49 %patch2 -p1
50 %patch3 -p1
51
52 %build
53 %configure
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_sysconfdir}/smbldap-tools
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 cp -p smbldap.conf smbldap_bind.conf $RPM_BUILD_ROOT%{_sysconfdir}/smbldap-tools
63 install -p smbldap-config.cmd $RPM_BUILD_ROOT%{_sbindir}/smbldap-config
64 install -p smbldap-upgrade-0.9.6.cmd $RPM_BUILD_ROOT%{_sbindir}/smbldap-upgrade-0.9.6.pl
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
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
74 %files
75 %defattr(644,root,root,755)
76 %doc CONTRIBUTORS ChangeLog FILES INFRA README INSTALL TODO
77 %doc doc/*.example doc/smbldap-tools.* doc/migration_scripts
78 %dir %{_sysconfdir}/smbldap-tools
79 %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/smbldap-tools/smbldap.conf
80 %attr(600,root,root) %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/smbldap-tools/smbldap_bind.conf
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
95 %attr(755,root,root) %{_sbindir}/smbldap-upgrade-0.9.6.pl
96 %{perl_vendorlib}/smbldap_tools.pm
This page took 0.069257 seconds and 3 git commands to generate.