public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php-phpdocumentor-reflection-common2] rawhide: v2.2.1
@ 2026-10-01 10:10 Remi Collet
0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-10-01 10:10 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/php-phpdocumentor-reflection-common2
Branch : rawhide
Commit : a4248ec8a3dd2318c85f45c1dfa2c2a380a9431d
Author : Remi Collet <remi@fedoraproject.org>
Date : 2026-10-01T12:10:47+02:00
Stats : +31/-73 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/php-phpdocumentor-reflection-common2/c/a4248ec8a3dd2318c85f45c1dfa2c2a380a9431d?branch=rawhide
Log:
v2.2.1
---
diff --git a/.gitignore b/.gitignore
index a599b99..753601a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/php-phpdocumentor-reflection-common2-2.0.0-63a995caa1ca9e5590304cd845c15ad6d482a62a.tar.gz
/php-phpdocumentor-reflection-common2-2.1.0-6568f4687e5b41b054365f9ae03fcb1ed5f2069b.tar.gz
/php-phpdocumentor-reflection-common2-2.2.0-1d01c49d4ed62f25aa84a747ad35d5a16924662b.tar.gz
+/php-phpdocumentor-reflection-common2-2.2.1.tgz
diff --git a/makesrc.sh b/makesrc.sh
index 4ad1051..9746b16 100755
--- a/makesrc.sh
+++ b/makesrc.sh
@@ -1,71 +1,27 @@
-#/bin/sh
+#!/bin/bash
-GIT=`which git`
-RPM=`which rpm`
+NAME=$(basename $PWD)
+OWNER=$(sed -n '/^%global github_owner/{s/.* //;p}' $NAME.spec)
+PROJECT=$(sed -n '/^%global github_name/{s/.* //;p}' $NAME.spec)
+VERSION=$(sed -n '/^Version:/{s/.* //;p}' $NAME.spec)
-if [ -z "$GIT" ]
-then
- echo "ERROR: 'git' command not found" 1>&2
- exit 1
-elif [ -z "$RPM" ]
-then
- echo "ERROR: 'rpm' command not found" 1>&2
- exit 1
-fi
-
-function print {
- echo -e "\e[0;33m>>>>> ${1}\e[0m"
-}
-
-if [ -x "$1" ]
-then
- SPEC=$1
+if [ -f $NAME-$VERSION.tgz ]; then
+ echo "$NAME-$VERSION.tgz already there"
else
- SPEC=`ls *.spec | head -1`
-fi
-
-NAME=`echo $SPEC | sed 's#\.spec##'`
-VERSION=`egrep '%global\s*github_version' $SPEC | awk '{print $3}'`
-
-print "SPEC = $SPEC"
-print "NAME = $NAME"
+ echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION \n"
-GIT_OWNER=`egrep '%global\s*github_owner' $SPEC | awk '{print $3}'`
-GIT_NAME=`egrep '%global\s*github_name' $SPEC | awk '{print $3}'`
-GIT_COMMIT=`egrep '%global\s*github_commit' $SPEC | awk '{print $3}'`
-GIT_REPO=https://github.com/${GIT_OWNER}/${GIT_NAME}
-GIT_DIR=`echo $GIT_REPO | sed 's#.*/##'`
+ echo "Cloning..."
+ rm -rf $PROJECT-$VERSION
+ git clone https://github.com/$OWNER/$PROJECT.git --depth 1 --branch $VERSION $PROJECT-$VERSION || exit 1
-print "GIT_OWNER = $GIT_OWNER"
-print "GIT_NAME = $GIT_NAME"
-print "GIT_COMMIT = $GIT_COMMIT"
-print "GIT_REPO = $GIT_REPO"
-print "GIT_DIR = $GIT_DIR"
+ echo "Getting composer..."
+ cp $PROJECT-$VERSION/composer.json composer.json
-TEMP_DIR=$(mktemp --dir)
-TAR_FILE=$PWD/${NAME}-${VERSION}-${GIT_COMMIT}.tar.gz
-CMP_FILE=$PWD/composer.json
+ echo "Archiving..."
+ tar czf $NAME-$VERSION.tgz --exclude-vcs $PROJECT-$VERSION
-pushd $TEMP_DIR
- print "Cloning git repo..."
- $GIT clone $GIT_REPO
+ echo "Cleaning..."
+ rm -rf $PROJECT-$VERSION
- pushd $GIT_DIR
- print "Checking out commit..."
- $GIT checkout $GIT_COMMIT
- cp composer.json $CMP_FILE
- popd
-
- TAR_DIR=${GIT_NAME}-${GIT_COMMIT}
- print "TAR_DIR = $TAR_DIR"
-
- mv $GIT_DIR $TAR_DIR
-
- print "TAR_FILE = $TAR_FILE"
-
- [ -e $TAR_FILE ] && rm -f $TAR_FILE
- tar --exclude-vcs -czf $TAR_FILE $TAR_DIR
- chmod 0644 $TAR_FILE
-popd
-
-rm -rf $TEMP_DIR
+ echo "Done."
+fi
diff --git a/php-phpdocumentor-reflection-common2.spec b/php-phpdocumentor-reflection-common2.spec
index 7d0226d..81b028d 100644
--- a/php-phpdocumentor-reflection-common2.spec
+++ b/php-phpdocumentor-reflection-common2.spec
@@ -10,16 +10,14 @@
%global github_owner phpDocumentor
%global github_name ReflectionCommon
-%global github_version 2.2.0
-%global github_commit 1d01c49d4ed62f25aa84a747ad35d5a16924662b
%global composer_vendor phpdocumentor
%global composer_project reflection-common
%global major 2
-# "php": "^7.2 || ^8.0"
-%global php_min_ver 7.2
+# "php": "^7.4 || ^8.0"
+%global php_min_ver 7.4
# Build using "--without tests" to disable tests
%global with_tests 0%{!?_without_tests:1}
@@ -27,8 +25,8 @@
%{!?phpdir: %global phpdir %{_datadir}/php}
Name: php-%{composer_vendor}-%{composer_project}%{major}
-Version: %{github_version}
-Release: 17%{?github_release}%{?dist}
+Version: 2.2.1
+Release: 1%{?dist}
Summary: Common reflection classes used by phpdocumentor
Group: Development/Libraries
@@ -36,7 +34,7 @@ License: MIT
URL: https://github.com/%{github_owner}/%{github_name}
# GitHub export does not include tests.
# Run makesrc.sh to create full source.
-Source0: %{name}-%{github_version}-%{github_commit}.tar.gz
+Source0: %{name}-%{version}.tgz
Source1: makesrc.sh
BuildArch: noarch
@@ -66,7 +64,7 @@ Autoloader: %{phpdir}/phpDocumentor/Reflection%{major}/autoload-common.php
%prep
-%setup -qn %{github_name}-%{github_commit}
+%setup -qn %{github_name}-%{version}
%build
@@ -87,7 +85,7 @@ touch vendor/autoload.php
: Upstream tests
RETURN_CODE=0
-for PHP_EXEC in php php81 php82 php83 php84; do
+for PHP_EXEC in php php82 php83 php84 php85 php86; do
if which $PHP_EXEC; then
$PHP_EXEC -d auto_prepend_file=$BOOTSTRAP \
%{_bindir}/phpunit9 --no-coverage || RETURN_CODE=1
@@ -116,6 +114,9 @@ exit $RETURN_CODE
%changelog
+* Thu Oct 1 2026 Remi Collet <remi@remirepo.net> - 2.2.1-1
+- update to 2.2.1
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/sources b/sources
index 707316b..92debd2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (php-phpdocumentor-reflection-common2-2.2.0-1d01c49d4ed62f25aa84a747ad35d5a16924662b.tar.gz) = 4d2a97664a619b572777e8e829559356ec63bf5c10006e5e94b9909e34d1892510b7c776ebe4b90cddef068114d93da095a1395b71f81392ef84e6ae74548c73
+SHA512 (php-phpdocumentor-reflection-common2-2.2.1.tgz) = a60706bc7aca1015d18275c755a5760e29026f436f8840e7acf707792c4442ee058059aca799598ea1ef12df09dff2f1be1ded675a588aa6fa0d4663e1b3c5a7
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-01 10:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01 10:10 [rpms/php-phpdocumentor-reflection-common2] rawhide: v2.2.1 Remi Collet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox