57 lines
1.4 KiB
RPMSpec
57 lines
1.4 KiB
RPMSpec
Name: php-getid3
|
|
Version: 2.0.0b5
|
|
Release: 2%{?dist}
|
|
License: GPLv2
|
|
Summary: The PHP media file parser
|
|
Group: Development/Libraries
|
|
URL: http://getid3.sourceforge.net/
|
|
Source0: http://downloads.sourceforge.net/getid3/getid3-%{version}.zip
|
|
Patch0: ampache.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Requires: php >= 5.0.0
|
|
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
|
|
%patch0 -p0 -b .ampache
|
|
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//' demos/demo.mysql.structure.sql
|
|
|
|
%build
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/php
|
|
cp -a getid3 %{buildroot}%{_datadir}/php/
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc *.txt demos
|
|
%{_datadir}/php/getid3
|
|
|
|
%changelog
|
|
|
|
* 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.
|