rpms/php-pear-Services-Twitter/F-12 xml2changelog, NONE, 1.1 php-pear-Services-Twitter.spec, 1.3, 1.4 sources, 1.4, 1.5

Remi Collet remi at fedoraproject.org
Sun Jun 6 06:40:01 UTC 2010


Author: remi

Update of /cvs/pkgs/rpms/php-pear-Services-Twitter/F-12
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv11977

Modified Files:
	php-pear-Services-Twitter.spec sources 
Added Files:
	xml2changelog 
Log Message:
update to 0.6.1


--- 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-Services-Twitter.spec
===================================================================
RCS file: /cvs/pkgs/rpms/php-pear-Services-Twitter/F-12/php-pear-Services-Twitter.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- php-pear-Services-Twitter.spec	1 Mar 2010 17:24:38 -0000	1.3
+++ php-pear-Services-Twitter.spec	6 Jun 2010 06:40:01 -0000	1.4
@@ -2,7 +2,7 @@
 %global pear_name Services_Twitter
 
 Name:           php-pear-Services-Twitter
-Version:        0.5.1
+Version:        0.6.1
 Release:        1%{?dist}
 Summary:        PHP interface to Twitter's API
 
@@ -10,6 +10,8 @@ Group:          Development/Libraries
 License:        BSD
 URL:            http://pear.php.net/package/Services_Twitter
 Source0:        http://pear.php.net/get/%{pear_name}-%{version}.tgz
+Source2:        xml2changelog
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -30,6 +32,7 @@ Send status updates, fetch information, 
 %prep
 %setup -q -c
 # package is V2
+%{_bindir}/php -n %{SOURCE2} package.xml | tee CHANGELOG | head -n 10
 mv package.xml %{pear_name}-%{version}/%{name}.xml
 cd %{pear_name}-%{version}
 
@@ -71,6 +74,7 @@ fi
 
 %files
 %defattr(-,root,root,-)
+%doc CHANGELOG
 %{pear_xmldir}/%{name}.xml
 %{pear_phpdir}/Services
 %{pear_datadir}/Services_Twitter
@@ -78,6 +82,14 @@ fi
 
 
 %changelog
+* Sun Jun 06 2010 Remi Collet <Fedora at FamilleCollet.com> 0.6.1-1
+- update Version 0.6.1 (beta) - API 0.6.0 (beta)
+- sort changelog
+
+* Wed Jun 02 2010 Remi Collet <Fedora at FamilleCollet.com> 0.6.0-1
+- update Version 0.6.0 (beta) - API 0.6.0 (beta)
+- add generated changelog (from package.xml)
+
 * Mon Mar  1 2010 Remi Collet <Fedora at FamilleCollet.com> 0.5.1-1
 - update to 0.5.1
 - fix requires (php-xml php-mbstring)


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/php-pear-Services-Twitter/F-12/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -p -r1.4 -r1.5
--- sources	1 Mar 2010 17:24:38 -0000	1.4
+++ sources	6 Jun 2010 06:40:01 -0000	1.5
@@ -1 +1 @@
-f90547a1859103f5ef56171a4804ef70  Services_Twitter-0.5.1.tgz
+cf2dcd57e839f54e004c0e39917490cc  Services_Twitter-0.6.1.tgz



More information about the scm-commits mailing list