diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-11-25 11:47:54 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-11-25 11:47:54 +0100 |
commit | 3cdee58ce563a1aa7f50879249b534f443817f00 (patch) | |
tree | 7b0bcf04f64060a74cf816bbae71049888a241a5 /php-getid3.spec |
php-getid3: import from rawhide
Diffstat (limited to 'php-getid3.spec')
-rw-r--r-- | php-getid3.spec | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/php-getid3.spec b/php-getid3.spec new file mode 100644 index 0000000..87caa74 --- /dev/null +++ b/php-getid3.spec @@ -0,0 +1,71 @@ +Name: php-getid3 +Version: 1.9.3 +Release: 1%{?dist} +Epoch: 1 +License: GPLv2 +Summary: The PHP media file parser +Group: Development/Libraries +URL: http://getid3.sourceforge.net/ +Source0: http://downloads.sourceforge.net/getid3/getid3-%{version}-20111213.zip +Source1: gpl-2.0.txt +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: php-common >= 5.0.0 +Requires: php-gd +BuildArch: noarch + +%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). + +%prep +%setup -q -c +for i in ./*.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 + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}%{_datadir}/php +cp -a getid3 %{buildroot}%{_datadir}/php/ +cp -a %{SOURCE1} %{_builddir}/%{name}-%{version}/ + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc changelog.txt dependencies.txt gpl-2.0.txt license.commercial.txt readme.txt structure.txt demos +%{_datadir}/php/getid3 + +%changelog +* 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. |