From 377656829c127a313553682b3297fd44ba34e420 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 22 Apr 2016 09:19:24 +0200 Subject: [PATCH] - update to 1.9.12 - add simple classmap autoloader #1319676 (cherry picked from commit 1de9f198f328e69a58e3caad8a4658cd9aca4812) (cherry picked from commit d5d87747fcc83d28171272317b54a5ca12249c64) --- .gitignore | 2 ++ php-getid3.spec | 36 +++++++++++++++++++++++++++--------- sources | 2 +- 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index d4cf85e..93ab509 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ +clog getid3-2.0.0b5.zip /getid3-1.9.3-20111213.zip /getID3-1.9.7.zip /getID3-1.9.8-20140511.zip +/getID3-1.9.12.zip diff --git a/php-getid3.spec b/php-getid3.spec index 77a4130..c79703b 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -1,26 +1,34 @@ -%global date 20140511 - +# Fedora spec file for php-getid3 +# +# License: MIT +# http://opensource.org/licenses/MIT +# +# Please preserve changelog entries +# Name: php-getid3 -Version: 1.9.8 -Release: 2%{?dist} +Version: 1.9.12 +Release: 1%{?dist} Epoch: 1 License: LGPLv3+ Summary: The PHP media file parser Group: Development/Libraries URL: http://getid3.sourceforge.net/ -Source0: http://downloads.sourceforge.net/getid3/getID3-%{version}-%{date}.zip +Source0: http://downloads.sourceforge.net/getid3/getID3-%{version}.zip BuildArch: noarch +BuildRequires: %{_bindir}/phpab # from composer.json # "php": ">=5.3.0" Requires: php(language) >= 5.3.0 -# from phpcompatinfo for version 1.9.8 +# from phpcompatinfo for version 1.9.12 +Requires: php-simplexml Requires: php-ctype Requires: php-date Requires: php-exif Requires: php-gd Requires: php-iconv +Requires: php-libxml Requires: php-pcre Requires: php-xml # Optional: dba, mysql, sqlite3, rar @@ -34,9 +42,12 @@ getID3() is a PHP script that extracts useful information other multimedia file formats (Ogg, WMA, WMV, ASF, WAV, AVI, AAC, VQF, FLAC, MusePack, Real, QuickTime, Monkey's Audio, MIDI and more). +Autoloader: %{_datadir}/php/getid3/autoload.php + %prep -%setup -q -c +%setup -q -n getID3-%{version} + for i in ./*.txt licenses/*.txt demos/*.php; do iconv -f iso-8859-1 -t utf-8 < "$i" > "${i}_" touch -r "$i" "${i}_" @@ -47,6 +58,9 @@ sed -i 's/\r//' changelog.txt %build +# From composer.json, "autoload": { +# "classmap": ["getid3/getid3.php"] +%{_bindir}/phpab --output getid3/autoload.php getid3/getid3.php %install @@ -57,12 +71,16 @@ cp -a getid3 %{buildroot}%{_datadir}/php/ %files %doc changelog.txt dependencies.txt readme.txt structure.txt demos %doc composer.json -%{?_licensedir:%license licenses/*} -%{!?_licensedir:%doc licenses} +%{?_licensedir:%license licenses license.txt} +%{!?_licensedir:%doc licenses license.txt} %{_datadir}/php/getid3 %changelog +* Mon Mar 21 2016 Remi Collet - 1:1.9.12-1 +- update to 1.9.12 +- add simple classmap autoloader #1319676 + * Thu Aug 21 2014 Remi Collet - 1:1.9.8-2 - fix minimal PHP version - add explicit dependencies for all php extensions diff --git a/sources b/sources index 1a28eae..ddf9f5b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -64712d3562e60fae6be887c4aab85a27 getID3-1.9.8-20140511.zip +1f770e6016db07daf41e68ec4d2d62f3 getID3-1.9.12.zip