diff --git a/composer-bash-completion b/composer-bash-completion index 0b6447f..c7e5ec9 100644 --- a/composer-bash-completion +++ b/composer-bash-completion @@ -7,7 +7,7 @@ _sf_composer() { # Use newline as only separator to allow space in completion values - local IFS=$'\n' + IFS=$'\n' local sf_cmd="${COMP_WORDS[0]}" # for an alias, get the real script behind it @@ -25,7 +25,7 @@ _sf_composer() { local cur prev words cword _get_comp_words_by_ref -n := cur prev words cword - local completecmd=("$sf_cmd" "_complete" "--no-interaction" "-sbash" "-c$cword" "-S2.9.3") + local completecmd=("$sf_cmd" "_complete" "--no-interaction" "-sbash" "-c$cword" "-S2.5.5") for w in ${words[@]}; do w=$(printf -- '%b' "$w") # remove quotes from typed values diff --git a/composer-noxdg.patch b/composer-noxdg.patch index 2927848..73195e7 100644 --- a/composer-noxdg.patch +++ b/composer-noxdg.patch @@ -1,14 +1,14 @@ diff -up ./src/Composer/Factory.php.noxdg ./src/Composer/Factory.php ---- ./src/Composer/Factory.php.noxdg 2024-04-20 12:34:54.442117723 +0200 -+++ ./src/Composer/Factory.php 2024-04-20 12:35:39.497640757 +0200 -@@ -702,6 +702,10 @@ class Factory +--- ./src/Composer/Factory.php.noxdg 2022-03-16 09:51:30.398977729 +0100 ++++ ./src/Composer/Factory.php 2022-03-16 09:52:14.113841110 +0100 +@@ -665,6 +665,10 @@ class Factory private static function useXdg(): bool { -+ // As XDG is very partially implemented ++ // As XDG is very patially implemted + // resulting in command/code in ~/.config + return false; + foreach (array_keys($_SERVER) as $key) { - if (strpos((string) $key, 'XDG_') === 0) { + if (strpos($key, 'XDG_') === 0) { return true; diff --git a/composer-rpm.patch b/composer-rpm.patch index 7323225..85536c9 100644 --- a/composer-rpm.patch +++ b/composer-rpm.patch @@ -1,18 +1,42 @@ diff -up ./bin/composer.rpm ./bin/composer ---- ./bin/composer.rpm 2024-10-03 07:10:57.000000000 +0200 -+++ ./bin/composer 2024-10-03 07:11:10.751092365 +0200 -@@ -16,7 +16,7 @@ if (PHP_VERSION_ID < 70205) { +--- ./bin/composer.rpm 2023-03-21 15:42:18.000000000 +0100 ++++ ./bin/composer 2023-03-21 15:53:50.082632518 +0100 +@@ -11,7 +11,7 @@ if (PHP_VERSION_ID < 70205) { } setlocale(LC_ALL, 'C'); -require __DIR__.'/../src/bootstrap.php'; -+require '/usr/share/composer/src/bootstrap.php'; ++require '/usr/share/php/Composer/autoload.php'; use Composer\Console\Application; use Composer\XdebugHandler\XdebugHandler; +diff -up ./src/Composer/Autoload/AutoloadGenerator.php.rpm ./src/Composer/Autoload/AutoloadGenerator.php +--- ./src/Composer/Autoload/AutoloadGenerator.php.rpm 2023-03-21 15:42:18.000000000 +0100 ++++ ./src/Composer/Autoload/AutoloadGenerator.php 2023-03-21 15:53:50.082632518 +0100 +@@ -431,7 +431,7 @@ EOF; + $filesystem->filePutContentsIfModified($targetDir.'/autoload_real.php', $this->getAutoloadRealFile(true, (bool) $includePathFileContents, $targetDirLoader, (bool) $includeFilesFileContents, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader, $checkPlatform)); + + $filesystem->safeCopy(__DIR__.'/ClassLoader.php', $targetDir.'/ClassLoader.php'); +- $filesystem->safeCopy(__DIR__.'/../../../LICENSE', $targetDir.'/LICENSE'); ++ $filesystem->safeCopy((getenv('BUILDROOT')?:'') . '/usr/share/composer/LICENSE', $targetDir.'/LICENSE'); + + if ($this->runScripts) { + $this->eventDispatcher->dispatchScript(ScriptEvents::POST_AUTOLOAD_DUMP, $this->devMode, [], [ +diff -up ./src/Composer/Compiler.php.rpm ./src/Composer/Compiler.php +--- ./src/Composer/Compiler.php.rpm 2023-03-21 15:42:18.000000000 +0100 ++++ ./src/Composer/Compiler.php 2023-03-21 15:53:50.082632518 +0100 +@@ -105,7 +105,7 @@ class Compiler + // Add Composer resources + $finder = new Finder(); + $finder->files() +- ->in(__DIR__.'/../../res') ++ ->in((getenv('BUILDROOT')?:'') . '/usr/share/composer/res') + ->sort($finderSort) + ; + foreach ($finder as $file) { diff -up ./src/Composer/InstalledVersions.php.rpm ./src/Composer/InstalledVersions.php ---- ./src/Composer/InstalledVersions.php.rpm 2024-10-03 07:10:57.000000000 +0200 -+++ ./src/Composer/InstalledVersions.php 2024-10-03 07:11:10.752092401 +0200 +--- ./src/Composer/InstalledVersions.php.rpm 2023-03-21 15:42:18.000000000 +0100 ++++ ./src/Composer/InstalledVersions.php 2023-03-21 15:55:07.748460545 +0100 @@ -266,7 +266,7 @@ class InstalledVersions if (null === self::$installed) { // only require the installed.php file if this file is loaded from its dumped location, @@ -31,15 +55,36 @@ diff -up ./src/Composer/InstalledVersions.php.rpm ./src/Composer/InstalledVersio /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ $required = require __DIR__ . '/installed.php'; self::$installed = $required; -diff -up ./vendor/composer/ca-bundle/src/CaBundle.php.rpm ./vendor/composer/ca-bundle/src/CaBundle.php ---- ./vendor/composer/ca-bundle/src/CaBundle.php.rpm 2024-09-25 09:49:53.000000000 +0200 -+++ ./vendor/composer/ca-bundle/src/CaBundle.php 2024-10-03 07:11:10.752092401 +0200 +diff -up ./src/Composer/Json/JsonFile.php.rpm ./src/Composer/Json/JsonFile.php +--- ./src/Composer/Json/JsonFile.php.rpm 2023-03-21 15:42:18.000000000 +0100 ++++ ./src/Composer/Json/JsonFile.php 2023-03-21 15:53:50.082632518 +0100 +@@ -40,7 +40,7 @@ class JsonFile + /** @deprecated Use \JSON_UNESCAPED_UNICODE */ + public const JSON_UNESCAPED_UNICODE = 256; + +- public const COMPOSER_SCHEMA_PATH = __DIR__ . '/../../../res/composer-schema.json'; ++ public const COMPOSER_SCHEMA_PATH = '/usr/share/composer/res/composer-schema.json'; + + /** @var string */ + private $path; +@@ -223,7 +223,7 @@ class JsonFile + $isComposerSchemaFile = false; + if (null === $schemaFile) { + $isComposerSchemaFile = true; +- $schemaFile = self::COMPOSER_SCHEMA_PATH; ++ $schemaFile = (getenv('BUILDROOT')?:'') . self::COMPOSER_SCHEMA_PATH; + } + + // Prepend with file:// only when not using a special schema already (e.g. in the phar) +diff -up ./src/Composer/vendor/composer/ca-bundle/src/CaBundle.php.rpm ./src/Composer/vendor/composer/ca-bundle/src/CaBundle.php +--- ./src/Composer/vendor/composer/ca-bundle/src/CaBundle.php.rpm 2023-01-11 09:27:00.000000000 +0100 ++++ ./src/Composer/vendor/composer/ca-bundle/src/CaBundle.php 2023-03-21 15:53:50.083632516 +0100 @@ -125,7 +125,7 @@ class CaBundle */ public static function getBundledCaBundlePath() { - $caBundleFile = __DIR__.'/../res/cacert.pem'; -+ $caBundleFile = '/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem'; // System CA, always ++ $caBundleFile = '/etc/pki/tls/certs/ca-bundle.crt'; // System CA, always // cURL does not understand 'phar://' paths // see https://github.com/composer/ca-bundle/issues/10 diff --git a/composer.spec b/composer.spec index f6de2ad..698367b 100644 --- a/composer.spec +++ b/composer.spec @@ -1,22 +1,24 @@ # remirepo/fedora spec file for composer # -# SPDX-FileCopyrightText: Copyright 2015-2025 Remi Collet -# SPDX-License-Identifier: CECILL-2.1 -# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +# Copyright (c) 2015-2023 Remi Collet +# License: CC-BY-SA-4.0 +# http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # +# For compatibility with SCL +%undefine __brp_mangle_shebangs -%global gh_commit fb3bee27676fd852a8a11ebbb1de19b4dada5aba +%global gh_commit c7cffaad16a60636a776017eac5bd8cd0095c32f %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_branch 2.0-dev %global gh_owner composer %global gh_project composer -%global api_version 2.9.0 +%global api_version 2.3.0 %global run_version 2.2.2 -%global upstream_version 2.9.3 +%global upstream_version 2.5.5 #global upstream_prever RC1 #global upstream_lower rc1 @@ -38,7 +40,7 @@ Source0: %{gh_project}-%{upstream_version}%{?upstream_prever}-%{gh_short} Source1: %{name}-bash-completion Source3: %{name}.sh Source4: %{name}.csh -# Create a git snapshot with dependencies +# Get a git snapshot to retrieve the test suite Source5: makesrc.sh # Use our autoloader, resources path, fix for tests @@ -52,54 +54,78 @@ BuildRequires: php(language) >= 7.2.5 BuildRequires: php-cli BuildRequires: php-json BuildRequires: pkgconfig(bash-completion) -BuildRequires: composer-generators # From composer.json, "require": { # "php": "^7.2.5 || ^8.0", -# "ext-json": "*", -# "composer/ca-bundle": "^1.5", -# "composer/class-map-generator": "^1.4.0", +# "composer/ca-bundle": "^1.0", # "composer/metadata-minifier": "^1.0", -# "composer/semver": "^3.3", -# "composer/spdx-licenses": "^1.5.7", +# "composer/semver": "^3.0", +# "composer/spdx-licenses": "^1.2", # "composer/xdebug-handler": "^2.0.2 || ^3.0.3", -# "justinrainbow/json-schema": "^6.5.1", -# "psr/log": "^1.0 || ^2.0 || ^3.0", -# "seld/jsonlint": "^1.4", +# "justinrainbow/json-schema": "^5.2.11", +# "psr/log": "^1.0 || ^2.0 || ^3.0" +# "seld/jsonlint": "~1.4", # "seld/phar-utils": "^1.2", -# "symfony/console": "^5.4.47 || ^6.4.25 || ^7.1.10 || ^8.0", -# "symfony/filesystem": "^5.4.45 || ^6.4.24 || ^7.1.10 || ^8.0", -# "symfony/finder": "^5.4.45 || ^6.4.24 || ^7.1.10 || ^8.0", -# "symfony/process": "^5.4.47 || ^6.4.25 || ^7.1.10 || ^8.0", -# "react/promise": "^3.3", -# "composer/pcre": "^2.3 || ^3.3", +# "symfony/console": "^5.4.1 || ^6.0", +# "symfony/filesystem": "^5.4 || ^6.0", +# "symfony/finder": "^5.4 || ^6.0", +# "symfony/process": "^5.4 || ^6.0", +# "react/promise": "^2.8", +# "composer/pcre": "^2 || ^3" # "symfony/polyfill-php73": "^1.24", -# "symfony/polyfill-php80": "^1.24", -# "symfony/polyfill-php81": "^1.24", -# "seld/signal-handler": "^2.0" +# "symfony/polyfill-php80": "^1.24" Requires: php(language) >= 7.2.5 -Requires: php-json Requires: php-cli # System certificates -Requires: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem +Requires: ca-certificates +# Bundled libraries +# License MIT +Provides: bundled(php-composer-ca-bundle) = 1.3.5 +Provides: bundled(php-composer-class-map-generator) = 1.0.0 +Provides: bundled(php-composer-metadata-minifier) = 1.0.0 +Provides: bundled(php-composer-pcre) = 2.1.0 +Provides: bundled(php-composer-semver) = 3.3.2 +Provides: bundled(php-composer-spdx-licenses) = 1.5.7 +Provides: bundled(php-composer-xdebug-handler) = 3.0.3 +Provides: bundled(php-justinrainbow-json-schema) = 5.2.12 +Provides: bundled(php-psr-container) = 1.1.1 +Provides: bundled(php-psr-log) = 1.1.4 +Provides: bundled(php-react-promise) = v2.9.0 +Provides: bundled(php-seld-jsonlint) = 1.9.0 +Provides: bundled(php-seld-phar-utils) = 1.2.1 +Provides: bundled(php-seld-signal-handler) = 2.0.1 +Provides: bundled(php-symfony-console) = v5.4.21 +Provides: bundled(php-symfony-deprecation-contracts) = v2.5.2 +Provides: bundled(php-symfony-filesystem) = v5.4.21 +Provides: bundled(php-symfony-finder) = v5.4.21 +Provides: bundled(php-symfony-polyfill-ctype) = v1.27.0 +Provides: bundled(php-symfony-polyfill-intl-grapheme) = v1.27.0 +Provides: bundled(php-symfony-polyfill-intl-normalizer) = v1.27.0 +Provides: bundled(php-symfony-polyfill-mbstring) = v1.27.0 +Provides: bundled(php-symfony-polyfill-php73) = v1.27.0 +Provides: bundled(php-symfony-polyfill-php80) = v1.27.0 +Provides: bundled(php-symfony-polyfill-php81) = v1.27.0 +Provides: bundled(php-symfony-process) = v5.4.21 +Provides: bundled(php-symfony-service-contracts) = v2.5.2 +Provides: bundled(php-symfony-string) = v5.4.21 # From composer.json, suggest -# "ext-curl": "Provides HTTP support (will fallback to PHP streams if missing)", -# "ext-openssl": "Enables access to repositories and packages over HTTPS", -# "ext-zip": "Allows direct extraction of ZIP archives (unzip/7z binaries will be used instead if available)", -# "ext-zlib": "Enables gzip for HTTP requests" -Requires: php-curl +# "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages", +# "ext-zip": "Enabling the zip extension allows you to unzip archives", +# "ext-zlib": "Allow gzip compression of HTTP requests" Requires: php-openssl Requires: php-zip Requires: php-zlib # From phpcompatinfo for version 2.2.5 Requires: php-ctype +Requires: php-curl Requires: php-date Requires: php-dom Requires: php-filter Requires: php-hash Requires: php-iconv Requires: php-intl +Requires: php-json Requires: php-libxml Requires: php-mbstring Requires: php-pcntl @@ -112,14 +138,12 @@ Requires: php-tokenizer Requires: php-xsl Requires: php-zlib +# Composer library +Provides: php-composer(composer/composer) = %{version} # Special internal for Plugin API Provides: php-composer(composer-plugin-api) = %{api_version} Provides: php-composer(composer-runtime-api) = %{run_version} -# PEAR is now deprecated -# composer is designed to replace it -Supplements: php-pear - %description Composer helps you declare, manage and install dependencies of PHP projects, @@ -131,11 +155,43 @@ Documentation: https://getcomposer.org/doc/ %prep %setup -q -n %{gh_project}-%{gh_commit} -%patch -P0 -p1 -b .rpm -%patch -P1 -p1 -b .noxdg +%patch0 -p1 -b .rpm +%patch1 -p1 -b .noxdg find . \( -name \*.rpm -o -name \*noxdg \) -delete -print -rm vendor/composer/ca-bundle/res/cacert.pem +if grep -r '\.\./res'; then + : Patch need to fixed + exit 1 +fi + +rm src/bootstrap.php +rm src/Composer/vendor/composer/ca-bundle/res/cacert.pem + +: symlink autoloader for library +ln -s vendor/autoload.php src/Composer/autoload.php + +: fix layout +sed -e "s:/../..' . '/src/Composer::" -i src/Composer/vendor/composer/autoload_static.php + +: List bundled libraries and Licenses +php -r ' + $pkgs = file_get_contents("src/Composer/vendor/composer/installed.json"); + $pkgs = json_decode($pkgs, true); + if (!is_array($pkgs) || !isset($pkgs["packages"])) { + echo "cant decode json file\n"; + exit(3); + } + $res = []; + foreach($pkgs["packages"] as $pkg) { + $lic = implode(" and ", $pkg["license"]); + if (!isset($res[$lic])) $res[$lic] = []; + $res[$lic][] = sprintf("Provides: bundled(php-%s) = %s", str_replace(["/", "_"], ["-", "-"], $pkg["name"]), $pkg["version"]); + } + foreach($res as $lic => $lib) { + sort($lib); + printf("# License %s\n%s\n", $lic, implode("\n", $lib)); + } +' : fix reported version sed -e '/BRANCH_ALIAS_VERSION/s/@package_branch_alias_version@//' \ @@ -144,7 +200,7 @@ sed -e '/BRANCH_ALIAS_VERSION/s/@package_branch_alias_version@//' \ : check Plugin API version php -r ' namespace Composer; -include "src/bootstrap.php"; +include "src/Composer/autoload.php"; if (version_compare(Plugin\PluginInterface::PLUGIN_API_VERSION, "%{api_version}")) { printf("Plugin API version is %s, expected %s\n", Plugin\PluginInterface::PLUGIN_API_VERSION, "%{api_version}"); exit(1); @@ -156,7 +212,7 @@ if (version_compare(Composer::RUNTIME_API_VERSION, "%{run_version}")) { %build -: Nothing to build +# Nothing %install @@ -165,46 +221,25 @@ install -Dpm 644 %{SOURCE1} %{buildroot}%{bashcompdir}/%{name} mkdir -p %{buildroot}%{_sysconfdir}/profile.d install -m 644 %{SOURCE3} %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d/ -: Library autoloader for compatibility -mkdir -p %{buildroot}%{_datadir}/php/Composer -ln -s ../../composer/vendor/autoload.php %{buildroot}%{_datadir}/php/Composer/autoload.php +: Library +mkdir -p %{buildroot}%{_datadir}/php +cp -pr src/* %{buildroot}%{_datadir}/php -: Sources -mkdir -p %{buildroot}%{_datadir}/%{name} -cp -pr src res vendor LICENSE\ - %{buildroot}%{_datadir}/%{name}/ +: Resources +mkdir -p %{buildroot}%{_datadir}/%{name} +cp -pr res %{buildroot}%{_datadir}/%{name}/res +cp -p LICENSE %{buildroot}%{_datadir}/%{name}/LICENSE + +ln -sf %{_datadir}/%{name}/LICENSE LICENSE : Command install -Dpm 755 bin/%{name} %{buildroot}%{_bindir}/%{name} -: Licenses -ln -sf ../../%{name}/LICENSE LICENSE -cd vendor -for lic in */*/LICENSE -do dir=$(dirname $lic) - own=$(dirname $dir) - prj=$(basename $dir) - ln -sf ../../composer/vendor/$own/$prj/LICENSE ../$own-$prj-LICENSE -done - - -%check -: Check autoloader -php -r ' - include "%{buildroot}%{_datadir}/%{name}/src/bootstrap.php"; - exit (class_exists("Composer\\Composer") ? 0 : 1); -' -: Check compatibility autoloader -php -r ' - include "%{buildroot}%{_datadir}/php/Composer/autoload.php"; - exit (class_exists("Composer\\Composer") ? 0 : 2); -' - %files -%license *LICENSE -%doc *.md -%doc doc +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc *.md doc %doc composer.json %config(noreplace) %{_sysconfdir}/profile.d/%{name}.* %{_bindir}/%{name} @@ -214,128 +249,6 @@ php -r ' %changelog -* Wed Dec 31 2025 Remi Collet - 2.9.3-1 -- update to 2.9.3 - -* Thu Nov 20 2025 Remi Collet - 2.9.2-1 -- update to 2.9.2 - -* Thu Nov 13 2025 Remi Collet - 2.9.1-1 -- update to 2.9.1 - -* Thu Nov 13 2025 Remi Collet - 2.9.0-1 -- update to 2.9.0 - -* Fri Sep 19 2025 Remi Collet - 2.8.12-1 -- update to 2.8.12 - -* Wed Aug 27 2025 Remi Collet - 2.8.11-1 -- update to 2.8.11 - -* Wed Jul 23 2025 Fedora Release Engineering - 2.8.10-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Fri Jul 11 2025 Remi Collet - 2.8.10-1 -- update to 2.8.10 - -* Tue May 13 2025 Remi Collet - 2.8.9-1 -- update to 2.8.9 - -* Sat Apr 5 2025 Remi Collet - 2.8.8-1 -- update to 2.8.8 - -* Tue Feb 25 2025 Remi Collet - 2.8.6-1 -- update to 2.8.6 - -* Tue Jan 21 2025 Remi Collet - 2.8.5-1 -- update to 2.8.5 - -* Thu Jan 16 2025 Fedora Release Engineering - 2.8.4-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Wed Dec 11 2024 Remi Collet - 2.8.4-1 -- update to 2.8.4 -- re-license spec file to CECILL-2.1 - -* Mon Nov 18 2024 Remi Collet - 2.8.3-1 -- update to 2.8.3 - -* Wed Oct 30 2024 Remi Collet - 2.8.2-3 -- keep upstream layout for simplicity - -* Wed Oct 30 2024 Remi Collet - 2.8.2-2 -- update to 2.8.2 -- fix diagnose command - -* Fri Oct 4 2024 Remi Collet - 2.8.1-1 -- update to 2.8.1 - -* Thu Oct 3 2024 Remi Collet - 2.8.0-1 -- update to 2.8.0 - -* Wed Sep 4 2024 Remi Collet - 2.7.9-1 -- update to 2.7.9 - -* Fri Aug 23 2024 Remi Collet - 2.7.8-1 -- update to 2.7.8 - -* Wed Jul 17 2024 Fedora Release Engineering - 2.7.7-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Tue Jun 11 2024 Remi Collet - 2.7.7-1 -- update to 2.7.7 - -* Sun May 5 2024 Remi Collet - 2.7.6-1 -- update to 2.7.6 - -* Tue Apr 23 2024 Remi Collet - 2.7.4-1 -- update to 2.7.4 - -* Tue Mar 12 2024 Remi Collet - 2.7.2-1 -- update to 2.7.2 - -* Sat Feb 10 2024 Remi Collet - 2.7.1-1 -- update to 2.7.1 - -* Wed Jan 24 2024 Fedora Release Engineering - 2.6.6-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jan 19 2024 Fedora Release Engineering - 2.6.6-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Dec 9 2023 Remi Collet - 2.6.6-1 -- update to 2.6.6 - -* Fri Oct 6 2023 Remi Collet - 2.6.5-1 -- update to 2.6.5 - -* Fri Sep 29 2023 Remi Collet - 2.6.4-1 -- update to 2.6.4 - -* Fri Sep 15 2023 Remi Collet - 2.6.3-1 -- update to 2.6.3 - -* Mon Sep 4 2023 Remi Collet - 2.6.2-1 -- update to 2.6.2 - -* Fri Sep 1 2023 Remi Collet - 2.6.1-1 -- update to 2.6.1 - -* Fri Sep 1 2023 Remi Collet - 2.6.0-1 -- update to 2.6.0 - -* Wed Jul 19 2023 Fedora Release Engineering - 2.5.8-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Sat Jun 10 2023 Remi Collet - 2.5.8-1 -- update to 2.5.8 - -* Wed May 24 2023 Remi Collet - 2.5.7-1 -- update to 2.5.7 - -* Wed May 24 2023 Remi Collet - 2.5.6-1 -- update to 2.5.6 - * Tue Mar 21 2023 Remi Collet - 2.5.5-1 - update to 2.5.5 @@ -348,9 +261,6 @@ php -r ' * Mon Feb 6 2023 Remi Collet - 2.5.2-1 - update to 2.5.2 -* Thu Jan 19 2023 Fedora Release Engineering - 2.5.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - * Thu Dec 22 2022 Remi Collet - 2.5.1-1 - update to 2.5.1 @@ -372,9 +282,6 @@ php -r ' * Tue Aug 16 2022 Remi Collet - 2.4.0-1 - update to 2.4.0 -* Wed Jul 20 2022 Fedora Release Engineering - 2.3.10-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - * Thu Jul 14 2022 Remi Collet - 2.3.10-1 - update to 2.3.10 diff --git a/makesrc.sh b/makesrc.sh index dc25efb..930ec0b 100755 --- a/makesrc.sh +++ b/makesrc.sh @@ -8,7 +8,7 @@ PREVER=$(sed -n '/^%global upstream_prever/{s/.* //;p}' $NAME.spec) COMMIT=$(sed -n '/^%global gh_commit/{s/.* //;p}' $NAME.spec) SHORT=${COMMIT:0:7} -if [ -f $NAME-$VERSION$PREVER-$SHORT.tgz -a "$1" != "-f" ]; then +if [ -f $NAME-$VERSION$PREVER-$SHORT.tgz ]; then echo skip $NAME-$VERSION$PREVER-$SHORT.tgz already here else echo -e "\nCreate git snapshot\nName=$NAME, Owner=$OWNER, Project=$PROJECT, Version=$VERSION$PREVER\n" @@ -22,10 +22,9 @@ else cp composer.json ../composer.json composer config platform.php 7.2.5 rm composer.lock + export COMPOSER_VENDOR_DIR=src/Composer/vendor composer install --no-interaction --no-progress --no-dev --optimize-autoloader - cp vendor/composer/installed.json ../ - # bash completion - bin/composer completion bash >../composer-bash-completion + cp src/Composer/vendor/composer/installed.json ../ popd echo "Archiving..." diff --git a/sources b/sources index 05fc8e8..c649148 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (composer-2.9.3-fb3bee2.tgz) = b8f9a7bc73a7b765f113a22308e2b4b35c14ebfadadc57047a37f210be4099a49abc72c85c5c9ce200baa3e63ad0c1a97da744277ca1da948b419af40379658c +SHA512 (composer-2.5.5-c7cffaa.tgz) = 0b0bfc68bc39b74dc3031cd9d24403fb958adb3e311cf0152c16b80c4cfac28de008d2fcca985213d0e6b7979e7decc0f2ea59e98293d7f33fa224ed364f4476