4ee320e
# remirepo/fedora spec file for php-pear-CAS
d52c149
#
d52c149
# Copyright (c) 2010-2014 Remi Collet
d52c149
# License: CC-BY-SA
4ee320e
# http://creativecommons.org/licenses/by-sa/4.0/
d52c149
#
d52c149
# Please, preserve the changelog entries
d52c149
#
a445f38
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
d52c149
%{!?__pear:       %global __pear       %{_bindir}/pear}
c379ba8
%global pear_name CAS
c379ba8
%global channel   __uri
c379ba8
#global prever    RC7
c379ba8
c379ba8
c379ba8
Name:           php-pear-CAS
4ee320e
Version:        1.3.4
0485a01
Release:        2%{?dist}
c379ba8
Summary:        Central Authentication Service client library in php
c379ba8
c379ba8
Group:          Development/Libraries
b9fcbbd
License:        ASL 2.0
111100f
URL:            https://wiki.jasig.org/display/CASC/phpCAS
c65b6bf
111100f
Source0:        http://downloads.jasig.org/cas-clients/php/%{version}%{?prever}/%{pear_name}-%{version}%{?prever}.tgz
c379ba8
c379ba8
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c379ba8
BuildArch:      noarch
d52c149
BuildRequires:  php-pear
c379ba8
c379ba8
Requires(post): %{__pear}
c379ba8
Requires(postun): %{__pear}
d52c149
Requires:       php-pear(PEAR)
a445f38
Requires:       php-curl
a445f38
Requires:       php-dom
a445f38
Requires:       php-pcre
a445f38
Requires:       php-pdo
a445f38
Requires:       php-session
a445f38
Requires:       php-spl
a445f38
# Optional: php-imap (when use Proxied Imap)
a445f38
c379ba8
Provides:       php-pear(%{channel}/%{pear_name}) = %{version}
4ee320e
Provides:       php-composer(jasig/phpcas) = %{version}
c379ba8
# this library is mostly known as phpCAS
c379ba8
Provides:       phpCAS = %{version}-%{release}
c379ba8
c379ba8
c379ba8
%description
c379ba8
This package is a PEAR library for using a Central Authentication Service.
c379ba8
4ee320e
To use this library, you just have to add, in your project:
4ee320e
  require_once '%{pear_phpdir}/CAS/Autoload.php';
4ee320e
c379ba8
c379ba8
%prep
c379ba8
%setup -q -c
c379ba8
c379ba8
cd %{pear_name}-%{version}%{?prever}
70367a0
mv ../package.xml %{name}.xml
c65b6bf
c379ba8
c379ba8
%build
c379ba8
cd %{pear_name}-%{version}%{?prever}
c379ba8
# Empty build section, most likely nothing required.
c379ba8
c379ba8
c379ba8
%install
c65b6bf
rm -rf %{buildroot}
c379ba8
cd %{pear_name}-%{version}%{?prever}
c65b6bf
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
c379ba8
c379ba8
# Clean up unnecessary files
a445f38
rm -rf %{buildroot}%{pear_metadir}/.??*
c379ba8
c379ba8
# Install XML package description
c65b6bf
mkdir -p %{buildroot}%{pear_xmldir}
c65b6bf
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
c379ba8
c379ba8
c379ba8
%clean
c65b6bf
rm -rf %{buildroot}
c379ba8
c379ba8
c379ba8
%post
c379ba8
%{__pear} install --nodeps --soft --force --register-only \
c379ba8
    %{pear_xmldir}/%{name}.xml >/dev/null || :
c379ba8
c379ba8
%postun
c379ba8
if [ $1 -eq 0 ] ; then
c379ba8
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
c379ba8
        %{channel}/%{pear_name} >/dev/null || :
c379ba8
fi
c379ba8
c379ba8
c379ba8
%files
c379ba8
%defattr(-,root,root,-)
111100f
%doc %{pear_docdir}/%{pear_name}
c379ba8
%{pear_xmldir}/%{name}.xml
c379ba8
%{pear_phpdir}/CAS
c379ba8
%{pear_phpdir}/CAS.php
c379ba8
c379ba8
c379ba8
%changelog
0485a01
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-2
0485a01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0485a01
4ee320e
* Tue Nov 17 2015 Remi Collet <remi@fedoraproject.org> - 1.3.4-1
4ee320e
- update to Version 1.3.4
4ee320e
- add provides php-composer(jasig/phpcas)
4ee320e
6c6a520
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-2
6c6a520
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6c6a520
d52c149
* Mon Jul 28 2014 Remi Collet <remi@fedoraproject.org> - 1.3.4-1
d52c149
- update to Version 1.3.3
d52c149
8ceb54f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-4
8ceb54f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8ceb54f
db2458a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-3
db2458a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
db2458a
02f74f5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-2
02f74f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
02f74f5
a445f38
* Sat Dec 29 2012 Remi Collet <remi@fedoraproject.org> - 1.3.2-1
a445f38
- update to Version 1.3.2, security fix for
a445f38
  CVE-2012-5583 Missing CN validation of CAS server certificate
a445f38
- add requires for all needed php extensions
a445f38
61a07a4
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
61a07a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
61a07a4
70367a0
* Sun Apr 29 2012 Remi Collet <remi@fedoraproject.org> - 1.3.1-1
70367a0
- update to Version 1.3.1
70367a0
b9fcbbd
* Wed Mar 14 2012 Remi Collet <remi@fedoraproject.org> - 1.3.0-2
b9fcbbd
- License is ASL 2.0, https://github.com/Jasig/phpCAS/issues/32
b9fcbbd
- New sources,        https://github.com/Jasig/phpCAS/issues/31
b9fcbbd
c65b6bf
* Tue Mar 13 2012 Remi Collet <remi@fedoraproject.org> - 1.3.0-1
c65b6bf
- update to Version 1.3.0
c65b6bf
731c948
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-1.1
731c948
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
731c948
bdb9305
* Sat Jun 11 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.2.2-1
bdb9305
- update to Version 1.2.2 (stable) - API 1.2.2 (stable)
bdb9305
2a78c0b
* Wed Mar 30 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.2.1-1
bdb9305
- update to Version 1.2.1 (stable) - API 1.2.1 (stable)
2a78c0b
088bfa9
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-1.1
088bfa9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
088bfa9
111100f
* Thu Jan 20 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.2.0-1
111100f
- update to Version 1.2.0 (stable) - API 1.2.0 (stable)
111100f
- dont requires domxml-php4-to-php5 anymore
111100f
- fix URL
111100f
- link %%doc to pear_docdir
111100f
f94d151
* Mon Oct 04 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.3-1
f94d151
- update to 1.1.3
f94d151
- fix CVE-2010-3690, CVE-2010-3691, CVE-2010-3692
f94d151
- set timezone during build
f94d151
b33e6ad
* Tue Aug 03 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.2-1
b33e6ad
- update to 1.1.2
b33e6ad
- fix  CVE-2010-2795, CVE-2010-2796, #620753
b33e6ad
fe735b5
* Thu May 20 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.1-1
fe735b5
- update to 1.1.1
fe735b5
c379ba8
* Thu May 20 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.0-1
c379ba8
- update to 1.1.0 finale
c379ba8
c379ba8
* Sun Mar 14 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.1.0-0.1.RC7
c379ba8
- initial packaging (using pear make-rpm-spec CAS-1.1.0RC7.tgz)
c379ba8