rpms/php-pear-Net-URL-Mapper/F-8 Net_URL_Mapper-tests.patch, NONE, 1.1 php-pear-Net-URL-Mapper.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Christopher Stone (xulchris)
fedora-extras-commits at redhat.com
Mon Feb 11 20:24:36 UTC 2008
- Previous message (by thread): rpms/libdbi-drivers/devel .cvsignore, 1.4, 1.5 libdbi-drivers.spec, 1.12, 1.13 sources, 1.4, 1.5
- Next message (by thread): rpms/audacious-plugins/devel .cvsignore, 1.14, 1.15 audacious-plugins.spec, 1.28, 1.29 sources, 1.14, 1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: xulchris
Update of /cvs/extras/rpms/php-pear-Net-URL-Mapper/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13805/F-8
Modified Files:
.cvsignore sources
Added Files:
Net_URL_Mapper-tests.patch php-pear-Net-URL-Mapper.spec
Log Message:
Initial import (bz #431955)
Net_URL_Mapper-tests.patch:
--- NEW FILE Net_URL_Mapper-tests.patch ---
diff -Nur php-pear-Net-URL-Mapper-0.9.0.orig/Net_URL_Mapper-0.9.0/tests/ExceptionTest.php php-pear-Net-URL-Mapper-0.9.0/Net_URL_Mapper-0.9.0/tests/ExceptionTest.php
--- php-pear-Net-URL-Mapper-0.9.0.orig/Net_URL_Mapper-0.9.0/tests/ExceptionTest.php 2007-03-28 12:58:25.000000000 +0200
+++ php-pear-Net-URL-Mapper-0.9.0/Net_URL_Mapper-0.9.0/tests/ExceptionTest.php 2008-02-09 15:21:48.000000000 +0100
@@ -49,12 +49,12 @@
/**
* PHPUnit2 Test Case
*/
-require_once 'PHPUnit2/Extensions/ExceptionTestCase.php';
+require_once 'PHPUnit/Extensions/ExceptionTestCase.php';
/**
* URL recognition tests for Net_URL_Mapper class
*/
-class ExceptionTest extends PHPUnit2_Extensions_ExceptionTestCase
+class ExceptionTest extends PHPUnit_Extensions_ExceptionTestCase
{
public function setup()
{
@@ -158,4 +158,4 @@
$this->assertEquals(null, $m->match('/view/4/honker'));
}
}
-?>
\ Pas de fin de ligne à la fin du fichier.
+?>
diff -Nur php-pear-Net-URL-Mapper-0.9.0.orig/Net_URL_Mapper-0.9.0/tests/GenerationTest.php php-pear-Net-URL-Mapper-0.9.0/Net_URL_Mapper-0.9.0/tests/GenerationTest.php
--- php-pear-Net-URL-Mapper-0.9.0.orig/Net_URL_Mapper-0.9.0/tests/GenerationTest.php 2007-03-28 12:58:25.000000000 +0200
+++ php-pear-Net-URL-Mapper-0.9.0/Net_URL_Mapper-0.9.0/tests/GenerationTest.php 2008-02-09 15:21:48.000000000 +0100
@@ -49,13 +49,13 @@
/**
* PHPUnit2 Test Case
*/
-require_once 'PHPUnit2/Framework/TestCase.php';
+require_once 'PHPUnit/Framework/TestCase.php';
/**
* URL generation tests for Net_URL_Mapper class
*/
-class GenerationTest extends PHPUnit2_Framework_TestCase
+class GenerationTest extends PHPUnit_Framework_TestCase
{
public function testAllStaticNoReqs()
{
@@ -409,4 +409,4 @@
-?>
\ Pas de fin de ligne à la fin du fichier.
+?>
diff -Nur php-pear-Net-URL-Mapper-0.9.0.orig/Net_URL_Mapper-0.9.0/tests/RecognitionTest.php php-pear-Net-URL-Mapper-0.9.0/Net_URL_Mapper-0.9.0/tests/RecognitionTest.php
--- php-pear-Net-URL-Mapper-0.9.0.orig/Net_URL_Mapper-0.9.0/tests/RecognitionTest.php 2007-03-28 12:58:25.000000000 +0200
+++ php-pear-Net-URL-Mapper-0.9.0/Net_URL_Mapper-0.9.0/tests/RecognitionTest.php 2008-02-09 15:21:48.000000000 +0100
@@ -49,13 +49,13 @@
/**
* PHPUnit2 Test Case
*/
-require_once 'PHPUnit2/Framework/TestCase.php';
+require_once 'PHPUnit/Framework/TestCase.php';
/**
* URL recognition tests for Net_URL_Mapper class
*/
-class RecognitionTest extends PHPUnit2_Framework_TestCase
+class RecognitionTest extends PHPUnit_Framework_TestCase
{
public function testAllFixed()
{
@@ -407,4 +407,4 @@
-?>
\ Pas de fin de ligne à la fin du fichier.
+?>
diff -Nur php-pear-Net-URL-Mapper-0.9.0.orig/Net_URL_Mapper-0.9.0/tests/run php-pear-Net-URL-Mapper-0.9.0/Net_URL_Mapper-0.9.0/tests/run
--- php-pear-Net-URL-Mapper-0.9.0.orig/Net_URL_Mapper-0.9.0/tests/run 1970-01-01 01:00:00.000000000 +0100
+++ php-pear-Net-URL-Mapper-0.9.0/Net_URL_Mapper-0.9.0/tests/run 2008-02-09 15:25:44.000000000 +0100
@@ -0,0 +1,4 @@
+php /usr/share/pear/PHPUnit/TextUI/Command.php GenerationTest GenerationTest.php
+php /usr/share/pear/PHPUnit/TextUI/Command.php ExceptionTest ExceptionTest.php
+php /usr/share/pear/PHPUnit/TextUI/Command.php RecognitionTest RecognitionTest.php
+
diff -Nur php-pear-Net-URL-Mapper-0.9.0.orig/package.xml php-pear-Net-URL-Mapper-0.9.0/package.xml
--- php-pear-Net-URL-Mapper-0.9.0.orig/package.xml 2007-03-28 12:58:25.000000000 +0200
+++ php-pear-Net-URL-Mapper-0.9.0/package.xml 2008-02-09 15:26:14.000000000 +0100
@@ -35,9 +35,10 @@
<file baseinstalldir="Net/URL" md5sum="cbaa2c2b8073567c7aa45360609c864e" name="Mapper/Part/Dynamic.php" role="php" />
<file baseinstalldir="Net/URL" md5sum="85dddf4ad20c3a2dab48528feeb8df5d" name="Mapper/Part/Fixed.php" role="php" />
<file baseinstalldir="Net/URL" md5sum="755dc6fec79990845b6c7f07945264fb" name="Mapper/Part/Wildcard.php" role="php" />
- <file baseinstalldir="Net/URL" md5sum="53f9295c1b439bb61e956badb876b696" name="tests/ExceptionTest.php" role="test" />
- <file baseinstalldir="Net/URL" md5sum="2bc67007007d35ca0e6967796d9fb58e" name="tests/GenerationTest.php" role="test" />
- <file baseinstalldir="Net/URL" md5sum="fb0dbfff180a288e1b2d7dad0eb64fe3" name="tests/RecognitionTest.php" role="test" />
+ <file baseinstalldir="Net/URL" md5sum="bb51b9910021216661afeca63d91ac7c" name="tests/ExceptionTest.php" role="test" />
+ <file baseinstalldir="Net/URL" md5sum="d58318f6afa9c740ff6544130b1ec188" name="tests/GenerationTest.php" role="test" />
+ <file baseinstalldir="Net/URL" md5sum="065ef3bb3c74960174b94b9258aab90a" name="tests/RecognitionTest.php" role="test" />
+ <file baseinstalldir="Net/URL" md5sum="ddd646ca492fb09cf6e5e09c8da401d2" name="tests/run" role="test" />
<file baseinstalldir="Net/URL" md5sum="5c47e9ade7f2bbf4f33c3635cb875f14" name="Mapper.php" role="php" />
</dir>
</contents>
--- NEW FILE php-pear-Net-URL-Mapper.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name Net_URL_Mapper
Name: php-pear-Net-URL-Mapper
Version: 0.9.0
Release: 2%{?dist}
Summary: Simple and flexible way to build nice URLs for web applications
Group: Development/Languages
License: BSD
URL: http://pear.php.net/package/Net_URL_Mapper
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: Net_URL_Mapper-tests.patch
BuildArch: noarch
BuildRequires: php-pear >= 1:1.4.9-1.2
BuildRequires: php-pear-PHPUnit
Requires: php-pear(PEAR)
Requires: php-pear(Net_URL) >= 1.0.14
Requires(post): %{__pear}
Requires(postun): %{__pear}
Provides: php-pear(%{pear_name}) = %{version}
%description
Net_URL_Mapper provides a simple and flexible way to build nice URLs for your
web applications.
The URL syntax is similar to what can be found in Ruby on Rails or Python
Routes module and as such, this package can be compared to what they call a
router. Still, Net_URL_Mapper does not perform the dispatching like these
frameworks and therefore can be used with your own router.
%prep
%setup -qc
%patch0 -p1
[ -f package2.xml ] || mv package.xml package2.xml
mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml
cd %{pear_name}-%{version}
%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.
%install
cd %{pear_name}-%{version}
rm -rf $RPM_BUILD_ROOT docdir
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml
# Clean up unnecessary files
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
# Install XML package description
install -d $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
cd $RPM_BUILD_ROOT%{pear_testdir}/%{pear_name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{__pear} install --nodeps --soft --force --register-only \
%{pear_xmldir}/%{pear_name}.xml >/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
%{__pear} uninstall --nodeps --ignore-errors --register-only \
%{pear_name} >/dev/null || :
fi
%check
# check does not work under mock
#cd $RPM_BUILD_ROOT%{pear_testdir}/%{pear_name}/tests
#sh run
%files
%defattr(-,root,root,-)
%{pear_xmldir}/%{pear_name}.xml
%{pear_testdir}/%{pear_name}
%dir %{pear_phpdir}/Net/URL
%{pear_phpdir}/Net/URL/Mapper*
%changelog
* Sat Feb 9 2008 Christopher Stone <chris.stone at gmail.com> 0.9.0-2
- Add test file patch (bz #431955)
* Thu Feb 7 2008 Christopher Stone <chris.stone at gmail.com> 0.9.0-1
- Initial Fedora release
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/php-pear-Net-URL-Mapper/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 11 Feb 2008 17:55:42 -0000 1.1
+++ .cvsignore 11 Feb 2008 20:23:56 -0000 1.2
@@ -0,0 +1 @@
+Net_URL_Mapper-0.9.0.tgz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pear-Net-URL-Mapper/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 11 Feb 2008 17:55:42 -0000 1.1
+++ sources 11 Feb 2008 20:23:56 -0000 1.2
@@ -0,0 +1 @@
+11a4d002f881ac5d957cdbb6b46139f7 Net_URL_Mapper-0.9.0.tgz
- Previous message (by thread): rpms/libdbi-drivers/devel .cvsignore, 1.4, 1.5 libdbi-drivers.spec, 1.12, 1.13 sources, 1.4, 1.5
- Next message (by thread): rpms/audacious-plugins/devel .cvsignore, 1.14, 1.15 audacious-plugins.spec, 1.28, 1.29 sources, 1.14, 1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list