56d0c10
Name:           mod_auth_cas
56d0c10
Version:        1.0.8.1
56d0c10
Release:        2%{?dist}
56d0c10
Summary:        Apache 2.0/2.2 compliant module that supports the CASv1 and CASv2 protocols
56d0c10
56d0c10
Group:          System Environment/Daemons
56d0c10
License:        GPLv3+ with exceptions
56d0c10
URL:            http://www.ja-sig.org/wiki/display/CASC/mod_auth_cas
56d0c10
# The source for this package was pulled from the upstream's vcs. Their 
56d0c10
# releases are stored in SVN instead of exported to a tar.gz, I used the 
56d0c10
# following commands to do so:
56d0c10
#  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
56d0c10
56d0c10
#  tar -czvf mod_auth_cas-1.0.8.1.tar.gz mod_auth_cas-1.0.8.1/
56d0c10
Source0:        mod_auth_cas-1.0.8.1.tar.gz
56d0c10
Source1:        auth_cas.conf
56d0c10
56d0c10
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
56d0c10
56d0c10
BuildRequires:  openssl-devel
56d0c10
BuildRequires:  httpd-devel
56d0c10
56d0c10
Requires:       httpd
56d0c10
56d0c10
%description
56d0c10
mod_auth_cas is an Apache 2.0/2.2 compliant module that supports the CASv1
56d0c10
and CASv2 protocols
56d0c10
56d0c10
%prep
56d0c10
%setup -q
56d0c10
56d0c10
56d0c10
%build
56d0c10
%configure --with-apxs=%{_sbindir}/apxs
56d0c10
make %{?_smp_mflags}
56d0c10
56d0c10
56d0c10
56d0c10
%install
56d0c10
rm -rf %{buildroot}
56d0c10
make install DESTDIR=%{buildroot}/%{_libdir}/httpd/modules/
56d0c10
56d0c10
mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf.d
56d0c10
install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/auth_cas.conf
56d0c10
56d0c10
56d0c10
%clean
56d0c10
rm -rf %{buildroot}
56d0c10
56d0c10
56d0c10
%files
56d0c10
%defattr(-,root,root,-)
56d0c10
%doc README
56d0c10
%{_libdir}/httpd/modules/*.so
56d0c10
%config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf
56d0c10
56d0c10
%changelog
56d0c10
* Tue Jun 29 2010 Adam Miller <maxamillion@fedoraproject.org> - 1.0.8.1-2
56d0c10
- Fixed svn export link, upstream changed canonical URL names.
56d0c10
56d0c10
* Wed Apr 28 2010 Adam Miller <maxamillion@fedoraproject.org> - 1.0.8.1-1
56d0c10
- added requires of httpd 
56d0c10
- fixed mixed use of macros
56d0c10
- updated to latest version
56d0c10
56d0c10
* Fri Aug 07 2009 Adam Miller <maxamillion@fedoraproject.org> - 1.0.8-1
56d0c10
- First attempt to package mod_auth_cas for Fedora
56d0c10