2 |
# Use "--define='apache 1'" to build a 'mod_auth_tkt1' package for apache1 |
# Use "--define='apache 1'" to build a 'mod_auth_tkt1' package for apache1 |
3 |
%define httpd httpd |
%define httpd httpd |
4 |
%define name mod_auth_tkt |
%define name mod_auth_tkt |
|
%if 0%{?rhel} < 7 |
|
|
%define apxs /usr/sbin/apxs |
|
|
%else |
|
5 |
%define apxs /usr/bin/apxs |
%define apxs /usr/bin/apxs |
|
%endif |
|
6 |
%{?apache:%define httpd apache} |
%{?apache:%define httpd apache} |
7 |
%{?apache:%define name mod_auth_tkt1} |
%{?apache:%define name mod_auth_tkt1} |
8 |
%{?apache:%define apxs /usr/sbin/apxs1} |
%{?apache:%define apxs /usr/sbin/apxs1} |
12 |
Summary: Lightweight ticket-based authentication module for Apache. |
Summary: Lightweight ticket-based authentication module for Apache. |
13 |
Name: %{name} |
Name: %{name} |
14 |
Version: 2.3.99b1 |
Version: 2.3.99b1 |
15 |
Release: 1%{?dist} |
Release: 3%{?dist} |
16 |
License: Apache |
License: Apache |
17 |
Group: Applications/System |
Group: Applications/System |
18 |
Source: http://www.openfusion.com.au/labs/dist/mod_auth_tkt-%{version}.tar.gz |
Source: http://www.openfusion.com.au/labs/dist/mod_auth_tkt-%{version}.tar.gz |
19 |
|
Patch0: mod_auth_tkt-2.3.99b1-betterredirection.patch |
20 |
URL: http://www.openfusion.com.au/labs/mod_auth_tkt/ |
URL: http://www.openfusion.com.au/labs/mod_auth_tkt/ |
21 |
Buildroot: %_tmppath/%{name}-%{version} |
Buildroot: %_tmppath/%{name}-%{version} |
22 |
Requires: %{httpd} |
Requires: %{httpd} |
41 |
|
|
42 |
%prep |
%prep |
43 |
%setup -n mod_auth_tkt-%{version} |
%setup -n mod_auth_tkt-%{version} |
44 |
|
%patch0 -p1 |
45 |
|
|
46 |
%build |
%build |
47 |
test %{debug} == 1 && DEBUG='--debug' |
test %{debug} == 1 && DEBUG='--debug' |
48 |
MOD_PERL=`rpm -q mod_perl | grep '^mod_perl' || /bin/true` |
MOD_PERL=`rpm -q mod_perl | grep '^mod_perl' || /bin/true` |
49 |
if [ -n "$MOD_PERL" -a %{test} == 1 ]; then |
if [ -n "$MOD_PERL" -a %{test} == 1 ]; then |
50 |
./configure --apxs=%{apxs} --test $DEBUG |
./configure --apxs=%{apxs} --test $DEBUG |
51 |
make |
make |
52 |
make test |
make test |
53 |
else |
else |
100 |
/var/www/auth/*.cgi |
/var/www/auth/*.cgi |
101 |
|
|
102 |
%changelog |
%changelog |
103 |
|
* Mon Jun 13 2016 JP Pialasse <tests@pialasse.com> 2.3.99b1-3 |
104 |
|
- fix redirection when proxy ssl [SME: 8825] [SME: 9583] |
105 |
|
|
106 |
|
* Tue Mar 15 2016 Daniel Berteaud <daniel@firewall-services.com> 2.3.99b1-2 |
107 |
|
- Tweaks in spec file so it can build in mock/plague [SME: 9310] |
108 |
|
|
109 |
* Fri Jul 31 2015 Gavin Carr <gavin@openfusion.com.au> 2.3.99b1-1 |
* Fri Jul 31 2015 Gavin Carr <gavin@openfusion.com.au> 2.3.99b1-1 |
110 |
- Update to version 2.3.99b1, 2.4 release beta1. |
- Update to version 2.3.99b1, 2.4 release beta1. |
111 |
|
|