diff --git a/.gitignore b/.gitignore index 6814c99..821ff2e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -XML_RSS-1.0.0.tgz -package.xml +package*.xml +*~ /XML_RSS-1.0.1.tgz +/XML_RSS-1.0.2.tgz diff --git a/php-pear-XML-RSS.spec b/php-pear-XML-RSS.spec index 22ea10f..43e510f 100644 --- a/php-pear-XML-RSS.spec +++ b/php-pear-XML-RSS.spec @@ -2,8 +2,8 @@ %global pear_name XML_RSS Name: php-pear-XML-RSS -Version: 1.0.1 -Release: 2%{?dist} +Version: 1.0.2 +Release: 1%{?dist} Summary: RSS parser Group: Development/Libraries @@ -49,8 +49,8 @@ cd %{pear_name}-%{version} %install +rm -rf $RPM_BUILD_ROOT cd %{pear_name}-%{version} -rm -rf $RPM_BUILD_ROOT docdir PHPRC=../php.ini %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml # Clean up unnecessary files @@ -65,7 +65,7 @@ install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir} cd %{pear_name}-%{version} phpunit \ -d date.timezone=UTC \ - -d include_path=%{pear_phpdir}:$RPM_BUILD_ROOT%{pear_phpdir} \ + -d include_path=$RPM_BUILD_ROOT%{pear_phpdir}:%{pear_phpdir} \ tests @@ -94,6 +94,9 @@ fi %changelog +* Tue May 3 2011 Remi Collet - 1.0.2-1 +- Version 1.0.2 (stable) - API 1.0.0 (stable) + * Wed Feb 09 2011 Fedora Release Engineering - 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild diff --git a/sources b/sources index 058b6d9..e061af3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0d5419af419cda4afafab7bce3a68168 XML_RSS-1.0.1.tgz +09bce549a425b267b2945ba8fb41a413 XML_RSS-1.0.2.tgz diff --git a/xml2changelog b/xml2changelog index eb6bd31..4c789f4 100644 --- a/xml2changelog +++ b/xml2changelog @@ -7,11 +7,14 @@ $file=array_shift($_SERVER['argv']); 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; + $new = ""; + if (strlen(trim($xml->notes))>1) { // Ignore too short descr. + 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(); @@ -20,14 +23,14 @@ if ($xml['version'] >= "2"){ // Package.xml V 2.0 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->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",