|
|
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
|
|
|
26d2596 |
Release: 7%{?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
|
|
|
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
|
|
|
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
|
|
|
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 |
|