Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Remi Collet
377656829c - update to 1.9.12
- add simple classmap autoloader #1319676

(cherry picked from commit 1de9f198f3)
(cherry picked from commit d5d87747fc)
2016-04-22 09:27:16 +02:00
3 changed files with 30 additions and 10 deletions

2
.gitignore vendored
View file

@ -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

View file

@ -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 <remi@fedoraproject.org> - 1:1.9.12-1
- update to 1.9.12
- add simple classmap autoloader #1319676
* Thu Aug 21 2014 Remi Collet <remi@fedoraproject.org> - 1:1.9.8-2
- fix minimal PHP version
- add explicit dependencies for all php extensions

View file

@ -1 +1 @@
64712d3562e60fae6be887c4aab85a27 getID3-1.9.8-20140511.zip
1f770e6016db07daf41e68ec4d2d62f3 getID3-1.9.12.zip