Compare commits
9 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf53f5fc99 | ||
|
|
1ddb8b6eb5 | ||
|
|
79ebfd2331 | ||
|
|
88685b8a26 | ||
|
|
4d1174fcff | ||
|
|
a6ca202f95 | ||
|
|
e78ff6d07c | ||
|
|
3f5aab29c7 | ||
|
|
5e273ae621 |
4 changed files with 72 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@
|
|||
/php-sebastian-type-1.1.2-251ca77.tar.gz
|
||||
/php-sebastian-type-1.1.3-3aaaa15.tar.gz
|
||||
/php-sebastian-type-1.1.4-0150cfb.tar.gz
|
||||
/php-sebastian-type-1.1.5-18f071c.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,14 +1,14 @@
|
|||
# remirepo/fedora spec file for php-sebastian-type
|
||||
#
|
||||
# Copyright (c) 2019 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# Copyright (c) 2019-2024 Remi Collet
|
||||
# License: CC-BY-SA-4.0
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
%global bootstrap 0
|
||||
# github
|
||||
%global gh_commit 0150cfbc4495ed2df3872fb31b26781e4e077eb4
|
||||
%global gh_commit 18f071c3a29892b037d35e6b20ddf3ea39b42874
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner sebastianbergmann
|
||||
%global gh_project type
|
||||
|
|
@ -27,13 +27,14 @@
|
|||
%endif
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_project}%{major}
|
||||
Version: 1.1.4
|
||||
Release: 5%{?dist}
|
||||
Summary: Collection of value objects that represent the types of the PHP type system
|
||||
Version: 1.1.5
|
||||
Release: 4%{?dist}
|
||||
Summary: Collection of value objects that represent the types of the PHP type system, v1
|
||||
|
||||
License: BSD
|
||||
License: BSD-3-Clause
|
||||
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.2
|
||||
|
|
@ -60,6 +61,10 @@ Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version}
|
|||
%description
|
||||
Collection of value objects that represent the types of the PHP type system.
|
||||
|
||||
This package provides version %{major} of %{pk_vendor}/%{pk_project} library.
|
||||
|
||||
Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gh_project}-%{gh_commit}
|
||||
|
|
@ -89,7 +94,7 @@ EOF
|
|||
|
||||
: Run upstream test suite
|
||||
ret=0
|
||||
for cmd in php php72 php73 php74 php80; do
|
||||
for cmd in php php81 php82 php83; do
|
||||
if which $cmd; then
|
||||
$cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \
|
||||
%{_bindir}/phpunit8 --verbose || ret=1
|
||||
|
|
@ -110,6 +115,34 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Fri Mar 1 2024 Remi Collet <remi@remirepo.net> - 1.1.5-1
|
||||
- update to 1.1.5 (no change)
|
||||
- sources from git snapshot
|
||||
|
||||
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Apr 21 2023 Remi Collet <remi@remirepo.net> - 1.1.4-7
|
||||
- use SPDX License id
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-sebastian-type-1.1.4-0150cfb.tar.gz) = 35332bf09bbda2c8ef4973b0c72b98e15274ad948c57aabfd7b714761682b81b5740bcdf50d606dac1c67a82bbb1c2f0f4b8e9f2cf55e64cf7ff19eb19d7d359
|
||||
SHA512 (php-sebastian-type-1.1.5-18f071c.tgz) = 60c908ac15af6b924edab20b8148506cc520e4861dee6a165eb5ed9ab48ba4f4c2090608fc07961fc3ec361532a5475ae2a0bedbfb586de851860ba6f4bf1209
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue