]>
Commit | Line | Data |
---|---|---|
f5f9581b | 1 | %define mod_name authn_sasl |
2 | %define apxs /usr/sbin/apxs | |
3 | Summary: Basic authentication for the Apache Web server using SASL | |
53dfc5c4 | 4 | Summary(pl.UTF-8): Podstawowe uwierzytelnianie (Basic) dla serwera WWW Apache przy użyciu SASL |
f5f9581b | 5 | Name: apache-mod_%{mod_name} |
d7e212f5 | 6 | Version: 1.0.2 |
f5f9581b | 7 | Release: 1 |
8 | License: BSD | |
03e09f79 | 9 | Group: Networking/Daemons/HTTP |
53dfc5c4 | 10 | Source0: http://dl.sourceforge.net/mod-authn-sasl/mod_authn_sasl-%{version}.tar.bz2 |
d7e212f5 | 11 | # Source0-md5: 0272cb8550fe557177729b0c927d56f0 |
f5f9581b | 12 | URL: http://mod-authn-sasl.sourceforge.net/ |
13 | BuildRequires: %{apxs} | |
14 | BuildRequires: apache-devel >= 2.2 | |
15 | BuildRequires: rpmbuild(macros) >= 1.268 | |
16 | Requires: apache(modules-api) = %apache_modules_api | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
adb121c7 | 20 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d |
f5f9581b | 21 | |
22 | %description | |
23 | This module allows you to use SASL to authenticate a user. | |
24 | ||
53dfc5c4 JB |
25 | %description -l pl.UTF-8 |
26 | Ten moduł umożliwia używanie SASL do uwierzytelniania użytkownika. | |
27 | ||
f5f9581b | 28 | %prep |
29 | %setup -q -n mod_%{mod_name}-%{version} | |
30 | ||
31 | %build | |
d7e212f5 | 32 | %{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la -lsasl2 |
f5f9581b | 33 | |
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
adb121c7 | 36 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}} |
f5f9581b | 37 | |
adb121c7 | 38 | install -p .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} |
f5f9581b | 39 | echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ |
adb121c7 | 40 | $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf |
f5f9581b | 41 | |
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %post | |
46 | %service -q httpd restart | |
47 | ||
48 | %postun | |
49 | if [ "$1" = "0" ]; then | |
50 | %service -q httpd restart | |
51 | fi | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
adb121c7 | 55 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf |
f5f9581b | 56 | %attr(755,root,root) %{_pkglibdir}/*.so |