Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c4edbebbe | ||
|
|
9478b0e69b |
4 changed files with 45 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,3 +2,5 @@
|
|||
/php-sebastian-comparator3-3.0.1-591a309.tar.gz
|
||||
/php-sebastian-comparator3-3.0.2-5de4fc1.tar.gz
|
||||
/php-sebastian-comparator3-3.0.3-1071dfc.tar.gz
|
||||
/php-sebastian-comparator3-3.0.4-c05dd18.tar.gz
|
||||
/php-sebastian-comparator3-3.0.5-1dc7ceb.tgz
|
||||
|
|
|
|||
28
makesrc.sh
Executable file
28
makesrc.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
NAME=$(basename $PWD)
|
||||
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}
|
||||
|
||||
echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION\n"
|
||||
|
||||
echo "Cloning..."
|
||||
rm -rf $PROJECT-$COMMIT
|
||||
git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
|
||||
|
||||
echo "Getting commit..."
|
||||
pushd $PROJECT-$COMMIT
|
||||
git checkout $COMMIT
|
||||
cp composer.json ../composer.json
|
||||
popd
|
||||
|
||||
echo "Archiving..."
|
||||
tar czf $NAME-$VERSION-$SHORT.tgz --exclude-vcs --exclude tools $PROJECT-$COMMIT
|
||||
|
||||
echo "Cleaning..."
|
||||
rm -rf $PROJECT-$COMMIT
|
||||
|
||||
echo "Done."
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
# remirepo/fedora spec file for php-sebastian-comparator3
|
||||
#
|
||||
# Copyright (c) 2014-2018 Remi Collet
|
||||
# Copyright (c) 2014-2022 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 1071dfcef776a57013124ff35e1fc41ccd294758
|
||||
%global gh_commit 1dc7ceb4a24aede938c7af2a9ed1de09609ca770
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner sebastianbergmann
|
||||
%global gh_project comparator
|
||||
|
|
@ -24,13 +24,14 @@
|
|||
%endif
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_project}%{major}
|
||||
Version: 3.0.3
|
||||
Release: 3%{?dist}
|
||||
Version: 3.0.5
|
||||
Release: 1%{?dist}
|
||||
Summary: Compare PHP values for equality
|
||||
|
||||
License: BSD
|
||||
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
|
||||
Source0: %{name}-%{version}-%{gh_short}.tgz
|
||||
Source1: makesrc.sh
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: php(language) >= 7.1
|
||||
|
|
@ -96,7 +97,7 @@ mkdir vendor
|
|||
|
||||
: Run upstream test suite
|
||||
ret=0
|
||||
for cmd in php php72 php73 php74 php80; do
|
||||
for cmd in php php74 php80 php81 php82; do
|
||||
if which $cmd; then
|
||||
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
|
||||
%{_bindir}/phpunit8 --no-coverage --verbose || ret=1
|
||||
|
|
@ -117,6 +118,13 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Sep 14 2022 Remi Collet <remi@remirepo.net> - 3.0.5-1
|
||||
- update to 3.0.5
|
||||
- sources from git snapshot
|
||||
|
||||
* Wed Sep 14 2022 Remi Collet <remi@remirepo.net> - 3.0.4-1
|
||||
- update to 3.0.4
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-sebastian-comparator3-3.0.3-1071dfc.tar.gz) = 14f70c7ff6c6e29434d98b66c75a80956ec5c10199e0e82712ffc9e4453f0a2efc5d34daad3345fb8fbfb57ada74e0bd172b77cfe957ec71681a8c8f1dece5b2
|
||||
SHA512 (php-sebastian-comparator3-3.0.5-1dc7ceb.tgz) = 3b43e127642a6627e2bc40094b49aca7525ee791440b65b420b7ccc3a1736be3b7230eb8172089768787e2b2f34c3c9e1953f565c7cad22033c6cdca5ada8621
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue