update to 1.0.3 (no change)
sources from git snapshot
This commit is contained in:
parent
5aa1bb8a6e
commit
9bb58ae152
4 changed files with 38 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
/php-sebastian-code-unit-1.0.0-8d8f09b.tar.gz
|
||||
/php-sebastian-code-unit-1.0.1-00d2094.tar.gz
|
||||
/php-sebastian-code-unit-1.0.2-ac95808.tar.gz
|
||||
/php-sebastian-code-unit-1.0.3-d650ef9.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."
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
#
|
||||
%global bootstrap 0
|
||||
# Sources
|
||||
%global gh_commit ac958085bc19fcd1d36425c781ef4cbb5b06e2a5
|
||||
%global gh_commit d650ef9b1fece15ed4d6eaed6e6b469b7b81183a
|
||||
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
|
||||
%global gh_owner sebastianbergmann
|
||||
%global gh_project code-unit
|
||||
|
|
@ -27,13 +27,14 @@
|
|||
%endif
|
||||
|
||||
Name: php-%{pk_vendor}-%{pk_project}%{major}
|
||||
Version: 1.0.2
|
||||
Version: 1.0.3
|
||||
Release: 1%{?dist}
|
||||
Summary: Collection of value objects that represent the PHP code units
|
||||
|
||||
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.3
|
||||
|
|
@ -117,6 +118,10 @@ exit $ret
|
|||
|
||||
|
||||
%changelog
|
||||
* Tue Jun 16 2020 Remi Collet <remi@remirepo.net> - 1.0.3-1
|
||||
- update to 1.0.3 (no change)
|
||||
- sources from git snapshot
|
||||
|
||||
* Thu Apr 30 2020 Remi Collet <remi@remirepo.net> - 1.0.2-1
|
||||
- update to 1.0.2
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (php-sebastian-code-unit-1.0.2-ac95808.tar.gz) = 3083c205f6a05f18083475e5d891167e9db401ef22e61f332a0d3af96b52a9d112e66c45caae69a6d619528facf245906f4280f544e4d87ccc2e41b0fcc0f111
|
||||
SHA512 (php-sebastian-code-unit-1.0.3-d650ef9.tgz) = 6182f4f6d9368536d74f479281b38a46173f8877cab0de4ca03e5214a82262fc2182f8e33800fb0ecca35abacede992724e51e6711f615951935d3a100e29574
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue