Compare commits
16 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76ce466b4d | ||
|
|
c91a45c5ad | ||
|
|
62a1ce3e53 | ||
|
|
0b66b8fe45 | ||
|
|
a1ec889cd7 | ||
|
|
ad8aa2451c | ||
|
|
fb8f39e4fa | ||
|
|
3f90db2313 | ||
|
|
22590a8bd5 | ||
|
|
e4a6031b6e | ||
|
|
eed2dbf772 | ||
|
|
410e33af74 | ||
|
|
bffe5fc496 | ||
|
|
9c52d767f4 | ||
|
|
a8da832f2c | ||
|
|
765246c27c |
4 changed files with 108 additions and 29 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
|
clog
|
||||||
/php-hamcrest2-2.0.0-776503d.tar.gz
|
/php-hamcrest2-2.0.0-776503d.tar.gz
|
||||||
/php-hamcrest2-2.0.1-8c3d0a3.tar.gz
|
/php-hamcrest2-2.0.1-8c3d0a3.tar.gz
|
||||||
|
/php-hamcrest2-2.1.1-f8b1c01.tgz
|
||||||
|
|
|
||||||
33
makesrc.sh
Executable file
33
makesrc.sh
Executable file
|
|
@ -0,0 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=$(sed -n '/^Name:/{s/.* //;p}' *.spec)
|
||||||
|
DATE=$(sed -n '/^%global gh_date/{s/.* //;p}' $NAME.spec)
|
||||||
|
OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec)
|
||||||
|
PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec)
|
||||||
|
VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec)
|
||||||
|
COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec)
|
||||||
|
SHORT=${COMMIT:0:7}
|
||||||
|
|
||||||
|
DATE=$(date -d "$DATE -4 days" +%Y-%m-%d)
|
||||||
|
|
||||||
|
if [ -f $NAME-$VERSION-$SHORT.tgz ]; then
|
||||||
|
echo "Skip $NAME-$VERSION-$SHORT.tgz"
|
||||||
|
else
|
||||||
|
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION, Commit=$COMMIT, Date=$DATE\n"
|
||||||
|
|
||||||
|
echo "Cloning..."
|
||||||
|
git clone --shallow-since=$DATE https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT || exit 1
|
||||||
|
|
||||||
|
echo "Getting commit..."
|
||||||
|
pushd $PROJECT-$COMMIT
|
||||||
|
git checkout $COMMIT || exit1
|
||||||
|
cp composer.json ../
|
||||||
|
popd
|
||||||
|
|
||||||
|
echo "Archiving..."
|
||||||
|
tar czf $NAME-$VERSION-$SHORT.tgz --exclude .git $PROJECT-$COMMIT
|
||||||
|
|
||||||
|
echo "Cleaning..."
|
||||||
|
rm -rf $PROJECT-$COMMIT
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
# remirepo/fedora spec file for php-hamcrest
|
# remirepo/fedora spec file for php-hamcrest2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015-2020 Remi Collet
|
# SPDX-FileCopyrightText: Copyright 2015-2025 Remi Collet
|
||||||
# License: CC-BY-SA
|
# SPDX-License-Identifier: CECILL-2.1
|
||||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
|
||||||
#
|
#
|
||||||
# Please, preserve the changelog entries
|
# Please, preserve the changelog entries
|
||||||
#
|
#
|
||||||
%global gh_commit 8c3d0a3f6af734494ad8f6fbbee0ba92422859f3
|
%global gh_date 2025-04-30
|
||||||
|
%global gh_commit f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487
|
||||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||||
%global gh_owner hamcrest
|
%global gh_owner hamcrest
|
||||||
%global gh_project hamcrest-php
|
%global gh_project hamcrest-php
|
||||||
|
|
@ -15,13 +16,15 @@
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
Name: php-hamcrest2
|
Name: php-hamcrest2
|
||||||
Version: 2.0.1
|
Version: 2.1.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: PHP port of Hamcrest Matchers
|
Summary: PHP port of Hamcrest Matchers
|
||||||
|
|
||||||
License: BSD
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/%{gh_owner}/%{gh_project}
|
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
|
# git snapshot with tests
|
||||||
|
Source0: %{name}-%{version}-%{gh_short}.tgz
|
||||||
|
Source1: makesrc.sh
|
||||||
|
|
||||||
# Use generated autoloader instead of composer one
|
# Use generated autoloader instead of composer one
|
||||||
Patch0: bootstrap-autoload.patch
|
Patch0: bootstrap-autoload.patch
|
||||||
|
|
@ -30,26 +33,21 @@ BuildArch: noarch
|
||||||
BuildRequires: php-fedora-autoloader-devel
|
BuildRequires: php-fedora-autoloader-devel
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
# From composer.json, require-dev:
|
# From composer.json, require-dev:
|
||||||
# "phpunit/php-file-iterator": "^1.4 || ^2.0",
|
# "phpunit/php-file-iterator": "^1.4 || ^2.0 || ^3.0",
|
||||||
# "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0"
|
# "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0 || ^8.0 || ^9.0"
|
||||||
BuildRequires: phpunit7
|
BuildRequires: phpunit9
|
||||||
# composer.json, require:
|
BuildRequires: php(language) >= 7.4
|
||||||
# "php": "^5.3|^7.0|^8.0"
|
# From phpcompatinfo report for 2.1.1
|
||||||
BuildRequires: php(language) >= 5.3
|
|
||||||
# From phpcompatinfo report for 2.0.0
|
|
||||||
BuildRequires: php-reflection
|
|
||||||
BuildRequires: php-ctype
|
BuildRequires: php-ctype
|
||||||
BuildRequires: php-dom
|
BuildRequires: php-dom
|
||||||
BuildRequires: php-pcre
|
|
||||||
BuildRequires: php-spl
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Requires: php(language) >= 5.3
|
# composer.json, require:
|
||||||
# From phpcompatinfo report for 2.0.0
|
# "php": "^7.4|^8.0"
|
||||||
|
Requires: php(language) >= 7.4
|
||||||
|
# From phpcompatinfo report for 2.1.1
|
||||||
Requires: php-ctype
|
Requires: php-ctype
|
||||||
Requires: php-dom
|
Requires: php-dom
|
||||||
Requires: php-pcre
|
|
||||||
Requires: php-spl
|
|
||||||
# Autoloader
|
# Autoloader
|
||||||
Requires: php-composer(fedora/autoloader)
|
Requires: php-composer(fedora/autoloader)
|
||||||
|
|
||||||
|
|
@ -70,8 +68,8 @@ Autoloader: %{_datadir}/php/%{ns_project}%{major}/autoload.php
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gh_project}-%{gh_commit}
|
%setup -q -n %{gh_project}-%{gh_commit}
|
||||||
|
|
||||||
%patch0 -p0 -b .rpm
|
%patch -P0 -p0 -b .rpm
|
||||||
find . -name \*.rpm -exec rm {} \;
|
find . -name \*.rpm -exec rm {} \; -print
|
||||||
|
|
||||||
# Move to Library tree
|
# Move to Library tree
|
||||||
mv hamcrest/%{ns_project}.php hamcrest/%{ns_project}/%{ns_project}.php
|
mv hamcrest/%{ns_project}.php hamcrest/%{ns_project}/%{ns_project}.php
|
||||||
|
|
@ -100,9 +98,9 @@ cp -pr hamcrest/%{ns_project} %{buildroot}%{_datadir}/php/%{ns_project}%{major}
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
cd tests
|
cd tests
|
||||||
ret=0
|
ret=0
|
||||||
for cmd in php php72 php73 php74; do
|
for cmd in php php81 php82 php83 php84; do
|
||||||
if which $cmd; then
|
if which $cmd; then
|
||||||
$cmd %{_bindir}/phpunit7 --verbose || ret=1
|
$cmd %{_bindir}/phpunit9 || ret=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit $ret
|
exit $ret
|
||||||
|
|
@ -112,7 +110,6 @@ exit $ret
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc CHANGES.txt README.md
|
%doc CHANGES.txt README.md
|
||||||
%doc composer.json
|
%doc composer.json
|
||||||
|
|
@ -120,6 +117,53 @@ exit $ret
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue May 6 2025 Remi Collet <remi@remirepo.net> - 2.1.1-1
|
||||||
|
- update to 2.1.1
|
||||||
|
- raise dependency on PHP 7.4
|
||||||
|
|
||||||
|
* Wed Jan 22 2025 Remi Collet <remi@remirepo.net> - 2.0.1-12
|
||||||
|
- switch to phpunit9
|
||||||
|
- re-license spec file to CECILL-2.1
|
||||||
|
|
||||||
|
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-13
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Sep 4 2024 Miroslav Suchý <msuchy@redhat.com> - 2.0.1-12
|
||||||
|
- convert license to SPDX
|
||||||
|
|
||||||
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
* Thu Jul 9 2020 Remi Collet <remi@remirepo.net> - 2.0.1-1
|
* Thu Jul 9 2020 Remi Collet <remi@remirepo.net> - 2.0.1-1
|
||||||
- update to 2.0.1
|
- update to 2.0.1
|
||||||
- switch to phpunit7
|
- switch to phpunit7
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (php-hamcrest2-2.0.1-8c3d0a3.tar.gz) = 2c958c239f9aa6239ebf5cba190b94f2db39ab84d9bde8a435bcf3c212dc3b6e362f295f5a989f5dff571e0516c742ea37cdb1fd5c64b37a5076938cc57e8807
|
SHA512 (php-hamcrest2-2.1.1-f8b1c01.tgz) = 04bd4aa0c71e49622cfd275ab93886f6e0150607d5918a89458c80964abf81031f57b4558786b0b07530d84b36a5c5d8db83ebc51edefde790d163e57a89fec5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue