File apache2-mod_auth_cas.spec of Package apache2-mod_auth_cas
#
# spec file for package apache2-mod_auth_cas
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: apache2-mod_auth_cas
# osc_scm will check out git master and set the version to something similar
# to 'git describe --tags'. E.g. 1.1+git.18.<hash> = 18 commits since the 1.1
# tag. See the _service file for details.
Version: 1.1
# Release is automatically set by OBS
Release: 0
Summary: Apache CAS Authentication Module for the JASIG/Apereo CAS Server
License: Apache-2.0
Group: Productivity/Networking/Web/Servers
Url: https://github.com/apereo/mod_auth_cas
# tar export of git checkout; no point in compressing just to uncompress for
# building; src rpm will apply its own compression.
Source: mod_auth_cas-%{version}.tar
Source2: mod_auth_cas.conf
Requires: %{apache_mmn}
BuildRequires: apache2-devel
BuildRequires: apache-rpm-macros
# also BuildRequires apr-[util-]devel, but those are pulled in by apache2-devel
BuildRequires: libcurl-devel
BuildRequires: libopenssl-devel
BuildRequires: pcre-devel
# only if autoreconf is needed:
BuildRequires: autoconf, automake, libtool
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# build a debuginfo package and strip binaries in main package
%debug_package
%description
The purpose of this module is to allow an Apache web server to interact
with an authentication server that conforms to the CAS version 1 or 2
protocol or SAML protocol as used by the JASIG/Apereo CAS Server.
%prep
%setup -q -n mod_auth_cas-%{version}
%build
# not needed on all distros, but doesn't seem to hurt:
autoreconf -ivf
%if 0%{?suse_version} == 1110
%configure --with-apxs=/usr/sbin/apxs2
%else
%configure
%endif
make %{?_smp_mflags}
%install
%make_install
install -D -m 0644 %{S:2} %{buildroot}%{apache_sysconfdir}/conf.d/mod_auth_cas.conf
install -d -m 0750 %{buildroot}/var/cache/apache2/mod_auth_cas
%files
%defattr(-,root,root)
%doc README
%config(noreplace) %{apache_sysconfdir}/conf.d/mod_auth_cas.conf
%{apache_libexecdir}/mod_auth_cas.so
%dir %attr(0750,wwwrun,root) /var/cache/apache2/mod_auth_cas
%changelog