# remirepo/fedora spec file for php-williamdes-mariadb-mysql-kbs # # Copyright (c) 2019-2024 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %bcond_without tests # Github %global gh_commit 07106dab252127c329cc206cd79cf2f51f989e5e %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner williamdes %global gh_project mariadb-mysql-kbs # Packagist %global pk_vendor %{gh_owner} %global pk_project %{gh_project} # Namespace %global ns_vendor Williamdes %global ns_project MariaDBMySQLKBS %global major %nil Name: php-%{pk_vendor}-%{pk_project}%{major} Version: 1.3.0 Release: 1%{?gh_date?%{gh_date}git%{gh_short}}%{?dist} Summary: An index of the MariaDB and MySQL Knowledge bases License: MPL-2.0 URL: https://github.com/%{gh_owner}/%{gh_project} # pull from github to retrieve full data Source0: %{name}-%{version}-%{?gh_short}.tgz Source1: makesrc.sh Patch0: %{name}-layout.patch BuildArch: noarch %if %{with tests} BuildRequires: php(language) >= 7.2 BuildRequires: php-json BuildRequires: php-pcre # For tests, from composer.json "require-dev": { # "phpunit/phpunit": "^8 || ^9 || ^10 || ^11"", # "phpstan/phpstan": "^1.2", # "wdes/coding-standard": "^3.2.1", # "swaggest/json-schema": "^0.12.29" BuildRequires: phpunit10 %global phpunit %{_bindir}/phpunit10 BuildRequires: (php-composer(swaggest/json-schema) >= 0.12.29 with php-composer(swaggest/json-schema) < 1) # For autoloader BuildRequires: php-composer(fedora/autoloader) %endif # From composer.json, "require": { # "php": "^7.2 || ^8.0" Requires: php(language) >= 7.2 # From phpcompatinfo report for 1.2.7 Requires: php-json Requires: php-pcre # For generated autoloader Requires: php-composer(fedora/autoloader) # Composer Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version} %description An index of the MariaDB and MySQL Knowledge bases. Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}%{major}/autoload.php %prep %setup -q -n %{gh_project}-%{gh_commit} %patch -P0 -p1 -b .rpm find src -name \*.rpm -delete : Create autoloader cat <<'AUTOLOAD' | tee src/autoload.php - 1.3.0-1 - update to 1.3.0 * Wed Dec 7 2022 Remi Collet - 1.2.14-1 - update to 1.2.14 * Mon Dec 20 2021 Remi Collet - 1.2.13-1 - update to 1.2.13 * Mon Jan 4 2021 Remi Collet - 1.2.12-1 - update to 1.2.12 * Mon Sep 14 2020 Remi Collet - 1.2.11-1 - update to 1.2.11 - switch to phpunit9 * Thu Feb 27 2020 Remi Collet - 1.2.10-1 - update to 1.2.10 - sources from git snapshot * Mon Jan 27 2020 Remi Collet - 1.2.9-1 - update to 1.2.9 - switch to phpunit8 * Tue Nov 12 2019 Remi Collet - 1.2.8-1 - update to 1.2.8 * Thu Sep 12 2019 Remi Collet - 1.2.7-1 - initial package