]> git.pld-linux.org Git - packages/openvpn-plugin-auth-ldap.git/blame - openvpn-plugin-auth-ldap.spec
I can reproduce the problem by removing aclocal.m4, try not breaking the provided one
[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
38f8f24e 22BuildRequires: re2c
9d1f822a
ER
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
f07914b6 25%define _libdir %{_prefix}/%{_lib}/openvpn/plugins
9d1f822a
ER
26%define _sysconfdir /etc/openvpn
27
28%description
29The openvpn-auth-ldap plugin implements username/password
30authentication via LDAP.
31
eca89318
JR
32%description -l pl.UTF-8
33Wtyczka openvpn-auth-ldap implementuje uwierzytelnianie nazwą
34użytkownika i hasłem poprzez LDAP.
918823b8 35
9d1f822a 36%prep
1654a590
TP
37%setup -q -n openvpn-auth-ldap-auth-ldap-%{version}
38#%%patch0 -p1
39#%%patch1 -p1
9d1f822a 40
25238847 41#:> objc.m4
34e06bcc 42
9d1f822a 43%build
25238847
TP
44#%%{__aclocal}
45%{__autoconf}
f07914b6 46%{__autoheader}
38f8f24e 47cp -f /usr/share/automake/config.sub .
f07914b6 48%configure \
92f0a050 49 --with-objc-runtime=GNU \
bcb26d96 50 --with-check=%{!?with_tests:/proc}%{?with_tests:/usr} \
38f8f24e
ER
51 --with-openldap=/usr \
52 --with-openvpn=/usr
f07914b6
ER
53
54%{__make}
9d1f822a
ER
55
56%install
57rm -rf $RPM_BUILD_ROOT
f07914b6 58install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_libdir}}
3850ec36 59
f07914b6
ER
60%{__make} install \
61 DESTDIR=$RPM_BUILD_ROOT
38f8f24e 62cp -a auth-ldap.conf $RPM_BUILD_ROOT%{_sysconfdir}
9d1f822a
ER
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
f07914b6 69%doc LICENSE README
e1933f0b
ER
70%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auth-ldap.conf
71%attr(755,root,root) %{_libdir}/openvpn-auth-ldap.so
This page took 0.086075 seconds and 4 git commands to generate.