]> git.pld-linux.org Git - packages/openvpn-plugin-auth-ldap.git/blame - openvpn-plugin-auth-ldap.spec
protect bind password and hide policies
[packages/openvpn-plugin-auth-ldap.git] / openvpn-plugin-auth-ldap.spec
CommitLineData
38f8f24e 1# Conditional build:
bcb26d96 2%bcond_with tests # check-based tests
e1933f0b 3
9d1f822a 4Summary: OpenVPN Auth-LDAP Plugin
40a825bd 5Summary(pl.UTF-8): Wtyczka Auth-LDAP dla OpenVPN
9d1f822a 6Name: openvpn-plugin-auth-ldap
1654a590
TP
7Version: 2.0.4
8Release: 1
4e89452a 9License: BSD + others
9d1f822a 10Group: Applications
1654a590
TP
11Source0: https://github.com/threerings/openvpn-auth-ldap/archive/auth-ldap-%{version}.tar.gz
12# Source0-md5: c4985fbbf88042e28efd1521d03bf658
391d2ad7 13Patch1: %{name}-objc-include.patch
1654a590 14URL: https://github.com/threerings/openvpn-auth-ldap
f07914b6 15BuildRequires: autoconf
3850ec36 16BuildRequires: automake
38f8f24e 17%{?with_tests:BuildRequires: check}
1654a590 18BuildRequires: gcc-objc
38f8f24e 19BuildRequires: openldap-devel
9d1f822a 20BuildRequires: openvpn-devel
38f8f24e 21BuildRequires: re2c
9d1f822a
ER
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
f07914b6 24%define _libdir %{_prefix}/%{_lib}/openvpn/plugins
9d1f822a
ER
25%define _sysconfdir /etc/openvpn
26
27%description
28The openvpn-auth-ldap plugin implements username/password
29authentication via LDAP.
30
eca89318
JR
31%description -l pl.UTF-8
32Wtyczka openvpn-auth-ldap implementuje uwierzytelnianie nazwą
33użytkownika i hasłem poprzez LDAP.
918823b8 34
9d1f822a 35%prep
1654a590 36%setup -q -n openvpn-auth-ldap-auth-ldap-%{version}
1654a590 37#%%patch1 -p1
9d1f822a 38
25238847 39#:> objc.m4
34e06bcc 40
9d1f822a 41%build
25238847
TP
42#%%{__aclocal}
43%{__autoconf}
f07914b6 44%{__autoheader}
38f8f24e 45cp -f /usr/share/automake/config.sub .
f07914b6 46%configure \
c0577bfe 47 OBJCFLAGS="-std=gnu11" \
92f0a050 48 --with-objc-runtime=GNU \
bcb26d96 49 --with-check=%{!?with_tests:/proc}%{?with_tests:/usr} \
38f8f24e
ER
50 --with-openldap=/usr \
51 --with-openvpn=/usr
f07914b6
ER
52
53%{__make}
9d1f822a
ER
54
55%install
56rm -rf $RPM_BUILD_ROOT
f07914b6 57install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_libdir}}
3850ec36 58
f07914b6
ER
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
38f8f24e 61cp -a auth-ldap.conf $RPM_BUILD_ROOT%{_sysconfdir}
9d1f822a
ER
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
4e89452a 68%doc LICENSE README.md
51a95da8 69%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{_sysconfdir}/auth-ldap.conf
e1933f0b 70%attr(755,root,root) %{_libdir}/openvpn-auth-ldap.so
This page took 0.034393 seconds and 4 git commands to generate.