5d0c901
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_sbindir}/apxs}}
5d0c901
%{!?_httpd_mmn:        %{expand: %%global _httpd_mmn        %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
5d0c901
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
5d0c901
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
5d0c901
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
5d0c901
%{!?_httpd_moddir:    %{expand: %%global _httpd_moddir    %%{_libdir}/httpd/modules}}
5d0c901
5d0c901
baaf6a5
Name:           mod_auth_cas
8a6856b
Version:        1.1
fee0f80
Release:        2%{?dist}
8ae0e72
Summary:        Apache 2.2/2.4 compliant module that supports the CASv1 and CASv2 protocols
baaf6a5
baaf6a5
Group:          System Environment/Daemons
8a6856b
License:        APLv2
baaf6a5
URL:            http://www.ja-sig.org/wiki/display/CASC/mod_auth_cas
d0b61a2
Source0:        https://github.com/Jasig/%{name}/archive/v%{version}.tar.gz
8ae0e72
Source1:        auth_cas_mod.conf
8ae0e72
Source2:        auth_cas_httpd.conf
baaf6a5
baaf6a5
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
baaf6a5
baaf6a5
BuildRequires:  openssl-devel
baaf6a5
BuildRequires:  httpd-devel
Adam Miller 8443827
BuildRequires:  m4, readline-devel, autoconf, automake
Adam Miller fb50fbd
BuildRequires:  libcurl-devel
8a6856b
BuildRequires:  libtool
fee0f80
BuildRequires:  pcre-devel
baaf6a5
baaf6a5
Requires:       httpd
8ae0e72
Requires:       mod_ssl
baaf6a5
baaf6a5
%description
8a6856b
mod_auth_cas is an Apache 2.2 and 2.4 compliant module that supports the CASv1
baaf6a5
and CASv2 protocols
baaf6a5
baaf6a5
%prep
d0b61a2
%setup -q -n %{name}-1.1
baaf6a5
baaf6a5
%build
Adam Miller beea2ea
autoreconf -vif #BZ926155 - support aarch64
5d0c901
%configure --with-apxs=%{_httpd_apxs}
baaf6a5
make %{?_smp_mflags}
baaf6a5
baaf6a5
%install
baaf6a5
rm -rf %{buildroot}
5d0c901
make install DESTDIR=%{buildroot} LIBEXECDIR=%{_httpd_moddir}
fee0f80
echo "DEBUG: _httpd_modconfdir: %{_httpd_modconfdir}"
fee0f80
echo "DEBUG: _httpd_confdir: %{_httpd_modconfdir}"
5d0c901
%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}"
5d0c901
# httpd <= 2.2.x
fee0f80
cat %{SOURCE1} %{SOURCE2} > auth_cas.conf
fee0f80
install -Dp -m 644 auth_cas.conf %{buildroot}%{_httpd_modconfdir}/auth_cas.conf
5d0c901
%else
5d0c901
# httpd >= 2.4.x
5d0c901
install -Dp -m 644 %{SOURCE1} %{buildroot}%{_httpd_modconfdir}/10-auth_cas.conf
8ae0e72
install -Dp -m 644 %{SOURCE2} %{buildroot}%{_httpd_confdir}/auth_cas.conf
fee0f80
%endif
8ae0e72
8ae0e72
mkdir -p %{buildroot}/var/cache/httpd/%{name}
baaf6a5
baaf6a5
%clean
baaf6a5
rm -rf %{buildroot}
baaf6a5
baaf6a5
baaf6a5
%files
baaf6a5
%defattr(-,root,root,-)
baaf6a5
%doc README
baaf6a5
%{_libdir}/httpd/modules/*.so
8ae0e72
%config(noreplace) %{_httpd_confdir}/*.conf
5d0c901
%config(noreplace) %{_httpd_modconfdir}/*.conf
fee0f80
%dir /var/cache/httpd/%{name}
baaf6a5
baaf6a5
%changelog
fee0f80
* Fri Sep 02 2016 Adam Miller <maxamillion@fedoraproject.org> - 1.1-2
fee0f80
- Fix EPEL6 conditionals for 1.1 update
fee0f80
d0b61a2
* Thu Jun 16 2016 Adam Miller <maxamillion@fedoraproject.org> - 1.1-1
d0b61a2
- Update to latest stable upstream
d0b61a2
8ae0e72
* Wed May 11 2016 Adam Miller <maxamillion@fedoraproject.org> - 1.1-0.2.rc3
8ae0e72
- Update refs to apache versions
8ae0e72
- Fix entry module conf in _httpd_modconfdir
8ae0e72
- Add conf to _httpd_confdir
8ae0e72
- Add cachedir
8ae0e72
8a6856b
* Tue May 10 2016 Adam Miller <maxamillion@fedoraproject.org> - 1.1-0.1.rc3
8a6856b
- Pull in latest RC from upstream
8a6856b
4f23ee4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9.1-2
4f23ee4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4f23ee4
Adam Miller fb50fbd
* Fri Oct 30 2015 Adam Miller <maxamillion@fedoraproject.org> - 1.0.9.1-1
Adam Miller fb50fbd
- Update to latest upstream.
Adam Miller fb50fbd
5417f52
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8.1-12
5417f52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5417f52
df0c5cd
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8.1-11
df0c5cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
df0c5cd
14044a4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8.1-10
14044a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
14044a4
1c00799
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8.1-9
1c00799
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1c00799
8a6856b
* Thu Mar 07 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.0.8.1-8
Adam Miller beea2ea
- BZ926155 - support aarch64
Adam Miller beea2ea
26d2596
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8.1-7
26d2596
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
26d2596
dbe4475
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8.1-6
dbe4475
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
dbe4475
5d0c901
* Wed May  2 2012 Joe Orton <jorton@redhat.com> - 1.0.8.1-5
5d0c901
- update packaging (#803065)
5d0c901
2cb8b71
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8.1-4
2cb8b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2cb8b71
51aab2c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8.1-3
51aab2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
51aab2c
baaf6a5
* Tue Jun 29 2010 Adam Miller <maxamillion@fedoraproject.org> - 1.0.8.1-2
baaf6a5
- Fixed svn export link, upstream changed canonical URL names.
baaf6a5
baaf6a5
* Wed Apr 28 2010 Adam Miller <maxamillion@fedoraproject.org> - 1.0.8.1-1
8a6856b
- added requires of httpd
baaf6a5
- fixed mixed use of macros
baaf6a5
- updated to latest version
baaf6a5
baaf6a5
* Fri Aug 07 2009 Adam Miller <maxamillion@fedoraproject.org> - 1.0.8-1
baaf6a5
- First attempt to package mod_auth_cas for Fedora
baaf6a5