|
|
Choosing A Webhost: |
Including a CHANGELOG in php-pear extension package.: msg#00088linux.redhat.fedora.extras.packaging
Do you thinks it's a good idea ? I wrote a little script to extract the CHANGELOG from the package.xml provided by the upstream package. Only have to add to the spec : Source2: xml2changelog In %prep : %setup -q -c [ -f package2.xml ] || mv package.xml package2.xml + %{_bindir}/php -n %{SOURCE2} package2.xml >CHANGELOG mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml and, of course %doc CHANGELOG Here is my script : <?php $prog=array_shift($_SERVER['argv']); if ($_SERVER['argc']<2) die ("usage : " . $prog . " path_to_package.xml\n"); $file=array_shift($_SERVER['argv']); ($xml=simplexml_load_file($file)) || die ($file . " not found !\n"); 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); ?>
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: pkgconfig dependency question, Jesse Keating |
|---|---|
| Next by Date: | Kernel Module Packaging, Parag N(पराग़) |
| Previous by Thread: | Removing of unwanted compiler flags from $RPM_OPT_FLAGS, Jochen Schmitt |
| Next by Thread: | Kernel Module Packaging, Parag N(पराग़) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |