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
baaf6a5
Version:        1.0.8.1
5417f52
Release:        12%{?dist}
baaf6a5
Summary:        Apache 2.0/2.2 compliant module that supports the CASv1 and CASv2 protocols
baaf6a5
baaf6a5
Group:          System Environment/Daemons
baaf6a5
License:        GPLv3+ with exceptions
baaf6a5
URL:            http://www.ja-sig.org/wiki/display/CASC/mod_auth_cas
baaf6a5
# The source for this package was pulled from the upstream's vcs. Their 
baaf6a5
# releases are stored in SVN instead of exported to a tar.gz, I used the 
baaf6a5
# following commands to do so:
baaf6a5
#  svn export https://source.jasig.org/cas-clients/mod_auth_cas/tags/mod_auth_cas-1.0.8.1 mod_auth_cas-1.0.8.1
baaf6a5
baaf6a5
#  tar -czvf mod_auth_cas-1.0.8.1.tar.gz mod_auth_cas-1.0.8.1/
baaf6a5
Source0:        mod_auth_cas-1.0.8.1.tar.gz
baaf6a5
Source1:        auth_cas.conf
baaf6a5
5d0c901
Patch0:         mod_auth_cas-1.0.8.1-fixbuild.patch
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
baaf6a5
baaf6a5
Requires:       httpd
baaf6a5
baaf6a5
%description
baaf6a5
mod_auth_cas is an Apache 2.0/2.2 compliant module that supports the CASv1
baaf6a5
and CASv2 protocols
baaf6a5
baaf6a5
%prep
baaf6a5
%setup -q
baaf6a5
5d0c901
%patch0 -p1 -b .fixbuild
baaf6a5
baaf6a5
%build
Adam Miller beea2ea
autoreconf -vif #BZ926155 - support aarch64
5d0c901
%configure --with-apxs=%{_httpd_apxs}
baaf6a5
make %{?_smp_mflags}
baaf6a5
baaf6a5
baaf6a5
baaf6a5
%install
baaf6a5
rm -rf %{buildroot}
5d0c901
make install DESTDIR=%{buildroot} LIBEXECDIR=%{_httpd_moddir}
5d0c901
%if "%{_httpd_modconfdir}" == "%{_httpd_confdir}"
5d0c901
# httpd <= 2.2.x
5d0c901
install -Dp -m 644 %{SOURCE1} %{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
5d0c901
%endif
baaf6a5
baaf6a5
%clean
baaf6a5
rm -rf %{buildroot}
baaf6a5
baaf6a5
baaf6a5
%files
baaf6a5
%defattr(-,root,root,-)
baaf6a5
%doc README
baaf6a5
%{_libdir}/httpd/modules/*.so
5d0c901
%config(noreplace) %{_httpd_modconfdir}/*.conf
baaf6a5
baaf6a5
%changelog
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
Adam Miller beea2ea
* Thu Mar 02 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
baaf6a5
- 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