Compare commits
11 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
584b86bf7d | ||
|
|
9c292fa222 | ||
|
|
b8cb0b129e | ||
|
|
a3ab0e42ea | ||
|
|
f6f3c48b6c | ||
|
|
53914b831a | ||
|
|
2ce5fbf4b5 | ||
|
|
f05f80cba3 | ||
|
|
f33cbcb552 | ||
|
|
6e39f615a4 | ||
|
|
377656829c |
4 changed files with 136 additions and 21 deletions
12
.gitignore
vendored
12
.gitignore
vendored
|
|
@ -1,4 +1,16 @@
|
|||
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
|
||||
/getID3-1.9.13-b9a8564.tar.gz
|
||||
/getID3-1.9.14-30bd114.tar.gz
|
||||
/getID3-1.9.15-df9b441.tar.gz
|
||||
/getID3-1.9.16-7aec0d4.tar.gz
|
||||
/getID3-1.9.17-d2e45f2.tar.gz
|
||||
/php-getid3-1.9.18-0723b77.tgz
|
||||
/php-getid3-1.9.19-c6fd499.tgz
|
||||
/php-getid3-1.9.20-3c15e35.tgz
|
||||
/php-getid3-1.9.21-36f5dab.tgz
|
||||
/php-getid3-1.9.22-45f20fa.tgz
|
||||
|
|
|
|||
28
makesrc.sh
Executable file
28
makesrc.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
NAME=$(basename $PWD)
|
||||
OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec)
|
||||
PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec)
|
||||
VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec)
|
||||
COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec)
|
||||
SHORT=${COMMIT:0:7}
|
||||
|
||||
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION, Commit=$COMMIT\n"
|
||||
|
||||
echo "Cloning..."
|
||||
git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
|
||||
|
||||
echo "Getting commit..."
|
||||
pushd $PROJECT-$COMMIT
|
||||
git checkout $COMMIT
|
||||
cp composer.json ../composer.json
|
||||
popd
|
||||
|
||||
echo "Archiving..."
|
||||
tar czf $NAME-$VERSION-$SHORT.tgz --exclude-vcs $PROJECT-$COMMIT
|
||||
|
||||
echo "Cleaning..."
|
||||
rm -rf $PROJECT-$COMMIT
|
||||
|
||||
echo "Done."
|
||||
|
||||
115
php-getid3.spec
115
php-getid3.spec
|
|
@ -1,31 +1,57 @@
|
|||
%global date 20140511
|
||||
#
|
||||
# Fedora spec file for php-getid3
|
||||
#
|
||||
# License: MIT
|
||||
# http://opensource.org/licenses/MIT
|
||||
#
|
||||
# Please preserve changelog entries
|
||||
#
|
||||
%global gh_commit 45f20faa0f0a24489740392c5b512ddcc36deccd
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner JamesHeinrich
|
||||
%global gh_project getID3
|
||||
%global pk_owner james-heinrich
|
||||
%global pk_project getid3
|
||||
|
||||
Name: php-getid3
|
||||
Version: 1.9.8
|
||||
Release: 2%{?dist}
|
||||
Name: php-%{pk_project}
|
||||
Version: 1.9.22
|
||||
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
|
||||
URL: https://www.getid3.org/
|
||||
Source0: %{name}-%{version}-%{gh_short}.tgz
|
||||
Source1: makesrc.sh
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: php-fedora-autoloader-devel
|
||||
|
||||
# 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.16
|
||||
Requires: php-simplexml
|
||||
Requires: php-ctype
|
||||
Requires: php-date
|
||||
Requires: php-exif
|
||||
Requires: php-filter
|
||||
Requires: php-gd
|
||||
Requires: php-iconv
|
||||
Requires: php-json
|
||||
Requires: php-libxml
|
||||
Requires: php-mbstring
|
||||
Requires: php-pcre
|
||||
Requires: php-xml
|
||||
# Optional: dba, mysql, sqlite3, rar
|
||||
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
||||
Suggests: php-dba
|
||||
Suggests: php-mysqli
|
||||
Suggests: php-rar
|
||||
Suggests: php-sqlite3
|
||||
%endif
|
||||
# Autoloader
|
||||
Requires: php-composer(fedora/autoloader)
|
||||
|
||||
Provides: php-composer(james-heinrich/getid3) = %{version}
|
||||
Provides: php-composer(%{pk_owner}/%{pk_project}) = %{version}
|
||||
|
||||
|
||||
%description
|
||||
|
|
@ -34,19 +60,17 @@ 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
|
||||
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
|
||||
%setup -q -n %{gh_project}-%{gh_commit}
|
||||
|
||||
|
||||
%build
|
||||
# From composer.json, "autoload": {
|
||||
# "classmap": ["getid3/"]
|
||||
%{_bindir}/phpab --template fedora --output getid3/autoload.php getid3
|
||||
|
||||
|
||||
%install
|
||||
|
|
@ -54,15 +78,66 @@ mkdir -p %{buildroot}%{_datadir}/php
|
|||
cp -a getid3 %{buildroot}%{_datadir}/php/
|
||||
|
||||
|
||||
%check
|
||||
php -r '
|
||||
require "%{buildroot}%{_datadir}/php/getid3/autoload.php";
|
||||
$ok = class_exists("getID3");
|
||||
echo "Autoload: " . ($ok ? "Ok\n" : "fails\n");
|
||||
echo "Version: " . getID3::VERSION . "\n";
|
||||
$ok = ($ok && strpos(getID3::VERSION, "%{version}") !== false);
|
||||
exit ($ok ? 0 : 1);
|
||||
'
|
||||
|
||||
|
||||
%files
|
||||
%license licenses license.txt
|
||||
%doc changelog.txt dependencies.txt readme.txt structure.txt demos
|
||||
%doc composer.json
|
||||
%{?_licensedir:%license licenses/*}
|
||||
%{!?_licensedir:%doc licenses}
|
||||
%{_datadir}/php/getid3
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Sep 30 2022 Remi Collet <remi@remirepo.net> - 1.9.22-1
|
||||
- update to 1.9.22
|
||||
|
||||
* Thu Sep 23 2021 Remi Collet <remi@remirepo.net> - 1.9.21-1
|
||||
- update to 1.9.21
|
||||
|
||||
* Wed Jul 1 2020 Remi Collet <remi@remirepo.net> - 1.9.20-1
|
||||
- update to 1.9.20
|
||||
|
||||
* Wed Dec 18 2019 Remi Collet <remi@remirepo.net> - 1.9.19-1
|
||||
- update to 1.9.19
|
||||
|
||||
* Tue Sep 17 2019 Remi Collet <remi@remirepo.net> - 1.9.18-1
|
||||
- update to 1.9.18
|
||||
- use git snapshot for sources
|
||||
|
||||
* Fri Feb 8 2019 Remi Collet <remi@remirepo.net> - 1.9.17-1
|
||||
- update to 1.9.17
|
||||
- add weak dependencies on suggested extension
|
||||
|
||||
* Thu Oct 18 2018 Remi Collet <remi@remirepo.net> - 1.9.16-1
|
||||
- update to 1.9.16
|
||||
|
||||
* Mon Oct 30 2017 Remi Collet <remi@remirepo.net> - 1.9.15-1
|
||||
- Update to 1.9.15
|
||||
|
||||
* Tue Mar 28 2017 Remi Collet <remi@remirepo.net> - 1:1.9.14-1
|
||||
- Update to 1.9.14
|
||||
- handle all classes in autoloader
|
||||
|
||||
* Thu Dec 15 2016 Remi Collet <remi@fedoraproject.org> - 1:1.9.13-1
|
||||
- update to 1.9.13
|
||||
- use new URL http://www.getid3.org/
|
||||
- use sources from github
|
||||
- switch to fedora/autoloader
|
||||
- add minimal check for autoloader
|
||||
|
||||
* 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
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
64712d3562e60fae6be887c4aab85a27 getID3-1.9.8-20140511.zip
|
||||
SHA512 (php-getid3-1.9.22-45f20fa.tgz) = 5753a1de535117a4874723320c9d31cdcb57bfb77176a4a7ebd821c9c0f66091b0fae4888dc41aba98688507e2aa77110cee44c9ac8fdff9fb0a0d53b998eadc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue