rpms/php-pear-CAS/EL-5 php-pear-CAS-systemlibs.patch, NONE, 1.1 php-pear-CAS.spec, NONE, 1.1 sources, 1.1, 1.2

Remi Collet remi at fedoraproject.org
Thu May 20 15:25:14 UTC 2010


Author: remi

Update of /cvs/pkgs/rpms/php-pear-CAS/EL-5
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv12036

Modified Files:
	sources 
Added Files:
	php-pear-CAS-systemlibs.patch php-pear-CAS.spec 
Log Message:
new package

php-pear-CAS-systemlibs.patch:
 CAS.php          |    2 +-
 php-pear-CAS.xml |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

--- NEW FILE php-pear-CAS-systemlibs.patch ---
diff -up CAS-1.1.0/CAS.php.systemlib CAS-1.1.0/CAS.php
--- CAS-1.1.0/CAS.php.systemlib	1970-01-01 10:13:08.000000000 +0100
+++ CAS-1.1.0/CAS.php	2010-05-20 07:24:32.000000000 +0200
@@ -14,7 +14,7 @@ if (!$_SERVER['REQUEST_URI']) {
 // another one by Vangelis Haniotakis also to make phpCAS work with PHP5
 //
 if (version_compare(PHP_VERSION,'5','>=')) {
-	require_once(dirname(__FILE__).'/CAS/domxml-php4-to-php5.php');
+	require_once('/usr/share/php/domxml-php4-php5/domxml-php4-to-php5.php');
 }
 
 /**
diff -up CAS-1.1.0/php-pear-CAS.xml.systemlib CAS-1.1.0/php-pear-CAS.xml
--- CAS-1.1.0/php-pear-CAS.xml.systemlib	1970-01-01 10:13:08.000000000 +0100
+++ CAS-1.1.0/php-pear-CAS.xml	2010-05-20 07:28:39.000000000 +0200
@@ -51,7 +51,6 @@ see http://www.ja-sig.org/wiki/display/C
    <file baseinstalldir="/" md5sum="f71651bcf7f38df0be9adcbbcc29d6de" name="CAS/PGTStorage/pgt-file.php" role="php" />
    <file baseinstalldir="/" md5sum="16f3bbe28e42bda1aa564e3e4adbd16c" name="CAS/PGTStorage/pgt-main.php" role="php" />
    <file baseinstalldir="/" md5sum="847a18ae84ab86a8b1d80298593e1b4b" name="CAS/client.php" role="php" />
-   <file baseinstalldir="/" md5sum="e9ce7e11f871d8206b0abc2f608b0277" name="CAS/domxml-php4-to-php5.php" role="php" />
    <file baseinstalldir="/" md5sum="b84b09fb9be8422318e35cccf6749308" name="docs/api/annotated.html" role="doc" />
    <file baseinstalldir="/" md5sum="7694258cded297b9c94945c2d3dcd8a0" name="docs/api/CAS_8php.html" role="doc" />
    <file baseinstalldir="/" md5sum="bbf786cc48739382c686c629b7910df3" name="docs/api/CAS_8php_source.html" role="doc" />
@@ -191,7 +190,7 @@ see http://www.ja-sig.org/wiki/display/C
    <file baseinstalldir="/" md5sum="1a784b7c0c46e6791ccf7b22a7e486c2" name="docs/ChangeLog" role="doc" />
    <file baseinstalldir="/" md5sum="8b55ff8b0efc4d70a30e3d282f4ef188" name="docs/index.html" role="doc" />
    <file baseinstalldir="/" md5sum="d153a0effa32fbccded9387ea5310df6" name="docs/README" role="doc" />
-   <file baseinstalldir="/" md5sum="d0a189aced5e0205942b304363a1a3d0" name="CAS.php" role="php" />
+   <file baseinstalldir="/" md5sum="417009f38e6d6ef51091809343431650" name="CAS.php" role="php" />
   </dir>
  </contents>
  <dependencies>


--- NEW FILE php-pear-CAS.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_name CAS
%global channel   __uri
#global prever    RC7


Name:           php-pear-CAS
Version:        1.1.0
Release:        %{?prever:0.}1%{?prever:.}%{?prever}%{?dist}
Summary:        Central Authentication Service client library in php

Group:          Development/Libraries
License:        BSD
URL:            http://www.ja-sig.org/wiki/display/CASC/phpCAS
Source0:        http://www.ja-sig.org/downloads/cas-clients/php/%{version}%{?prever}/%{pear_name}-%{version}%{?prever}.tgz

Patch0:         php-pear-CAS-systemlibs.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  php-pear >= 1:1.4.9-1.2

Requires(post): %{__pear}
Requires(postun): %{__pear}
Requires:       php-pear(DB) >= 1.4.0
Requires:       php-pear(PEAR) >= 1.4.3
Requires:       php-domxml-php4-php5
Provides:       php-pear(%{channel}/%{pear_name}) = %{version}
# this library is mostly known as phpCAS
Provides:       phpCAS = %{version}-%{release}


%description
This package is a PEAR library for using a Central Authentication Service.


%prep
%setup -q -c

# Package is V2
mv package.xml %{pear_name}-%{version}%{?prever}/%{name}.xml
cd %{pear_name}-%{version}%{?prever}

%patch0 -p1 -b .systemlib


%build
cd %{pear_name}-%{version}%{?prever}
# Empty build section, most likely nothing required.


%install
rm -rf $RPM_BUILD_ROOT docdir
cd %{pear_name}-%{version}%{?prever}
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml


# Move documentation
mv $RPM_BUILD_ROOT%{pear_docdir}/%{pear_name} ../docdir
for fic in ../docdir/docs/examples/example*.php; do
   sed -i -e 's/\r//' $fic
done

# Clean up unnecessary files
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*

# Install XML package description
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}


%clean
rm -rf $RPM_BUILD_ROOT


%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{channel}/%{pear_name} >/dev/null || :
fi


%files
%defattr(-,root,root,-)
%doc docdir/docs/*
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/CAS
%{pear_phpdir}/CAS.php


%changelog
* Thu May 20 2010 Remi Collet <Fedora at FamilleCollet.com> - 1.1.0-1
- update to 1.1.0 finale

* Sun Mar 14 2010 Remi Collet <Fedora at FamilleCollet.com> - 1.1.0-0.1.RC7
- initial packaging (using pear make-rpm-spec CAS-1.1.0RC7.tgz)



Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-pear-CAS/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	18 May 2010 18:27:04 -0000	1.1
+++ sources	20 May 2010 15:25:14 -0000	1.2
@@ -0,0 +1 @@
+6343fcd73c347461c6b55fe7ba72ac08  CAS-1.1.0.tgz



More information about the scm-commits mailing list