]>
Commit | Line | Data |
---|---|---|
52cfd9ec JB |
1 | # TODO: verify heimdal patch |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with krb5 # use MIT KRB5 instead of Heimdal Kerberos | |
5 | # | |
6 | Summary: Helper library and tools for Active Directory client operations | |
7 | Summary(pl.UTF-8): Biblioteka pomocnicza i narzędzia do operacji klienckich usługi Active Directory | |
8 | Name: adcli | |
8bc1e084 | 9 | Version: 0.8.2 |
52cfd9ec JB |
10 | Release: 1 |
11 | License: LGPL v2+ | |
12 | Group: Applications/System | |
8bc1e084 JB |
13 | Source0: https://www.freedesktop.org/software/realmd/releases/%{name}-%{version}.tar.gz |
14 | # Source0-md5: 921848209eeb8ca7ec9685243806af26 | |
52cfd9ec | 15 | Patch0: %{name}-heimdal.patch |
8bc1e084 | 16 | URL: https://www.freedesktop.org/software/realmd/adcli/ |
52cfd9ec JB |
17 | BuildRequires: cyrus-sasl-devel |
18 | %{!?with_krb5:BuildRequires: heimdal-devel} | |
19 | %{?with_krb5:BuildRequires: krb5-devel} | |
20 | BuildRequires: libxslt-progs | |
21 | BuildRequires: openldap-devel | |
22 | BuildRequires: xmlto | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Helper library and tools for Active Directory client operations. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Biblioteka pomocnicza i narzędzia do operacji klienckich usługi Active | |
30 | Directory. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
34 | %{!?with_krb5:%patch0 -p1} | |
35 | ||
36 | %build | |
37 | %configure \ | |
38 | --disable-silent-rules | |
39 | %{__make} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc AUTHORS ChangeLog NEWS README | |
53 | %attr(755,root,root) %{_sbindir}/adcli | |
54 | %{_mandir}/man8/adcli.8* | |
55 | %{_docdir}/adcli |