127 lines
3.6 KiB
RPMSpec
127 lines
3.6 KiB
RPMSpec
# Fedora spec file for php-getid3
|
|
#
|
|
# License: MIT
|
|
# http://opensource.org/licenses/MIT
|
|
#
|
|
# Please preserve changelog entries
|
|
#
|
|
Name: php-getid3
|
|
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}.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.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
|
|
|
|
Provides: php-composer(james-heinrich/getid3) = %{version}
|
|
|
|
|
|
%description
|
|
getID3() is a PHP script that extracts useful information
|
|
(such as ID3 tags, bitrate, playtime, etc.) from MP3s &
|
|
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 -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}_"
|
|
mv "${i}_" "$i"
|
|
done
|
|
sed -i 's/\r//' demos/index.php
|
|
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
|
|
mkdir -p %{buildroot}%{_datadir}/php
|
|
cp -a getid3 %{buildroot}%{_datadir}/php/
|
|
|
|
|
|
%files
|
|
%doc changelog.txt dependencies.txt readme.txt structure.txt demos
|
|
%doc composer.json
|
|
%{?_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 Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.9.8-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* 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
|
|
- fix license handling
|
|
- provides php-composer(james-heinrich/getid3)
|
|
|
|
* Wed Aug 20 2014 Adam Williamson <awilliam@redhat.com> - 1:1.9.8-1
|
|
- new release 1.9.8
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.9.7-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sun Sep 08 2013 Roma <roma@lcg.ufrj.br> - 1:1.9.7-1
|
|
- Updated to 1.9.7
|
|
- Changed license to LGPLv3+
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.9.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Sun Oct 07 2012 Paulo Roma <roma@lcg.ufrj.br> - 1:1.9.3-1
|
|
- Downgraded to latest stable version.
|
|
- Got needed extensions by using:
|
|
phpci print --recursive --report extension /usr/share/php/getid3/
|
|
- Added BR php-gd.
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0b5-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0b5-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
* Fri Jul 31 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0.0b5-2
|
|
- Updated ampache patch.
|
|
|
|
* Thu Jun 04 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0.0b5-1
|
|
- Updated to 2.0.0b5
|
|
- Patched with ampache fixes.
|
|
|
|
* Thu Jun 04 2009 Paulo Roma <roma@lcg.ufrj.br> 1.7.9-1
|
|
- Initial spec file.
|