# remirepo/Fedora spec file for php-aura-intl # # Copyright (c) 2018 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global bootstrap 0 %global gh_commit 7fce228980b19bf4dee2d7bbd6202a69b0dde926 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner auraphp %global gh_project Aura.Intl %global pk_owner aura %global pk_project intl %global ns_owner Aura %global ns_project Intl %global php_home %{_datadir}/php %global with_tests 0%{!?_without_tests:1} Name: php-%{pk_owner}-%{pk_project} Version: 3.0.0 Release: 1%{?dist} Summary: Internationalization tools Group: Development/Libraries License: MIT URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz BuildArch: noarch BuildRequires: php-composer(fedora/autoloader) # Tests %if %{with_tests} BuildRequires: php(language) >= 5.6 BuildRequires: php-intl BuildRequires: %{_bindir}/phpunit BuildRequires: php-composer(fedora/autoloader) %endif # From composer, "require": { # "php": "^5.6|^7.0" Requires: php(language) >= 5.6 # From phpcompatinfo report for version 3.0.0 Requires: php-intl # Autoloader Requires: php-composer(fedora/autoloader) Provides: php-composer(%{pk_owner}/%{pk_project}) = %{version} %description The Aura.Intl package provides internationalization (I18N) tools, specifically package-oriented per-locale message translation. Autoloader: %{php_home}/%{ns_owner}/%{ns_project}/autoload.php %prep %setup -q -n %{gh_project}-%{gh_commit} %build cat << 'EOF' | tee -a src/autoload.php - 3.0.0-1 - initial package