|
Shawn Iwinski |
f6170f9 |
#
|
|
Shawn Iwinski |
80a4896 |
# Fedora spec file for php-doctrine-collections
|
|
Shawn Iwinski |
f6170f9 |
#
|
|
|
32365c1 |
# Copyright (c) 2013-2019 Shawn Iwinski <shawn.iwinski@gmail.com>
|
|
Shawn Iwinski |
f6170f9 |
#
|
|
Shawn Iwinski |
f6170f9 |
# License: MIT
|
|
Shawn Iwinski |
f6170f9 |
# http://opensource.org/licenses/MIT
|
|
Shawn Iwinski |
f6170f9 |
#
|
|
Shawn Iwinski |
f6170f9 |
# Please preserve changelog entries
|
|
Shawn Iwinski |
f6170f9 |
#
|
|
Shawn Iwinski |
f6170f9 |
|
|
Shawn Iwinski |
f6170f9 |
%global github_owner doctrine
|
|
Shawn Iwinski |
f6170f9 |
%global github_name collections
|
|
|
08aade5 |
%global github_version 1.6.4
|
|
|
08aade5 |
%global github_commit 6b1e4b2b66f6d6e49983cebfe23a21b7ccc5b0d7
|
|
Shawn Iwinski |
f6170f9 |
|
|
Shawn Iwinski |
f6170f9 |
%global composer_vendor doctrine
|
|
Shawn Iwinski |
f6170f9 |
%global composer_project collections
|
|
Shawn Iwinski |
0e9f70f |
|
|
|
32365c1 |
# "php": "^7.1.3"
|
|
|
32365c1 |
%global php_min_ver 7.1.3
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
f6170f9 |
# Build using "--without tests" to disable tests
|
|
Shawn Iwinski |
5a108f2 |
%global with_tests 0%{!?_without_tests:1}
|
|
Shawn Iwinski |
5a108f2 |
|
|
Shawn Iwinski |
5a108f2 |
%{!?phpdir: %global phpdir %{_datadir}/php}
|
|
Shawn Iwinski |
f6170f9 |
|
|
Shawn Iwinski |
f6170f9 |
Name: php-%{composer_vendor}-%{composer_project}
|
|
Shawn Iwinski |
0e9f70f |
Version: %{github_version}
|
|
|
08aade5 |
Release: 1%{?github_release}%{?dist}
|
|
Shawn Iwinski |
0e9f70f |
Summary: Collections abstraction library
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
License: MIT
|
|
Shawn Iwinski |
0e9f70f |
URL: https://github.com/%{github_owner}/%{github_name}
|
|
|
6cdc767 |
|
|
|
6cdc767 |
# GitHub export does not include tests.
|
|
|
6cdc767 |
# Run php-doctrine-collections-get-source.sh to create full source.
|
|
|
6cdc767 |
Source0: %{name}-%{github_version}-%{github_commit}.tar.gz
|
|
|
6cdc767 |
Source1: %{name}-get-source.sh
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
BuildArch: noarch
|
|
Shawn Iwinski |
5a108f2 |
# Tests
|
|
Shawn Iwinski |
f6170f9 |
%if %{with_tests}
|
|
Shawn Iwinski |
5a108f2 |
## composer.json
|
|
|
32365c1 |
BuildRequires: phpunit7
|
|
Shawn Iwinski |
0e9f70f |
BuildRequires: php(language) >= %{php_min_ver}
|
|
|
32365c1 |
## phpcompatinfo (computed from version 1.6.0)
|
|
|
6cdc767 |
BuildRequires: php-pcre
|
|
Shawn Iwinski |
0e9f70f |
BuildRequires: php-spl
|
|
Shawn Iwinski |
5009f44 |
# Autoloader
|
|
|
6cdc767 |
BuildRequires: php-composer(fedora/autoloader)
|
|
Shawn Iwinski |
f6170f9 |
%endif
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
5a108f2 |
# composer.json
|
|
Shawn Iwinski |
0e9f70f |
Requires: php(language) >= %{php_min_ver}
|
|
|
32365c1 |
# phpcompatinfo (computed from version 1.6.0)
|
|
|
6cdc767 |
Requires: php-pcre
|
|
Shawn Iwinski |
0e9f70f |
Requires: php-spl
|
|
Shawn Iwinski |
5009f44 |
# Autoloader
|
|
|
6cdc767 |
Requires: php-composer(fedora/autoloader)
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
f6170f9 |
# Composer
|
|
Shawn Iwinski |
f6170f9 |
Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version}
|
|
Shawn Iwinski |
f6170f9 |
|
|
Shawn Iwinski |
0e9f70f |
# Extracted from Doctrine Common as of version 2.4
|
|
Shawn Iwinski |
0e9f70f |
Conflicts: php-pear(pear.doctrine-project.org/DoctrineCommon) < 2.4
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
%description
|
|
Shawn Iwinski |
0e9f70f |
%{summary}.
|
|
Shawn Iwinski |
0e9f70f |
|
|
|
6cdc767 |
Autoloader: %{phpdir}/Doctrine/Common/Collections/autoload.php
|
|
|
6cdc767 |
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
%prep
|
|
Shawn Iwinski |
f6170f9 |
%setup -qn %{github_name}-%{github_commit}
|
|
Shawn Iwinski |
0e9f70f |
|
|
|
6cdc767 |
|
|
|
6cdc767 |
%build
|
|
Shawn Iwinski |
5a108f2 |
: Create autoloader
|
|
|
6cdc767 |
cat <<'AUTOLOAD' | tee lib/Doctrine/Common/Collections/autoload.php
|
|
Shawn Iwinski |
5a108f2 |
|
|
Shawn Iwinski |
5a108f2 |
/**
|
|
|
6cdc767 |
* Autoloader for %{name} and its' dependencies
|
|
|
6cdc767 |
* (created by %{name}-%{version}-%{release}).
|
|
Shawn Iwinski |
5a108f2 |
*/
|
|
|
6cdc767 |
require_once '%{phpdir}/Fedora/Autoloader/autoload.php';
|
|
Shawn Iwinski |
5a108f2 |
|
|
|
6cdc767 |
\Fedora\Autoloader\Autoload::addPsr4('Doctrine\\Common\\Collections\\', __DIR__);
|
|
Shawn Iwinski |
5a108f2 |
AUTOLOAD
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
%install
|
|
|
32365c1 |
mkdir -p %{buildroot}%{phpdir}
|
|
|
32365c1 |
cp -rp lib/* %{buildroot}%{phpdir}/
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
%check
|
|
Shawn Iwinski |
f6170f9 |
%if %{with_tests}
|
|
|
6cdc767 |
: Create tests bootstrap
|
|
|
6cdc767 |
cat <<'BOOTSTRAP' | tee bootstrap.php
|
|
Shawn Iwinski |
0e9f70f |
|
|
|
6cdc767 |
require_once '%{buildroot}%{phpdir}/Doctrine/Common/Collections/autoload.php';
|
|
|
6cdc767 |
\Fedora\Autoloader\Autoload::addPsr4('Doctrine\\Tests\\', __DIR__.'/tests/Doctrine/Tests');
|
|
|
6cdc767 |
BOOTSTRAP
|
|
|
6cdc767 |
|
|
|
6cdc767 |
: Upstream tests
|
|
|
32365c1 |
SCL_RETURN_CODE=0
|
|
|
35e2bc0 |
for SCL in php php71 php72 php73 php74; do
|
|
|
32365c1 |
if which $SCL; then
|
|
|
32365c1 |
$SCL %{_bindir}/phpunit7 --verbose --bootstrap bootstrap.php \
|
|
|
32365c1 |
|| SCL_RETURN_CODE=1
|
|
|
6cdc767 |
fi
|
|
|
6cdc767 |
done
|
|
|
32365c1 |
exit $SCL_RETURN_CODE
|
|
Shawn Iwinski |
f6170f9 |
%else
|
|
Shawn Iwinski |
f6170f9 |
: Tests skipped
|
|
Shawn Iwinski |
f6170f9 |
%endif
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
%files
|
|
Shawn Iwinski |
5a108f2 |
%license LICENSE
|
|
Shawn Iwinski |
5a108f2 |
%doc *.md
|
|
Shawn Iwinski |
5a108f2 |
%doc composer.json
|
|
Shawn Iwinski |
5a108f2 |
%dir %{phpdir}/Doctrine
|
|
Shawn Iwinski |
5a108f2 |
%dir %{phpdir}/Doctrine/Common
|
|
Shawn Iwinski |
5a108f2 |
%{phpdir}/Doctrine/Common/Collections
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
0e9f70f |
%changelog
|
|
|
08aade5 |
* Wed Nov 13 2019 Remi Collet <remi@remirepo.net> - 1.6.4-1
|
|
|
08aade5 |
- update to 1.6.4
|
|
|
08aade5 |
|
|
|
5a76de7 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-2
|
|
|
5a76de7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
5a76de7 |
|
|
|
35e2bc0 |
* Tue Jun 11 2019 Remi Collet <remi@remirepo.net> - 1.6.2-1
|
|
|
35e2bc0 |
- update to 1.6.2
|
|
|
35e2bc0 |
|
|
|
97c5138 |
* Tue Mar 26 2019 Remi Collet <remi@remirepo.net> - 1.6.1-1
|
|
|
97c5138 |
- update to 1.6.1
|
|
|
97c5138 |
|
|
|
32365c1 |
* Mon Mar 25 2019 Remi Collet <remi@remirepo.net> - 1.6.0-1
|
|
|
32365c1 |
- update to 1.6.0
|
|
|
32365c1 |
- raise dependency on PHP 7.1.3
|
|
|
32365c1 |
- use PHPUnit 7 for test suite
|
|
|
32365c1 |
|
|
|
68028af |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-4
|
|
|
68028af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
68028af |
|
|
|
f8ad11b |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
|
|
|
f8ad11b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
f8ad11b |
|
|
|
a137df0 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
|
|
|
a137df0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a137df0 |
|
|
|
244630b |
* Sat Aug 05 2017 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.5.0-1
|
|
|
244630b |
- Update to 1.5.0 (RHBZ #1473990)
|
|
|
244630b |
|
|
|
e5c3e77 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
|
|
|
e5c3e77 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e5c3e77 |
|
|
|
6cdc767 |
* Sat Mar 04 2017 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.4.0-1
|
|
|
6cdc767 |
- Updated to 1.4.0 (RHBZ #1415530)
|
|
|
6cdc767 |
- Switched autoloader to php-composer(fedora/autoloader)
|
|
|
6cdc767 |
|
|
|
0f9afde |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
|
|
|
0f9afde |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0f9afde |
|
|
|
d567f58 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
|
|
|
d567f58 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
d567f58 |
|
|
Shawn Iwinski |
0af0380 |
* Sat Jun 27 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.3.0-3
|
|
Shawn Iwinski |
0af0380 |
- Updated autoloader with trailing separator
|
|
Shawn Iwinski |
0af0380 |
|
|
Shawn Iwinski |
5009f44 |
* Wed Jun 24 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.3.0-2
|
|
Shawn Iwinski |
5009f44 |
- Added autoloader dependencies
|
|
Shawn Iwinski |
5009f44 |
|
|
Shawn Iwinski |
5a108f2 |
* Wed Jun 24 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.3.0-1
|
|
Shawn Iwinski |
5a108f2 |
- Updated to 1.3.0 (RHBZ #1211818)
|
|
Shawn Iwinski |
5a108f2 |
- Added autoloader
|
|
Shawn Iwinski |
5a108f2 |
- %%license usage
|
|
Shawn Iwinski |
5a108f2 |
|
|
|
5bd6c2d |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
|
|
|
5bd6c2d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
5bd6c2d |
|
|
Shawn Iwinski |
f6170f9 |
* Fri Jun 20 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.2-3
|
|
Shawn Iwinski |
f6170f9 |
- Added php-composer(%%{composer_vendor}/%%{composer_project}) virtual provide
|
|
Shawn Iwinski |
f6170f9 |
- Added option to build without tests ("--without tests")
|
|
Shawn Iwinski |
f6170f9 |
|
|
|
73df135 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
|
|
|
73df135 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
73df135 |
|
|
Shawn Iwinski |
f6170f9 |
* Wed Feb 12 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.2-1
|
|
Shawn Iwinski |
704d963 |
- Updated to 1.2 (BZ #1061117)
|
|
Shawn Iwinski |
704d963 |
|
|
Shawn Iwinski |
f6170f9 |
* Mon Jan 06 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.1-3.20131221git8198717
|
|
Shawn Iwinski |
e4c935e |
- Minor syntax changes
|
|
Shawn Iwinski |
e4c935e |
|
|
Shawn Iwinski |
f6170f9 |
* Fri Jan 03 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.1-2.20131221git8198717
|
|
Shawn Iwinski |
0e9f70f |
- Conditional %%{?dist}
|
|
Shawn Iwinski |
0e9f70f |
- Added conflict w/ PEAR-based DoctrineCommon pkg (version < 2.4)
|
|
Shawn Iwinski |
0e9f70f |
|
|
Shawn Iwinski |
f6170f9 |
* Mon Dec 23 2013 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.1-1.20131221git8198717
|
|
Shawn Iwinski |
0e9f70f |
- Initial package
|