From 377656829c127a313553682b3297fd44ba34e420 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 22 Apr 2016 09:19:24 +0200 Subject: [PATCH 01/11] - update to 1.9.12 - add simple classmap autoloader #1319676 (cherry picked from commit 1de9f198f328e69a58e3caad8a4658cd9aca4812) (cherry picked from commit d5d87747fcc83d28171272317b54a5ca12249c64) --- .gitignore | 2 ++ php-getid3.spec | 36 +++++++++++++++++++++++++++--------- sources | 2 +- 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index d4cf85e..93ab509 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/php-getid3.spec b/php-getid3.spec index 77a4130..c79703b 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -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 - 1:1.9.12-1 +- update to 1.9.12 +- add simple classmap autoloader #1319676 + * Thu Aug 21 2014 Remi Collet - 1:1.9.8-2 - fix minimal PHP version - add explicit dependencies for all php extensions diff --git a/sources b/sources index 1a28eae..ddf9f5b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -64712d3562e60fae6be887c4aab85a27 getID3-1.9.8-20140511.zip +1f770e6016db07daf41e68ec4d2d62f3 getID3-1.9.12.zip From 6e39f615a4ad3d1be416c7ff659d684679e1f9dc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 15 Dec 2016 14:35:16 +0100 Subject: [PATCH 02/11] 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 (cherry picked from commit b8a387109ed9b6d28098eae4ca0c156f80775b74) --- .gitignore | 1 + php-getid3.spec | 57 ++++++++++++++++++++++++++++++++----------------- sources | 2 +- 3 files changed, 40 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index 93ab509..7ef4c63 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ getid3-2.0.0b5.zip /getID3-1.9.7.zip /getID3-1.9.8-20140511.zip /getID3-1.9.12.zip +/getID3-1.9.13-b9a8564.tar.gz diff --git a/php-getid3.spec b/php-getid3.spec index c79703b..aaf10c9 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -1,3 +1,4 @@ +# # Fedora spec file for php-getid3 # # License: MIT @@ -5,18 +6,25 @@ # # Please preserve changelog entries # -Name: php-getid3 -Version: 1.9.12 +%global gh_commit b9a8564e56bdcc294dc7ade32a7f67885bed3778 +%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-%{pk_project} +Version: 1.9.13 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 +URL: http://www.getid3.org/ +Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz BuildArch: noarch -BuildRequires: %{_bindir}/phpab +BuildRequires: php-fedora-autoloader-devel # from composer.json # "php": ">=5.3.0" @@ -31,9 +39,11 @@ Requires: php-iconv Requires: php-libxml Requires: php-pcre Requires: php-xml -# Optional: dba, mysql, sqlite3, rar +# Optional: dba, mysql, mysqli, sqlite3, rar +# Autoloader +Requires: php-composer(fedora/autoloader) -Provides: php-composer(james-heinrich/getid3) = %{version} +Provides: php-composer(%{pk_owner}/%{pk_project}) = %{version} %description @@ -46,37 +56,46 @@ 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 +%setup -q -n %{gh_project}-%{gh_commit} %build # From composer.json, "autoload": { # "classmap": ["getid3/getid3.php"] -%{_bindir}/phpab --output getid3/autoload.php getid3/getid3.php +%{_bindir}/phpab --template fedora --output getid3/autoload.php getid3/getid3.php %install + 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"); +exit ($ok ? 0 : 1); +' + + %files +%{!?_licensedir:%global license %%doc} +%license licenses license.txt %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 +* Thu Dec 15 2016 Remi Collet - 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 - 1:1.9.12-1 - update to 1.9.12 - add simple classmap autoloader #1319676 diff --git a/sources b/sources index ddf9f5b..1724af0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -1f770e6016db07daf41e68ec4d2d62f3 getID3-1.9.12.zip +SHA512 (getID3-1.9.13-b9a8564.tar.gz) = 6286bdbbb790c0deed777490ba84731949a541ab302217c742ba4d0c15247f0844651337da2c7f67f7098c4929dd45eaceb9a203bae9a9d07b148c7803e4bcb5 From f33cbcb55245157a1fe57bc524c45fec21b84647 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 28 Mar 2017 07:33:09 +0200 Subject: [PATCH 03/11] Update to 1.9.14 handle all classes in autoloader (cherry picked from commit 22084a99921cd625c23c4c4d1e1d043de0f6cecc) (cherry picked from commit a88b9ced22172ee5863f9b81751042102ab116f2) --- .gitignore | 1 + php-getid3.spec | 16 +++++++++++----- sources | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 7ef4c63..19f1043 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ getid3-2.0.0b5.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 diff --git a/php-getid3.spec b/php-getid3.spec index aaf10c9..72bd61b 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -6,7 +6,7 @@ # # Please preserve changelog entries # -%global gh_commit b9a8564e56bdcc294dc7ade32a7f67885bed3778 +%global gh_commit 30bd11473b0eef6f1b47866ef7ab0a557917fc21 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner JamesHeinrich %global gh_project getID3 @@ -14,7 +14,7 @@ %global pk_project getid3 Name: php-%{pk_project} -Version: 1.9.13 +Version: 1.9.14 Release: 1%{?dist} Epoch: 1 License: LGPLv3+ @@ -61,8 +61,8 @@ Autoloader: %{_datadir}/php/getid3/autoload.php %build # From composer.json, "autoload": { -# "classmap": ["getid3/getid3.php"] -%{_bindir}/phpab --template fedora --output getid3/autoload.php getid3/getid3.php +# "classmap": ["getid3/"] +%{_bindir}/phpab --template fedora --output getid3/autoload.php getid3 %install @@ -75,7 +75,9 @@ cp -a getid3 %{buildroot}%{_datadir}/php/ php -r ' require "%{buildroot}%{_datadir}/php/getid3/autoload.php"; $ok = class_exists("getID3"); -echo "Autoload " . ($ok ? "Ok\n" : "fails\n"); +echo "Autoload: " . ($ok ? "Ok\n" : "fails\n"); +echo "Version: " . getID3::VERSION . "\n"; +$ok = ($ok && strpos(getID3::VERSION, "%{version}") !== false); exit ($ok ? 0 : 1); ' @@ -89,6 +91,10 @@ exit ($ok ? 0 : 1); %changelog +* Tue Mar 28 2017 Remi Collet - 1:1.9.14-1 +- Update to 1.9.14 +- handle all classes in autoloader + * Thu Dec 15 2016 Remi Collet - 1:1.9.13-1 - update to 1.9.13 - use new URL http://www.getid3.org/ diff --git a/sources b/sources index 1724af0..83e577e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (getID3-1.9.13-b9a8564.tar.gz) = 6286bdbbb790c0deed777490ba84731949a541ab302217c742ba4d0c15247f0844651337da2c7f67f7098c4929dd45eaceb9a203bae9a9d07b148c7803e4bcb5 +SHA512 (getID3-1.9.14-30bd114.tar.gz) = f70618a58b56e65d76c693440ae432dde1e3eede2e38241ca5f8172665a34e83caab57dc7715f140615a31622535cec6a56a73228f720e831f136016d8a9d92d From f05f80cba344fdbd072619cfbeb8f272a6fe3eac Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 30 Oct 2017 14:17:07 +0100 Subject: [PATCH 04/11] v1.9.15 (cherry picked from commit bf936d8b3afa6e4b782167c3c0b2fc1899fa68fe) (cherry picked from commit ad3230823a6e2e5fc8176b13b469ad31eac81d8a) --- .gitignore | 1 + php-getid3.spec | 8 +++++--- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 19f1043..86665fc 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ getid3-2.0.0b5.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 diff --git a/php-getid3.spec b/php-getid3.spec index 72bd61b..bb3bd7d 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -6,7 +6,7 @@ # # Please preserve changelog entries # -%global gh_commit 30bd11473b0eef6f1b47866ef7ab0a557917fc21 +%global gh_commit df9b441e547da1018b1be0e239bee095c9962c96 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner JamesHeinrich %global gh_project getID3 @@ -14,7 +14,7 @@ %global pk_project getid3 Name: php-%{pk_project} -Version: 1.9.14 +Version: 1.9.15 Release: 1%{?dist} Epoch: 1 License: LGPLv3+ @@ -66,7 +66,6 @@ Autoloader: %{_datadir}/php/getid3/autoload.php %install - mkdir -p %{buildroot}%{_datadir}/php cp -a getid3 %{buildroot}%{_datadir}/php/ @@ -91,6 +90,9 @@ exit ($ok ? 0 : 1); %changelog +* Mon Oct 30 2017 Remi Collet - 1.9.15-1 +- Update to 1.9.15 + * Tue Mar 28 2017 Remi Collet - 1:1.9.14-1 - Update to 1.9.14 - handle all classes in autoloader diff --git a/sources b/sources index 83e577e..3a364e2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (getID3-1.9.14-30bd114.tar.gz) = f70618a58b56e65d76c693440ae432dde1e3eede2e38241ca5f8172665a34e83caab57dc7715f140615a31622535cec6a56a73228f720e831f136016d8a9d92d +SHA512 (getID3-1.9.15-df9b441.tar.gz) = 12de3d093b2e04af09eca8cec6ef1de565197c70ea7a09737b0d2ee4887f4aa9876ea9b8ed62ca1a6c029c24affad7a8f41e2ba798a4b67fcb573ecce5ee62aa From 2ce5fbf4b56f41ffecad3d7e2947adae33315720 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 18 Oct 2018 10:22:54 +0200 Subject: [PATCH 05/11] v1.9.16 (cherry picked from commit 2b4e053b083a27c971ba3ca375125f2a45e97437) (cherry picked from commit dc4e306784b367a23ab2b78b48f038b24d024b95) --- .gitignore | 1 + php-getid3.spec | 11 ++++++++--- sources | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 86665fc..4260b28 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ getid3-2.0.0b5.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 diff --git a/php-getid3.spec b/php-getid3.spec index bb3bd7d..8cf6ba8 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -6,7 +6,7 @@ # # Please preserve changelog entries # -%global gh_commit df9b441e547da1018b1be0e239bee095c9962c96 +%global gh_commit 7aec0d4f5fc156612f71e415d07996aee6ab8d82 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner JamesHeinrich %global gh_project getID3 @@ -14,7 +14,7 @@ %global pk_project getid3 Name: php-%{pk_project} -Version: 1.9.15 +Version: 1.9.16 Release: 1%{?dist} Epoch: 1 License: LGPLv3+ @@ -29,14 +29,16 @@ BuildRequires: php-fedora-autoloader-devel # from composer.json # "php": ">=5.3.0" Requires: php(language) >= 5.3.0 -# from phpcompatinfo for version 1.9.12 +# 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-libxml +Requires: php-mbstring Requires: php-pcre Requires: php-xml # Optional: dba, mysql, mysqli, sqlite3, rar @@ -90,6 +92,9 @@ exit ($ok ? 0 : 1); %changelog +* Thu Oct 18 2018 Remi Collet - 1.9.16-1 +- update to 1.9.16 + * Mon Oct 30 2017 Remi Collet - 1.9.15-1 - Update to 1.9.15 diff --git a/sources b/sources index 3a364e2..19bf152 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (getID3-1.9.15-df9b441.tar.gz) = 12de3d093b2e04af09eca8cec6ef1de565197c70ea7a09737b0d2ee4887f4aa9876ea9b8ed62ca1a6c029c24affad7a8f41e2ba798a4b67fcb573ecce5ee62aa +SHA512 (getID3-1.9.16-7aec0d4.tar.gz) = ed17179d79634da5dfc514fb8f563f51884629e502b6c3ad4e21a6ec2a930600030a2dcaa15187fa4f0564d78855b70ef175cefb467aee57d7903bfec2365199 From 53914b831aa7e6be160d706da7a605a54a1e04ca Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 8 Feb 2019 10:06:15 +0100 Subject: [PATCH 06/11] update to 1.9.17 add weak dependencies on suggested extension (cherry picked from commit 6dd230c5e59d864d5abcd9056284c85416ef65fd) (cherry picked from commit 1f2f6de71b0520c58330cbb20d27ebe9934d421d) --- .gitignore | 1 + php-getid3.spec | 19 ++++++++++++++----- sources | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 4260b28..9906a50 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ getid3-2.0.0b5.zip /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 diff --git a/php-getid3.spec b/php-getid3.spec index 8cf6ba8..680435d 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -6,7 +6,7 @@ # # Please preserve changelog entries # -%global gh_commit 7aec0d4f5fc156612f71e415d07996aee6ab8d82 +%global gh_commit d2e45f2c4f75cc7443e158757ad2d678e318685d %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner JamesHeinrich %global gh_project getID3 @@ -14,13 +14,12 @@ %global pk_project getid3 Name: php-%{pk_project} -Version: 1.9.16 +Version: 1.9.17 Release: 1%{?dist} Epoch: 1 License: LGPLv3+ Summary: The PHP media file parser -Group: Development/Libraries -URL: http://www.getid3.org/ +URL: https://www.getid3.org/ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz BuildArch: noarch @@ -37,11 +36,17 @@ 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, mysqli, 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) @@ -92,6 +97,10 @@ exit ($ok ? 0 : 1); %changelog +* Fri Feb 8 2019 Remi Collet - 1.9.17-1 +- update to 1.9.17 +- add weak dependencies on suggested extension + * Thu Oct 18 2018 Remi Collet - 1.9.16-1 - update to 1.9.16 diff --git a/sources b/sources index 19bf152..863f268 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (getID3-1.9.16-7aec0d4.tar.gz) = ed17179d79634da5dfc514fb8f563f51884629e502b6c3ad4e21a6ec2a930600030a2dcaa15187fa4f0564d78855b70ef175cefb467aee57d7903bfec2365199 +SHA512 (getID3-1.9.17-d2e45f2.tar.gz) = 0824840d161e80f597e36d85cd6da4f74181d0b78d0ae1015ea510ec30bbb943919428f981c9dadb684813e93cf10d3137105a32ca710dee908eb7b0cbf79165 From f6f3c48b6c6307f85e0d8b11eaa4d1c406769dc6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 17 Sep 2019 10:02:41 +0200 Subject: [PATCH 07/11] update to 1.9.18 use git snapshot for sources (cherry picked from commit e8a0daec36333875c4a31d9072dd4404866b4cc2) (cherry picked from commit 143709ca2ab62d09b9b6a789677f0ca53ad1619d) --- .gitignore | 1 + makesrc.sh | 28 ++++++++++++++++++++++++++++ php-getid3.spec | 12 ++++++++---- sources | 2 +- 4 files changed, 38 insertions(+), 5 deletions(-) create mode 100755 makesrc.sh diff --git a/.gitignore b/.gitignore index 9906a50..3f29c62 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ getid3-2.0.0b5.zip /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 diff --git a/makesrc.sh b/makesrc.sh new file mode 100755 index 0000000..7d752c6 --- /dev/null +++ b/makesrc.sh @@ -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." + diff --git a/php-getid3.spec b/php-getid3.spec index 680435d..f0ceac7 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -6,7 +6,7 @@ # # Please preserve changelog entries # -%global gh_commit d2e45f2c4f75cc7443e158757ad2d678e318685d +%global gh_commit 0723b77cafe9278618cfb6bc91b75e73705d3de8 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner JamesHeinrich %global gh_project getID3 @@ -14,13 +14,14 @@ %global pk_project getid3 Name: php-%{pk_project} -Version: 1.9.17 +Version: 1.9.18 Release: 1%{?dist} Epoch: 1 License: LGPLv3+ Summary: The PHP media file parser URL: https://www.getid3.org/ -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz +Source0: %{name}-%{version}-%{gh_short}.tgz +Source1: makesrc.sh BuildArch: noarch BuildRequires: php-fedora-autoloader-devel @@ -89,7 +90,6 @@ exit ($ok ? 0 : 1); %files -%{!?_licensedir:%global license %%doc} %license licenses license.txt %doc changelog.txt dependencies.txt readme.txt structure.txt demos %doc composer.json @@ -97,6 +97,10 @@ exit ($ok ? 0 : 1); %changelog +* Tue Sep 17 2019 Remi Collet - 1.9.18-1 +- update to 1.9.18 +- use git snapshot for sources + * Fri Feb 8 2019 Remi Collet - 1.9.17-1 - update to 1.9.17 - add weak dependencies on suggested extension diff --git a/sources b/sources index 863f268..dee7b69 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (getID3-1.9.17-d2e45f2.tar.gz) = 0824840d161e80f597e36d85cd6da4f74181d0b78d0ae1015ea510ec30bbb943919428f981c9dadb684813e93cf10d3137105a32ca710dee908eb7b0cbf79165 +SHA512 (php-getid3-1.9.18-0723b77.tgz) = 984668a1ccbb2ba48685cddada720a95477e75ac66207acfead73d5d9bf50692a0e502f2c6fe9a0ec8e17caefb436a5c9227cd7664762e379321d46b986cfbb4 From a3ab0e42ea8ab9721570a3ee6d81cb0664d893a5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 18 Dec 2019 12:03:52 +0100 Subject: [PATCH 08/11] v1.9.19 (cherry picked from commit 46229cd5d9e5a713e0409364cf5b87928c99e9ee) --- .gitignore | 1 + php-getid3.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3f29c62..97325d3 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ getid3-2.0.0b5.zip /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 diff --git a/php-getid3.spec b/php-getid3.spec index f0ceac7..68a57c5 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -6,7 +6,7 @@ # # Please preserve changelog entries # -%global gh_commit 0723b77cafe9278618cfb6bc91b75e73705d3de8 +%global gh_commit c6fd499a690ae67eea2eec6b2edba5df13f60f6f %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner JamesHeinrich %global gh_project getID3 @@ -14,7 +14,7 @@ %global pk_project getid3 Name: php-%{pk_project} -Version: 1.9.18 +Version: 1.9.19 Release: 1%{?dist} Epoch: 1 License: LGPLv3+ @@ -97,6 +97,9 @@ exit ($ok ? 0 : 1); %changelog +* Wed Dec 18 2019 Remi Collet - 1.9.19-1 +- update to 1.9.19 + * Tue Sep 17 2019 Remi Collet - 1.9.18-1 - update to 1.9.18 - use git snapshot for sources diff --git a/sources b/sources index dee7b69..d18d39b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-getid3-1.9.18-0723b77.tgz) = 984668a1ccbb2ba48685cddada720a95477e75ac66207acfead73d5d9bf50692a0e502f2c6fe9a0ec8e17caefb436a5c9227cd7664762e379321d46b986cfbb4 +SHA512 (php-getid3-1.9.19-c6fd499.tgz) = 282088c4dee149e8c10b1cb4ff50a3ee2861b537d954ad026f0b56bbbda2d0ac4208d7dcd44ee924e80b79abc7322712076ed78c3669a54b565ccfeaaa0e2e99 From b8cb0b129e89c0a42e958a2020ce037e57172705 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 1 Jul 2020 09:38:50 +0200 Subject: [PATCH 09/11] v1.9.20 (cherry picked from commit 9f637c30d7dafbb58c4da9e46184f0e22664e449) (cherry picked from commit da0f1a3d2e5e9b993370944bd84145f1a844717a) --- .gitignore | 1 + php-getid3.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 97325d3..5b93544 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ getid3-2.0.0b5.zip /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 diff --git a/php-getid3.spec b/php-getid3.spec index 68a57c5..874e0c4 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -6,7 +6,7 @@ # # Please preserve changelog entries # -%global gh_commit c6fd499a690ae67eea2eec6b2edba5df13f60f6f +%global gh_commit 3c15e353b9bb1252201c73394bb8390b573a751d %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner JamesHeinrich %global gh_project getID3 @@ -14,7 +14,7 @@ %global pk_project getid3 Name: php-%{pk_project} -Version: 1.9.19 +Version: 1.9.20 Release: 1%{?dist} Epoch: 1 License: LGPLv3+ @@ -97,6 +97,9 @@ exit ($ok ? 0 : 1); %changelog +* Wed Jul 1 2020 Remi Collet - 1.9.20-1 +- update to 1.9.20 + * Wed Dec 18 2019 Remi Collet - 1.9.19-1 - update to 1.9.19 diff --git a/sources b/sources index d18d39b..6257def 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-getid3-1.9.19-c6fd499.tgz) = 282088c4dee149e8c10b1cb4ff50a3ee2861b537d954ad026f0b56bbbda2d0ac4208d7dcd44ee924e80b79abc7322712076ed78c3669a54b565ccfeaaa0e2e99 +SHA512 (php-getid3-1.9.20-3c15e35.tgz) = 69a70fa82e6bbca0d3c9dec8d97d3686f0e6f865887a9386670219c3a06cf3eb980dbf2667c2433f3209954baf260d4bbfd23a18abddfc0d1fc492c3d6a64c29 From 9c292fa2226de919a1b04bbd4ee07ecc98a80e9d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 23 Sep 2021 10:01:29 +0200 Subject: [PATCH 10/11] v1.19.21 (cherry picked from commit d44bc8cb8524ff994440a57cccefdea7d5fbfa1d) --- .gitignore | 1 + php-getid3.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 5b93544..f2cbb95 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ getid3-2.0.0b5.zip /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 diff --git a/php-getid3.spec b/php-getid3.spec index 874e0c4..14a3fdf 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -6,7 +6,7 @@ # # Please preserve changelog entries # -%global gh_commit 3c15e353b9bb1252201c73394bb8390b573a751d +%global gh_commit 36f5dabb1325415a4b07a401113f8db2eb81eca1 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner JamesHeinrich %global gh_project getID3 @@ -14,7 +14,7 @@ %global pk_project getid3 Name: php-%{pk_project} -Version: 1.9.20 +Version: 1.9.21 Release: 1%{?dist} Epoch: 1 License: LGPLv3+ @@ -97,6 +97,9 @@ exit ($ok ? 0 : 1); %changelog +* Thu Sep 23 2021 Remi Collet - 1.9.21-1 +- update to 1.9.21 + * Wed Jul 1 2020 Remi Collet - 1.9.20-1 - update to 1.9.20 diff --git a/sources b/sources index 6257def..6f50fd7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-getid3-1.9.20-3c15e35.tgz) = 69a70fa82e6bbca0d3c9dec8d97d3686f0e6f865887a9386670219c3a06cf3eb980dbf2667c2433f3209954baf260d4bbfd23a18abddfc0d1fc492c3d6a64c29 +SHA512 (php-getid3-1.9.21-36f5dab.tgz) = c2e2d663b9a930fed08e2049c779065f53681c502791b5aa6a8359eb0ad136c8ce83b6fae6c51f6a7b449045aeed354dd09bc8f28ed91fbc31a87664276e36aa From 584b86bf7dab883c5da0c15168b6f6011e2d9658 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 30 Sep 2022 09:52:58 +0200 Subject: [PATCH 11/11] v1.9.22 (cherry picked from commit 21ef32150fdb0346c1ae160f296d1bf7035083d9) (cherry picked from commit d6a4347091c3eba41d53ccbca88bca65623651e4) --- .gitignore | 1 + php-getid3.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f2cbb95..b07a9d1 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ getid3-2.0.0b5.zip /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 diff --git a/php-getid3.spec b/php-getid3.spec index 14a3fdf..94b0398 100644 --- a/php-getid3.spec +++ b/php-getid3.spec @@ -6,7 +6,7 @@ # # Please preserve changelog entries # -%global gh_commit 36f5dabb1325415a4b07a401113f8db2eb81eca1 +%global gh_commit 45f20faa0f0a24489740392c5b512ddcc36deccd %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner JamesHeinrich %global gh_project getID3 @@ -14,7 +14,7 @@ %global pk_project getid3 Name: php-%{pk_project} -Version: 1.9.21 +Version: 1.9.22 Release: 1%{?dist} Epoch: 1 License: LGPLv3+ @@ -97,6 +97,9 @@ exit ($ok ? 0 : 1); %changelog +* Fri Sep 30 2022 Remi Collet - 1.9.22-1 +- update to 1.9.22 + * Thu Sep 23 2021 Remi Collet - 1.9.21-1 - update to 1.9.21 diff --git a/sources b/sources index 6f50fd7..80da762 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-getid3-1.9.21-36f5dab.tgz) = c2e2d663b9a930fed08e2049c779065f53681c502791b5aa6a8359eb0ad136c8ce83b6fae6c51f6a7b449045aeed354dd09bc8f28ed91fbc31a87664276e36aa +SHA512 (php-getid3-1.9.22-45f20fa.tgz) = 5753a1de535117a4874723320c9d31cdcb57bfb77176a4a7ebd821c9c0f66091b0fae4888dc41aba98688507e2aa77110cee44c9ac8fdff9fb0a0d53b998eadc