diff --git a/.gitignore b/.gitignore index 66dcccb..a3d1e8f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *~ package-*.xml /CAS-1.2.2.tgz +/CAS-1.3.0.tgz diff --git a/package.xml b/package.xml new file mode 100644 index 0000000..dbd2cd7 --- /dev/null +++ b/package.xml @@ -0,0 +1,153 @@ + + + CAS + __uri + Central Authentication Service client library in php + This package is a PEAR installable library for using a Central +Authentication Service. + + Joachim Fritschi + fritschi + jfritschi@freenet.de + yes + + + Adam Franco + adamfranco + afranco@middlebury.edu + yes + + 2012-03-11 + + + 1.3.0 + 1.3.0 + + + stable + stable + + New BSD License + +see https://github.com/Jasig/phpCAS/blob/master/docs/ChangeLog + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.0.0 + + + 1.4.3 + + + curl + + + openssl + + + dom + + + zlib + + + pdo + + + + + + + + 1.3.0 + 1.3.0 + + + stable + stable + + 2012-03-11 + New BSD License + +https://github.com/Jasig/phpCAS/blob/master/docs/ChangeLog + + + + diff --git a/php-pear-CAS.spec b/php-pear-CAS.spec index 8d0f984..db6096c 100644 --- a/php-pear-CAS.spec +++ b/php-pear-CAS.spec @@ -5,14 +5,18 @@ Name: php-pear-CAS -Version: 1.2.2 -Release: %{?prever:0.}1%{?prever:.}%{?prever}%{?dist}.1 +Version: 1.3.0 +Release: %{?prever:0.}1%{?prever:.}%{?prever}%{?dist} Summary: Central Authentication Service client library in php Group: Development/Libraries -License: BSD +# https://github.com/Jasig/phpCAS/issues/32 +License: BSD or ASL 2.0 URL: https://wiki.jasig.org/display/CASC/phpCAS + Source0: http://downloads.jasig.org/cas-clients/php/%{version}%{?prever}/%{pear_name}-%{version}%{?prever}.tgz +# https://github.com/Jasig/phpCAS/issues/30 +Source1: package.xml BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -34,17 +38,11 @@ This package is a PEAR library for using a Central Authentication Service. %prep %setup -q -c -# Create a "localized" php.ini to avoid build warning -cp /etc/php.ini . -echo "date.timezone=UTC" >>php.ini - -# Create links for standard RPM docdir (to standard PEAR docdir) -ln -s %{pear_docdir}/%{pear_name}/docs docs -ln -s %{pear_docdir}/%{pear_name}/docs/README LICENSE - cd %{pear_name}-%{version}%{?prever} -# package.xml is V2 -mv ../package.xml %{name}.xml +cp %{SOURCE1} %{name}.xml + +# https://github.com/Jasig/phpCAS/issues/31 +sed -i -e '/PHPCAS_VERSION/s/1.3.0+/1.3.0/' CAS.php %build @@ -53,25 +51,20 @@ cd %{pear_name}-%{version}%{?prever} %install -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} cd %{pear_name}-%{version}%{?prever} -PHPRC=../php.ini %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml - -# Fix documentation -for fic in $RPM_BUILD_ROOT%{pear_docdir}/%{pear_name}/docs/examples/example*.php; do - sed -i -e 's/\r//' $fic -done +%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml # Clean up unnecessary files -rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??* +rm -rf %{buildroot}%{pear_phpdir}/.??* # Install XML package description -mkdir -p $RPM_BUILD_ROOT%{pear_xmldir} -install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir} +mkdir -p %{buildroot}%{pear_xmldir} +install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} %clean -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} %post @@ -88,13 +81,15 @@ fi %files %defattr(-,root,root,-) %doc %{pear_docdir}/%{pear_name} -%doc docs LICENSE %{pear_xmldir}/%{name}.xml %{pear_phpdir}/CAS %{pear_phpdir}/CAS.php %changelog +* Tue Mar 13 2012 Remi Collet - 1.3.0-1 +- update to Version 1.3.0 + * Sat Jan 14 2012 Fedora Release Engineering - 1.2.2-1.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild diff --git a/sources b/sources index cb24cc0..4386857 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c3e09e99bb28784b68c461ccb1400566 CAS-1.2.2.tgz +444bb48ee50a611422a37218b36d3118 CAS-1.3.0.tgz