diff options
author | Remi Collet <remi@remirepo.net> | 2021-12-10 15:36:38 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2021-12-10 15:36:38 +0100 |
commit | b11eca04402870ffa4fff9cc4732d863d61840f0 (patch) | |
tree | eb42264e9088d6e74b07ddaa6deb64c1433998e6 | |
parent | 46ec5268ecbb77b01e4dffdcd0b7ce627d890d10 (diff) |
update to 1.2.0
switch to classmap autoloader
-rw-r--r-- | phar-utils-autoload.php | 9 | ||||
-rw-r--r-- | php-seld-phar-utils.spec | 18 |
2 files changed, 10 insertions, 17 deletions
diff --git a/phar-utils-autoload.php b/phar-utils-autoload.php deleted file mode 100644 index 622780c..0000000 --- a/phar-utils-autoload.php +++ /dev/null @@ -1,9 +0,0 @@ -<?php -/* Autoloader for seld/phar-utils and its dependencies */ - -if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { - require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; -} - -\Fedora\Autoloader\Autoload::addPsr4('Seld\\PharUtils\\', __DIR__); - diff --git a/php-seld-phar-utils.spec b/php-seld-phar-utils.spec index aec818a..a55bb7b 100644 --- a/php-seld-phar-utils.spec +++ b/php-seld-phar-utils.spec @@ -1,18 +1,18 @@ # remirepo/fedora spec file for php-seld-phar-utils # -# Copyright (c) 2015-2020 Remi Collet +# Copyright (c) 2015-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit 749042a2315705d2dfbbc59234dd9ceb22bf3ff0 +%global gh_commit 9f3452c93ff423469c0d56450431562ca423dcee %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner Seldaek %global gh_project phar-utils Name: php-seld-phar-utils -Version: 1.1.2 +Version: 1.2.0 Release: 1%{?dist} Summary: PHAR file format utilities @@ -20,15 +20,12 @@ License: MIT URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz -# Autoloader -Source1: %{gh_project}-autoload.php - BuildArch: noarch BuildRequires: php(language) >= 5.3 # For test BuildRequires: php-cli # Autoloader -BuildRequires: php-composer(fedora/autoloader) +BuildRequires: php-fedora-autoloader-devel # From composer.json # "php": ">=5.3.0", @@ -54,7 +51,7 @@ To use this library, you just have to add, in your project: %prep %setup -q -n %{gh_project}-%{gh_commit} -cp %{SOURCE1} src/autoload.php +phpab --template fedora --output src/autoload.php src %build @@ -78,6 +75,7 @@ exit(0); %files +# remirepo:1 %{!?_licensedir:%global license %%doc} %license LICENSE %doc README.md @@ -86,6 +84,10 @@ exit(0); %changelog +* Fri Dec 10 2021 Remi Collet <remi@remirepo.net> - 1.2.0-1 +- update to 1.2.0 +- switch to classmap autoloader + * Mon Aug 23 2021 Remi Collet <remi@remirepo.net> - 1.1.2-1 - update to 1.1.2 |