From 79304342a276e62abd5b46385dacda0b3c8b9459 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 11 Jun 2018 11:15:22 +0200 Subject: new package --- php-aura-intl.spec | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 php-aura-intl.spec (limited to 'php-aura-intl.spec') diff --git a/php-aura-intl.spec b/php-aura-intl.spec new file mode 100644 index 0000000..8467bfb --- /dev/null +++ b/php-aura-intl.spec @@ -0,0 +1,111 @@ +# 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 -- cgit