2fc4c5e
# Spec file for php-pear-CAS
2fc4c5e
#
2fc4c5e
# Copyright (c) 2010-2014 Remi Collet
2fc4c5e
# License: CC-BY-SA
2fc4c5e
# http://creativecommons.org/licenses/by-sa/3.0/
2fc4c5e
#
2fc4c5e
# Please, preserve the changelog entries
2fc4c5e
#
0120271
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
2fc4c5e
%{!?__pear:       %global __pear       %{_bindir}/pear}
8159751
%global pear_name CAS
8159751
%global channel   __uri
8159751
#global prever    RC7
8159751
8159751
8159751
Name:           php-pear-CAS
2fc4c5e
Version:        1.3.3
0120271
Release:        1%{?dist}
8159751
Summary:        Central Authentication Service client library in php
8159751
8159751
Group:          Development/Libraries
9b8a8d4
License:        ASL 2.0
9b8a8d4
URL:            https://wiki.jasig.org/display/CASC/phpCAS
8159751
9b8a8d4
Source0:        http://downloads.jasig.org/cas-clients/php/%{version}%{?prever}/%{pear_name}-%{version}%{?prever}.tgz
8159751
8159751
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8159751
BuildArch:      noarch
2fc4c5e
BuildRequires:  php-pear
8159751
8159751
Requires(post): %{__pear}
8159751
Requires(postun): %{__pear}
2fc4c5e
Requires:       php-pear(PEAR)
0120271
Requires:       php-curl
0120271
Requires:       php-dom
0120271
Requires:       php-pcre
0120271
Requires:       php-pdo
0120271
Requires:       php-session
0120271
Requires:       php-spl
0120271
# Optional: php-imap (when use Proxied Imap)
0120271
8159751
Provides:       php-pear(%{channel}/%{pear_name}) = %{version}
8159751
# this library is mostly known as phpCAS
8159751
Provides:       phpCAS = %{version}-%{release}
8159751
8159751
8159751
%description
8159751
This package is a PEAR library for using a Central Authentication Service.
8159751
8159751
8159751
%prep
8159751
%setup -q -c
8159751
8159751
cd %{pear_name}-%{version}%{?prever}
0120271
mv ../package.xml %{name}.xml
8159751
8159751
8159751
%build
8159751
cd %{pear_name}-%{version}%{?prever}
8159751
# Empty build section, most likely nothing required.
8159751
8159751
8159751
%install
9b8a8d4
rm -rf %{buildroot}
8159751
cd %{pear_name}-%{version}%{?prever}
9b8a8d4
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
8159751
8159751
# Clean up unnecessary files
0120271
rm -rf %{buildroot}%{pear_metadir}/.??*
8159751
8159751
# Install XML package description
9b8a8d4
mkdir -p %{buildroot}%{pear_xmldir}
9b8a8d4
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
8159751
8159751
8159751
%clean
9b8a8d4
rm -rf %{buildroot}
8159751
8159751
8159751
%post
8159751
%{__pear} install --nodeps --soft --force --register-only \
8159751
    %{pear_xmldir}/%{name}.xml >/dev/null || :
8159751
8159751
%postun
8159751
if [ $1 -eq 0 ] ; then
8159751
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
8159751
        %{channel}/%{pear_name} >/dev/null || :
8159751
fi
8159751
8159751
8159751
%files
8159751
%defattr(-,root,root,-)
9b8a8d4
%doc %{pear_docdir}/%{pear_name}
8159751
%{pear_xmldir}/%{name}.xml
8159751
%{pear_phpdir}/CAS
8159751
%{pear_phpdir}/CAS.php
8159751
8159751
8159751
%changelog
2fc4c5e
* Mon Jul 28 2014 Remi Collet <remi@fedoraproject.org> - 1.3.4-1
2fc4c5e
- update to Version 1.3.3
2fc4c5e
0120271
* Sat Dec 29 2012 Remi Collet <remi@fedoraproject.org> - 1.3.2-1
0120271
- update to Version 1.3.2, security fix for
0120271
  CVE-2012-5583 Missing CN validation of CAS server certificate
0120271
- add requires for all needed php extensions
0120271
9b8a8d4
* Wed Mar 14 2012 Remi Collet <remi@fedoraproject.org> - 1.3.0-2
9b8a8d4
- License is ASL 2.0, https://github.com/Jasig/phpCAS/issues/32
9b8a8d4
- New sources,        https://github.com/Jasig/phpCAS/issues/31
9b8a8d4
- update to Version 1.3.0
9b8a8d4
- dont requires domxml-php4-to-php5 anymore
9b8a8d4
- fix URL
9b8a8d4
0894cf1
* Mon Oct 04 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.3-1
0894cf1
- update to 1.1.3
0894cf1
- fix CVE-2010-3690, CVE-2010-3691, CVE-2010-3692
0894cf1
- set timezone during build
0894cf1
939d570
* Tue Aug 03 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.2-1
939d570
- update to 1.1.2
939d570
- fix  CVE-2010-2795, CVE-2010-2796, #620753
939d570
b5818f8
* Thu May 20 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.1-1
b5818f8
- update to 1.1.1
b5818f8
8159751
* Thu May 20 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.0-1
8159751
- update to 1.1.0 finale
8159751
8159751
* Sun Mar 14 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.0-0.1.RC7
8159751
- initial packaging (using pear make-rpm-spec CAS-1.1.0RC7.tgz)
8159751