summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmakesrc.sh25
-rw-r--r--pie.spec16
2 files changed, 18 insertions, 23 deletions
diff --git a/makesrc.sh b/makesrc.sh
index d2a6cbe..80221de 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -1,25 +1,20 @@
#!/bin/bash
-NAME=$(sed -n '/^Name:/{s/.* //;p}' *.spec)
+NAME=$(sed -n '/^Name:/{s/.* //;p}' *.spec)
OWNER=$(sed -n '/^%global gh_owner/{s/.* //;p}' $NAME.spec)
PROJECT=$(sed -n '/^%global gh_project/{s/.* //;p}' $NAME.spec)
-VERSION=$(sed -n '/^%global upstream_version/{s/.* //;p}' $NAME.spec)
-DATE=$(sed -n '/^%global gh_date/{s/.* //;p}' $NAME.spec)
-PREVER=$(sed -n '/^%global upstream_prever/{s/.* //;p}' $NAME.spec)
-COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec)
-SHORT=${COMMIT:0:7}
+TAG=$(sed -n '/^%global gh_tag/{s/.* //;p}' $NAME.spec)
-if [ -f $NAME-$VERSION$PREVER-$SHORT.tgz -a "$1" != "-f" ]; then
- echo skip $NAME-$VERSION$PREVER-$SHORT.tgz already here
+if [ -f $NAME-$TAG.tgz -a "$1" != "-f" ]; then
+ echo skip $NAME-$TAG.tgz already here
else
- echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION$PREVER\n"
+ echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$TAG\n"
echo "Cloning..."
- git clone https://github.com/$OWNER/$PROJECT.git $PROJECT-$COMMIT
+ git clone https://github.com/$OWNER/$PROJECT.git --depth 1 --branch $TAG $PROJECT-$TAG
- echo "Getting commit..."
- pushd $PROJECT-$COMMIT
- git checkout $COMMIT || exit 1
+ echo "Getting TAG $TAG..."
+ pushd $PROJECT-$TAG
cp composer.json ../
composer config platform.php 8.1.99
rm composer.lock
@@ -31,9 +26,9 @@ else
popd
echo "Archiving..."
- tar czf $NAME-$VERSION$PREVER-$SHORT.tgz --exclude .git $PROJECT-$COMMIT
+ tar czf $NAME-$TAG.tgz --exclude-vcs $PROJECT-$TAG
echo "Cleaning..."
- rm -rf $PROJECT-$COMMIT
+ rm -rf $PROJECT-$TAG
fi
echo "Done."
diff --git a/pie.spec b/pie.spec
index 147394e..ac8c23b 100644
--- a/pie.spec
+++ b/pie.spec
@@ -11,15 +11,12 @@
# For compatibility with SCL
%undefine __brp_mangle_shebangs
-%global gh_commit 97673090f41e40d081e8747e3ad8c1e87da04409
-%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
-#global gh_date 20241003
-%global gh_branch main
+%global gh_tag 1.4.0-alpha.3
%global gh_owner php
%global gh_project pie
%global upstream_version 1.4.0
-%global upstream_prever alpha1
+%global upstream_prever alpha3
%global bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null)
%global bashcomproot %(dirname %{bashcompdir} 2>/dev/null)
@@ -34,9 +31,9 @@ Summary: PHP Installer for Extensions
# thephpf/attestation is BSD-3-Clause
# others dependencies are MIT
License: BSD-3-Clause AND MIT
-URL: https://github.com/php/pie
+URL: https://github.com/%{gh_owner}/%{gh_project}
# tarball generated by makesrc.sh
-Source0: %{gh_project}-%{upstream_version}%{?upstream_prever}-%{gh_short}.tgz
+Source0: %{gh_project}-%{gh_tag}.tgz
Source1: %{name}-bash-completion
# Create a git snapshot with dependencies
Source9: makesrc.sh
@@ -93,7 +90,7 @@ Documentation: /usr/share/doc/pie/docs/usage.md
%prep
-%setup -q -n %{gh_project}-%{gh_commit}
+%setup -q -n %{gh_project}-%{gh_tag}
%patch -P0 -p1 -b .rpm
%patch -P1 -p1 -b .noxdg
@@ -141,6 +138,9 @@ done
%changelog
+* Wed Mar 25 2026 Remi Collet <remi@remirepo.net> - 1.4.0~alpha3-1
+- update to 1.4.0-alpha.3
+
* Thu Mar 19 2026 Remi Collet <remi@remirepo.net> - 1.4.0~alpha1-1
- update to 1.4.0-alpha.1