rpms/php-pear-HTTP-OAuth/F-12 xml2changelog, NONE, 1.1 php-pear-HTTP-OAuth.spec, 1.4, 1.5 sources, 1.5, 1.6
Remi Collet
remi at fedoraproject.org
Thu Jun 24 17:36:40 UTC 2010
- Previous message: rpms/evolution/F-13 evolution-2.30.2-handle-startdate-uris.patch, NONE, 1.1 evolution.spec, 1.460, 1.461
- Next message: rpms/gnome-applet-netspeed/devel Makefile, 1.3, 1.4 gnome-applet-netspeed.spec, 1.20, 1.21 sources, 1.7, 1.8 .cvsignore, 1.6, 1.7 dead.package, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: remi
Update of /cvs/pkgs/rpms/php-pear-HTTP-OAuth/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv30857
Modified Files:
php-pear-HTTP-OAuth.spec sources
Added Files:
xml2changelog
Log Message:
update to 0.1.15 (bugfix)
--- NEW FILE xml2changelog ---
<?php
$prog=array_shift($_SERVER['argv']);
if ($_SERVER['argc']<2) die ("usage : " . $prog . " path_to_package.xml [ --debug ]\n");
$file=array_shift($_SERVER['argv']);
($xml=simplexml_load_file($file)) || die ($file . " not found !\n");
if (in_array("--debug", $_SERVER['argv'])) print_r($xml);
if ($xml['version'] >= "2"){ // Package.xml V 2.0
printf("*** Version %s (%s) - API %s (%s) - %s\n\n%s\n\n",
$xml->version->release, $xml->stability->release,
$xml->version->api, $xml->stability->api,
$xml->date, $xml->notes);
$new=$xml->version->release;
if (isset($xml->changelog->release) && count($xml->changelog->release)) {
$tab = array();
foreach($xml->changelog->release as $rel) {
$old=$rel->version->release;
if ("$old" != "$new") {
$tab[''.$rel->date] = $rel;
}
}
krsort($tab);
foreach($tab as $rel) {
printf("*** Version %s (%s) - API %s (%s) - %s\n\n%s\n\n",
$rel->version->release, $rel->stability->release,
$rel->version->api, $rel->stability->api,
$rel->date, $rel->notes);
}
}
} else { // Package.xml V 1.0
printf("* Version %s (%s) - %s\n\n%s\n\n",
$xml->release->version, $xml->release->state, $xml->release->date, $xml->release->notes);
foreach($xml->changelog->release as $rel)
printf("* Version %s (%s) - %s\n\n%s\n\n",
$rel->version, $rel->state, $rel->date, $rel->notes);
}
?>
Index: php-pear-HTTP-OAuth.spec
===================================================================
RCS file: /cvs/pkgs/rpms/php-pear-HTTP-OAuth/F-12/php-pear-HTTP-OAuth.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- php-pear-HTTP-OAuth.spec 21 Feb 2010 16:14:36 -0000 1.4
+++ php-pear-HTTP-OAuth.spec 24 Jun 2010 17:36:40 -0000 1.5
@@ -2,7 +2,7 @@
%global pear_name HTTP_OAuth
Name: php-pear-HTTP-OAuth
-Version: 0.1.9
+Version: 0.1.15
Release: 1%{?dist}
Summary: Implementation of the OAuth spec
@@ -10,8 +10,9 @@ Group: Development/Libraries
License: BSD
URL: http://pear.php.net/package/HTTP_OAuth
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source2: xml2changelog
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-pear >= 1:1.4.9-1.2
@@ -32,6 +33,7 @@ Allows the use of the consumer and provi
%prep
%setup -q -c
# Package is V2
+%{_bindir}/php -n %{SOURCE2} package.xml >CHANGELOG
mv package.xml %{pear_name}-%{version}/%{name}.xml
cd %{pear_name}-%{version}
@@ -64,6 +66,14 @@ install -pm 644 %{name}.xml $RPM_BUILD_R
rm -rf $RPM_BUILD_ROOT
+%check
+# For documentation only - to run after installation
+# cd /usr/share/pear/test/HTTP_OAuth/tests
+# phpunit AllTests.php
+# With PHPUnit 3.4.14 + HTTP_OAuth 0.1.15
+# OK (69 tests, 176 assertions)
+
+
%post
%{__pear} install --nodeps --soft --force --register-only \
%{pear_xmldir}/%{name}.xml >/dev/null || :
@@ -77,6 +87,7 @@ fi
%files
%defattr(-,root,root,-)
+%doc CHANGELOG
%doc %{pear_name}-%{version}/docdir/%{pear_name}/*
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/HTTP/OAuth.php
@@ -84,9 +95,23 @@ fi
%{pear_testdir}/HTTP_OAuth
# only an empty unused file
%exclude %{pear_datadir}/HTTP_OAuth/README
+# file not used (packaging error in 0.1.10)
+%exclude %{pear_phpdir}/generatePackage.php
+%exclude %{pear_phpdir}/runTests.php
%changelog
+* Thu Jun 24 2010 Remi Collet <Fedora at FamilleCollet.com> 0.1.15-1
+- Version 0.1.15 (alpha) - API 0.1.1 (alpha)
+
+* Thu May 27 2010 Remi Collet <Fedora at FamilleCollet.com> 0.1.14-1
+- Version 0.1.14 (alpha) - API 0.1.1 (alpha)
+
+* Thu Apr 29 2010 Remi Collet <Fedora at FamilleCollet.com> 0.1.10-1
+- new version 0.1.10 (alpha) - API 0.1.1 (alpha)
+- add generated CHANGELOG
+- add doc on howto run tests
+
* Sun Feb 21 2010 Remi Collet <Fedora at FamilleCollet.com> 0.1.9-1
- new version
- raise HTTP_Request2 to 0.5.1
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-pear-HTTP-OAuth/F-12/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- sources 21 Feb 2010 16:14:36 -0000 1.5
+++ sources 24 Jun 2010 17:36:40 -0000 1.6
@@ -1 +1 @@
-b382f5c6ab1d12f4e7333ed38647ffce HTTP_OAuth-0.1.9.tgz
+ae4853b9bad19ae7c0abf66c4190a942 HTTP_OAuth-0.1.15.tgz
- Previous message: rpms/evolution/F-13 evolution-2.30.2-handle-startdate-uris.patch, NONE, 1.1 evolution.spec, 1.460, 1.461
- Next message: rpms/gnome-applet-netspeed/devel Makefile, 1.3, 1.4 gnome-applet-netspeed.spec, 1.20, 1.21 sources, 1.7, 1.8 .cvsignore, 1.6, 1.7 dead.package, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list