]> git.pld-linux.org Git - packages/openvpn-plugin-auth-ldap.git/blame - openvpn-plugin-auth-ldap.spec
try to circumvent some autocr*p problem that doesn't manifest in my env
[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
9d1f822a
ER
9License: BSD
10Group: Applications
1654a590
TP
11Source0: https://github.com/threerings/openvpn-auth-ldap/archive/auth-ldap-%{version}.tar.gz
12# Source0-md5: c4985fbbf88042e28efd1521d03bf658
bcb26d96 13Patch0: %{name}-make.patch
391d2ad7 14Patch1: %{name}-objc-include.patch
1654a590 15URL: https://github.com/threerings/openvpn-auth-ldap
f07914b6 16BuildRequires: autoconf
3850ec36 17BuildRequires: automake
38f8f24e 18%{?with_tests:BuildRequires: check}
1654a590 19BuildRequires: gcc-objc
38f8f24e 20BuildRequires: openldap-devel
9d1f822a 21BuildRequires: openvpn-devel
272fd88e 22BuildRequires: pkgconfig
38f8f24e 23BuildRequires: re2c
9d1f822a
ER
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
f07914b6 26%define _libdir %{_prefix}/%{_lib}/openvpn/plugins
9d1f822a
ER
27%define _sysconfdir /etc/openvpn
28
29%description
30The openvpn-auth-ldap plugin implements username/password
31authentication via LDAP.
32
eca89318
JR
33%description -l pl.UTF-8
34Wtyczka openvpn-auth-ldap implementuje uwierzytelnianie nazwą
35użytkownika i hasłem poprzez LDAP.
918823b8 36
9d1f822a 37%prep
1654a590
TP
38%setup -q -n openvpn-auth-ldap-auth-ldap-%{version}
39#%%patch0 -p1
40#%%patch1 -p1
9d1f822a 41
34e06bcc
ER
42> objc.m4
43
9d1f822a 44%build
f07914b6
ER
45%{__aclocal}
46%{__autoconf}
47%{__autoheader}
38f8f24e 48cp -f /usr/share/automake/config.sub .
f07914b6 49%configure \
92f0a050 50 --with-objc-runtime=GNU \
bcb26d96 51 --with-check=%{!?with_tests:/proc}%{?with_tests:/usr} \
38f8f24e
ER
52 --with-openldap=/usr \
53 --with-openvpn=/usr
f07914b6
ER
54
55%{__make}
9d1f822a
ER
56
57%install
58rm -rf $RPM_BUILD_ROOT
f07914b6 59install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_libdir}}
3850ec36 60
f07914b6
ER
61%{__make} install \
62 DESTDIR=$RPM_BUILD_ROOT
38f8f24e 63cp -a auth-ldap.conf $RPM_BUILD_ROOT%{_sysconfdir}
9d1f822a
ER
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%files
69%defattr(644,root,root,755)
f07914b6 70%doc LICENSE README
e1933f0b
ER
71%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auth-ldap.conf
72%attr(755,root,root) %{_libdir}/openvpn-auth-ldap.so
This page took 0.345534 seconds and 4 git commands to generate.