# remirepo spec file for php-mtdowling-jmespath-php from: # # Fedora spec file for php-mtdowling-jmespath-php # # Copyright (c) 2015-2021 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT # # Please preserve changelog entries # %bcond_without tests %global github_owner jmespath %global github_name jmespath.php %global github_version 2.6.0 %global github_commit 42dae2cbd13154083ca6d70099692fef8ca84bfb %global composer_vendor mtdowling %global composer_project jmespath.php # "php": "^5.4 || ^7.0 || ^8.0" %global php_min_ver 5.4 %{!?phpdir: %global phpdir %{_datadir}/php} Name: php-%{composer_vendor}-jmespath-php Version: %{github_version} Release: 1%{?github_release}%{?dist} Summary: Declaratively specify how to extract elements from a JSON document License: MIT URL: https://github.com/%{github_owner}/%{github_name} # GitHub export does not include tests. Source0: %{name}-%{github_version}-%{github_commit}.tar.gz Source1: %{name}-get-source.sh BuildArch: noarch # Tests %if %{with tests} ## composer.json BuildRequires: php(language) >= %{php_min_ver} BuildRequires: phpunit7 >= 7.5.15 ## phpcompatinfo (computed from version 2.5.0) BuildRequires: php-json BuildRequires: php-mbstring BuildRequires: php-spl %endif ## Autoloader BuildRequires: php-composer(fedora/autoloader) Requires: php-cli # composer.json Requires: php(language) >= %{php_min_ver} # phpcompatinfo (computed from version 2.5.0) Requires: php-json Requires: php-mbstring Requires: php-spl # Autoloader Requires: php-composer(fedora/autoloader) # php-{COMPOSER_VENDOR}-{COMPOSER_PROJECT} Provides: php-%{composer_vendor}-%{composer_project} = %{version}-%{release} # Composer Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} %description JMESPath (pronounced "jaymz path") allows you to declaratively specify how to extract elements from a JSON document. jmespath.php allows you to use JMESPath in PHP applications with PHP data structures. %prep %setup -qn %{github_name}-%{github_commit} : Create autoloader cat <<'AUTOLOAD' | tee src/autoload.php - 2.6.0-1 - update to 2.6.0 - switch to phpunit7 * Wed Feb 12 2020 Shawn Iwinski - 2.5.0-1 - Update to 2.5.0 (RHBZ #1787856) * Wed Dec 07 2016 Shawn Iwinski - 2.4.0-1 - Update to 2.4.0 (RHBZ #1401271) - Change autoloader from php-composer(symfony/class-loader) to php-composer(fedora/autoloader) * Sun Jun 28 2015 Shawn Iwinski - 2.3.0-1 - Updated to 2.3.0 (RHBZ #1295982) - Added "php-{COMPOSER_VENDOR}-{COMPOSER_PROJECT}" ("php-mtdowling-jmespath.php") virtual provide * Sun Jun 28 2015 Shawn Iwinski - 2.2.0-1 - Updated to 2.2.0 (RHBZ #1225677) - Changed autoloader from phpab to Symfony ClassLoader * Mon May 18 2015 Remi Collet - 2.1.0-1 - add needed backport stuff for remi repository * Sat May 16 2015 Shawn Iwinski - 2.1.0-1 - Initial package