From d1ffee294c40516d4d3fff761ea5071d032c13ac Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 19 Jun 2019 14:31:00 +0200 Subject: import from Fedora --- php-google-apiclient-services.spec | 172 +++++++++++++++++++++++++++++++++++++ 1 file changed, 172 insertions(+) create mode 100644 php-google-apiclient-services.spec (limited to 'php-google-apiclient-services.spec') diff --git a/php-google-apiclient-services.spec b/php-google-apiclient-services.spec new file mode 100644 index 0000000..9adc164 --- /dev/null +++ b/php-google-apiclient-services.spec @@ -0,0 +1,172 @@ +# +# Fedora spec file for php-google-apiclient-services +# +# Copyright (c) 2017-2019 Shawn Iwinski +# +# License: MIT +# http://opensource.org/licenses/MIT +# +# Please preserve changelog entries +# + +%global github_owner googleapis +%global github_name google-api-php-client-services +%global github_version 0.102 +%global github_commit 82274e12b08c6828ebcc45a6bc01adbac63de8e9 + +%global composer_vendor google +%global composer_project apiclient-services + +# "php": ">=5.4" +%global php_min_ver 5.4 + +# Build using "--without tests" to disable tests +%global with_tests 0%{!?_without_tests:1} + +%{!?phpdir: %global phpdir %{_datadir}/php} + +Name: php-%{composer_vendor}-%{composer_project} +Version: %{github_version} +Release: 1%{?github_release}%{?dist} +Summary: Google PHP API Client Services + +License: ASL 2.0 +URL: https://github.com/%{github_owner}/%{github_name} +Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz + +BuildArch: noarch +# Tests +%if %{with_tests} +## composer.json +BuildRequires: php(language) >= %{php_min_ver} +BuildRequires: php-composer(phpunit/phpunit) +## phpcompatinfo (computed from version 0.102) +## +## Autoloader +BuildRequires: php-composer(fedora/autoloader) +%endif + +# composer.json +Requires: php(language) >= %{php_min_ver} +# phpcompatinfo (computed from version 0.102) +# +# Autoloader +Requires: php-composer(fedora/autoloader) + +# Composer +Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} + +Conflicts: php-google-apiclient < 2 + +%description +%{summary}. + +Autoloader: %{phpdir}/Google/Service/autoload.php + + +%prep +%setup -qn %{github_name}-%{github_commit} + + +%build +: Create autoloader +cat <<'AUTOLOAD' | tee src/Google/Service/autoload.php + - 0.102-1 +- Update to 0.102 (RHBZ #1584457) + +* Tue Feb 26 2019 Shawn Iwinski - 0.87-1 +- Update to 0.87 (RHBZ #1584457) + +* Sat Feb 02 2019 Fedora Release Engineering - 0.60-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.60-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sat May 26 2018 Shawn Iwinski - 0.60-1 +- Update to 0.60 (RHBZ #1527508) + +* Fri Feb 09 2018 Fedora Release Engineering - 0.38-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Dec 13 2017 Shawn Iwinski - 0.38-1 +- Update to 0.38 (RHBZ #1505203) + +* Sun Oct 08 2017 Shawn Iwinski - 0.29-1 +- Update to 0.29 (RHBZ #1490369) + +* Sun Sep 10 2017 Shawn Iwinski - 0.22-1 +- Update to 0.22 (RHBZ #1481241) + +* Sat Aug 05 2017 Shawn Iwinski - 0.17-1 +- Update to 0.17 (RHBZ #1469105) + +* Thu Jul 27 2017 Fedora Release Engineering - 0.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Jul 08 2017 Shawn Iwinski - 0.13-1 +- Update to 0.13 (RHBZ #1461829) + +* Mon Apr 03 2017 Shawn Iwinski - 0.11-1 +- Update to 0.11 +- Raise tests' memory limit to 512M + +* Sat Mar 11 2017 Shawn Iwinski - 0.10-1 +- Initial package -- cgit