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
Version:	1.2
# 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
Source:		https://github.com/apereo/mod_auth_cas/archive/v%{version}.tar.gz
Source2:	mod_auth_cas.conf
Patch1:         enable_pcre2.patch
Requires:	%{apache_mmn}
BuildRequires:	automake
BuildRequires:	libtool
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:	pcre2-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-build

%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}
%patch -P 1 -p1

%build
autoreconf -fvi
%configure --with-apxs=%{apache_apxs}
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
openSUSE Build Service is sponsored by