|
|
4036f18 |
# remirepo/fedora spec file for php-sebastian-exporter3
|
|
|
4036f18 |
#
|
|
|
2af1dcf |
# Copyright (c) 2013-2019 Remi Collet
|
|
|
4036f18 |
# License: CC-BY-SA
|
|
|
4036f18 |
# http://creativecommons.org/licenses/by-sa/4.0/
|
|
|
4036f18 |
#
|
|
|
4036f18 |
# Please, preserve the changelog entries
|
|
|
4036f18 |
#
|
|
|
de777ef |
%global bootstrap 0
|
|
|
ae29da2 |
%global gh_commit 68609e1261d215ea5b21b7987539cbfbe156ec3e
|
|
|
4036f18 |
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
|
|
4036f18 |
%global gh_owner sebastianbergmann
|
|
|
4036f18 |
%global gh_project exporter
|
|
|
4036f18 |
%global pk_vendor sebastian
|
|
|
4036f18 |
%global pk_project %{gh_project}
|
|
|
4036f18 |
%global major 3
|
|
|
4036f18 |
%global php_home %{_datadir}/php
|
|
|
4036f18 |
%global pear_name Exporter
|
|
|
4036f18 |
%global pear_channel pear.phpunit.de
|
|
|
4036f18 |
%if %{bootstrap}
|
|
|
4036f18 |
%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
|
|
|
4036f18 |
%else
|
|
|
4036f18 |
%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
|
|
|
4036f18 |
%endif
|
|
|
4036f18 |
|
|
|
4036f18 |
Name: php-%{pk_vendor}-%{pk_project}%{major}
|
|
|
ae29da2 |
Version: 3.1.2
|
|
|
2af1dcf |
Release: 1%{?dist}
|
|
|
4036f18 |
Summary: Export PHP variables for visualization
|
|
|
4036f18 |
|
|
|
4036f18 |
License: BSD
|
|
|
4036f18 |
URL: https://github.com/%{gh_owner}/%{gh_project}
|
|
|
4036f18 |
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
|
|
|
4036f18 |
|
|
|
4036f18 |
BuildArch: noarch
|
|
|
4036f18 |
BuildRequires: php(language) >= 7.0
|
|
|
c40701f |
BuildRequires: php-fedora-autoloader-devel >= 1.0.0
|
|
|
4036f18 |
%if %{with_tests}
|
|
|
4036f18 |
# from composer.json, "require-dev": {
|
|
|
4036f18 |
# "phpunit/phpunit": "^6.0",
|
|
|
4036f18 |
# "ext-mbstring": "*"
|
|
|
4036f18 |
BuildRequires: phpunit6
|
|
|
4036f18 |
BuildRequires: php-mbstring
|
|
|
df3a38d |
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
|
|
f54af6d |
BuildRequires: (php-composer(%{pk_vendor}/recursion-context) >= 3.0 with php-composer(%{pk_vendor}/recursion-context) < 4)
|
|
|
f54af6d |
%else
|
|
|
f54af6d |
BuildRequires: php-sebastian-recursion-context3
|
|
|
f54af6d |
%endif
|
|
|
4036f18 |
%endif
|
|
|
4036f18 |
|
|
|
4036f18 |
# from composer.json
|
|
|
4036f18 |
# "php": "^7.0",
|
|
|
4036f18 |
# "sebastian/recursion-context": "^3.0"
|
|
|
4036f18 |
Requires: php(language) >= 7.0
|
|
|
df3a38d |
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
|
|
f54af6d |
Requires: (php-composer(%{pk_vendor}/recursion-context) >= 3.0 with php-composer(%{pk_vendor}/recursion-context) < 4)
|
|
|
f54af6d |
%else
|
|
|
f54af6d |
Requires: php-sebastian-recursion-context3
|
|
|
f54af6d |
%endif
|
|
|
4036f18 |
# from phpcompatinfo report for version 3.0.0
|
|
|
4036f18 |
Requires: php-mbstring
|
|
|
4036f18 |
Requires: php-pcre
|
|
|
4036f18 |
Requires: php-spl
|
|
|
4036f18 |
# Autoloader
|
|
|
4036f18 |
Requires: php-composer(fedora/autoloader)
|
|
|
4036f18 |
|
|
|
4036f18 |
Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version}
|
|
|
4036f18 |
|
|
|
4036f18 |
|
|
|
4036f18 |
%description
|
|
|
4036f18 |
Provides the functionality to export PHP variables for visualization.
|
|
|
4036f18 |
|
|
|
4036f18 |
|
|
|
4036f18 |
%prep
|
|
|
4036f18 |
%setup -q -n %{gh_project}-%{gh_commit}
|
|
|
4036f18 |
|
|
|
4036f18 |
|
|
|
4036f18 |
%build
|
|
|
4036f18 |
# generate the Autoloader
|
|
|
2af1dcf |
phpab --template fedora --output src/autoload.php src
|
|
|
4036f18 |
|
|
|
4036f18 |
# Rely on include_path as in PHPUnit dependencies
|
|
|
4036f18 |
cat <
|
|
|
4036f18 |
// Dependency' autoloader
|
|
|
4036f18 |
require_once 'SebastianBergmann/RecursionContext3/autoload.php';
|
|
|
4036f18 |
EOF
|
|
|
4036f18 |
|
|
|
4036f18 |
|
|
|
4036f18 |
%install
|
|
|
4036f18 |
mkdir -p %{buildroot}%{php_home}/SebastianBergmann
|
|
|
4036f18 |
cp -pr src %{buildroot}%{php_home}/SebastianBergmann/Exporter%{major}
|
|
|
4036f18 |
|
|
|
4036f18 |
|
|
|
4036f18 |
%if %{with_tests}
|
|
|
4036f18 |
%check
|
|
|
4036f18 |
mkdir vendor
|
|
|
4036f18 |
touch vendor/autoload.php
|
|
|
4036f18 |
|
|
|
4036f18 |
: Run upstream test suite
|
|
|
4036f18 |
ret=0
|
|
|
2af1dcf |
for cmd in php php70 php71 php72 php73 php74; do
|
|
|
4036f18 |
if which $cmd; then
|
|
|
4036f18 |
%{_bindir}/php -d include_path=.:%{buildroot}%{_datadir}/php:%{_datadir}/php \
|
|
|
4036f18 |
%{_bindir}/phpunit6 --verbose || ret=1
|
|
|
4036f18 |
fi
|
|
|
4036f18 |
done
|
|
|
4036f18 |
exit $ret
|
|
|
4036f18 |
%endif
|
|
|
4036f18 |
|
|
|
4036f18 |
|
|
|
4036f18 |
%files
|
|
|
4036f18 |
%{!?_licensedir:%global license %%doc}
|
|
|
4036f18 |
%license LICENSE
|
|
|
4036f18 |
%doc README.md
|
|
|
4036f18 |
%doc composer.json
|
|
|
4036f18 |
%{php_home}/SebastianBergmann/Exporter%{major}
|
|
|
4036f18 |
|
|
|
4036f18 |
|
|
|
4036f18 |
%changelog
|
|
|
ae29da2 |
* Sun Sep 15 2019 Remi Collet <remi@remirepo.net> - 3.1.2-1
|
|
|
ae29da2 |
- update to 3.1.2
|
|
|
ae29da2 |
|
|
|
2af1dcf |
* Mon Aug 12 2019 Remi Collet <remi@remirepo.net> - 3.1.1-1
|
|
|
2af1dcf |
- update to 3.1.1
|
|
|
2af1dcf |
|
|
|
ee825aa |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-7
|
|
|
ee825aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
ee825aa |
|
|
|
5a45b34 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-6
|
|
|
5a45b34 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
5a45b34 |
|
|
|
df3a38d |
* Thu Dec 6 2018 Remi Collet <remi@remirepo.net> - 3.1.0-5
|
|
|
df3a38d |
- cleanup for EL-8
|
|
|
df3a38d |
|
|
|
35bc5a6 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-4
|
|
|
35bc5a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
35bc5a6 |
|
|
|
f54af6d |
* Tue Feb 6 2018 Remi Collet <remi@remirepo.net> - 3.1.0-3
|
|
|
f54af6d |
- use range dependencies on F27+
|
|
|
f54af6d |
|
|
|
dce461a |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
|
|
|
dce461a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
dce461a |
|
|
|
c40701f |
* Mon Apr 3 2017 Remi Collet <remi@remirepo.net> - 3.1.0-1
|
|
|
c40701f |
- Update to 3.1.0
|
|
|
c40701f |
|
|
|
de777ef |
* Mon Mar 13 2017 Remi Collet <remi@remirepo.net> - 3.0.0-2
|
|
|
de777ef |
- non bootstrap build
|
|
|
de777ef |
|
|
|
4036f18 |
* Fri Mar 3 2017 Remi Collet <remi@fedoraproject.org> - 3.0.0-1
|
|
|
4036f18 |
- update to 3.0.0
|
|
|
4036f18 |
- rename to php-sebastian-exporter3
|
|
|
4036f18 |
- raise dependency on PHP 7
|
|
|
4036f18 |
- raise dependency on recursion-context 3
|
|
|
4036f18 |
|
|
|
4036f18 |
* Tue Nov 22 2016 Remi Collet <remi@fedoraproject.org> - 2.0.0-1
|
|
|
4036f18 |
- update to 2.0.0
|
|
|
4036f18 |
- raise dependency on sebastian/recursion-context 2.0
|
|
|
4036f18 |
- switch to fedora/autoloader
|
|
|
4036f18 |
|
|
|
4036f18 |
* Fri Jun 17 2016 Remi Collet <remi@fedoraproject.org> - 1.2.2-1
|
|
|
4036f18 |
- update to 1.2.2
|
|
|
4036f18 |
- run test suite with both PHP 5 and 7 when available
|
|
|
4036f18 |
|
|
|
4036f18 |
* Sun Jul 26 2015 Remi Collet <remi@fedoraproject.org> - 1.2.1-1
|
|
|
4036f18 |
- update to 1.2.1 (only CS)
|
|
|
4036f18 |
|
|
|
4036f18 |
* Fri Jan 30 2015 Remi Collet <remi@fedoraproject.org> - 1.2.0-1
|
|
|
4036f18 |
- update to 1.2.0
|
|
|
4036f18 |
|
|
|
4036f18 |
* Sat Jan 24 2015 Remi Collet <remi@fedoraproject.org> - 1.1.0-1
|
|
|
4036f18 |
- update to 1.1.0
|
|
|
4036f18 |
- add dependency on sebastian/recursion-context
|
|
|
4036f18 |
|
|
|
4036f18 |
* Sun Oct 5 2014 Remi Collet <remi@fedoraproject.org> - 1.0.2-1
|
|
|
4036f18 |
- update to 1.0.2
|
|
|
4036f18 |
- enable test suite
|
|
|
4036f18 |
|
|
|
4036f18 |
* Fri Jul 18 2014 Remi Collet <remi@fedoraproject.org> - 1.0.1-4
|
|
|
4036f18 |
- add composer dependencies
|
|
|
4036f18 |
|
|
|
4036f18 |
* Wed Apr 30 2014 Remi Collet <remi@fedoraproject.org> - 1.0.1-2
|
|
|
4036f18 |
- cleanup pear registry
|
|
|
4036f18 |
|
|
|
4036f18 |
* Sun Apr 6 2014 Remi Collet <remi@fedoraproject.org> - 1.0.1-1
|
|
|
4036f18 |
- update to 1.0.1
|
|
|
4036f18 |
- get sources from github
|
|
|
4036f18 |
- run test suite when build --with tests
|
|
|
4036f18 |
|
|
|
4036f18 |
* Sun Oct 20 2013 Remi Collet <remi@fedoraproject.org> - 1.0.0-2
|
|
|
4036f18 |
- rename to lowercase
|
|
|
4036f18 |
|
|
|
4036f18 |
* Thu Sep 12 2013 Remi Collet <remi@fedoraproject.org> - 1.0.0-1
|
|
|
4036f18 |
- initial package
|