[packages/composer] up to 1.1.0

glen glen at pld-linux.org
Wed May 11 22:38:30 CEST 2016


commit e51dd9c197c35e799b983b20c76f08d8b491b62e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed May 11 23:35:41 2016 +0300

    up to 1.1.0
    
    ca-certs patch outdated, using composer/ca-bundle package

 ca-certs.patch | 22 ----------------------
 composer.spec  | 14 +++-----------
 2 files changed, 3 insertions(+), 33 deletions(-)
---
diff --git a/composer.spec b/composer.spec
index b6b2810..735d705 100644
--- a/composer.spec
+++ b/composer.spec
@@ -2,26 +2,22 @@
 # Conditional build:
 %bcond_without	tests		# build with tests
 
-# NOTE
-# - release tarballs: http://getcomposer.org/download/
-
 %define		php_min_version 5.3.4
 %include	/usr/lib/rpm/macros.php
 Summary:	Dependency Manager for PHP
 Name:		composer
-Version:	1.0.3
+Version:	1.1.0
 Release:	1
 License:	MIT
 Group:		Development/Languages/PHP
 Source0:	https://github.com/composer/composer/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	8785baecfbdbfbcb5ffb8bbe98c157cf
+# Source0-md5:	23594317809b9e1fb1e9ed1a38e89149
 Source2:	https://raw.githubusercontent.com/iArren/%{name}-bash-completion/86a8129/composer
 # Source2-md5:	cdeebf0a0da1fd07d0fd886d0461642e
 Source3:	autoload.php
 Patch0:		autoload.patch
 Patch1:		update-memory-limit.patch
 Patch2:		svn-ignore-externals.patch
-Patch3:		ca-certs.patch
 URL:		http://www.getcomposer.org/
 BuildRequires:	php-devel
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
@@ -32,7 +28,6 @@ BuildRequires:	git-core
 BuildRequires:	phpab
 BuildRequires:	phpunit
 %endif
-Requires:	ca-certificates >= 20141019-3
 Requires:	php(core) >= %{php_min_version}
 Requires:	php(ctype)
 Requires:	php(date)
@@ -47,6 +42,7 @@ Requires:	php(simplexml)
 Requires:	php(spl)
 Requires:	php(zip)
 Requires:	php(zlib)
+Requires:	php-composer-ca-bundle >= 1.0.2
 Requires:	php-composer-semver >= 1.0.0
 Requires:	php-composer-spdx-licenses >= 1.0.0
 Requires:	php-justinrainbow-json-schema >= 1.6
@@ -89,7 +85,6 @@ Pakiet ten dostarcza bashowe uzupełnianie nazw dla Composera.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1
 
 mv composer.lock{,.disabled}
 # NOTE: do not use %{__php} macro here, need unversioned php binary
@@ -100,9 +95,6 @@ cp -p %{SOURCE3} src/Composer/autoload.php
 # AutoloadGenerator needs this runtime
 mv LICENSE res
 
-# use system bundle
-rm res/cacert.pem
-
 # move to Composer dir, this will simplify testing
 mv res src/Composer
 ln -s src/Composer/res
diff --git a/ca-certs.patch b/ca-certs.patch
deleted file mode 100644
index 38055e3..0000000
--- a/ca-certs.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- ./src/Composer/Compiler.php.rpm	2016-04-18 22:14:28.000000000 +0200
-+++ ./src/Composer/Compiler.php	2016-04-19 07:15:05.421424090 +0200
-@@ -138,7 +138,7 @@ class Compiler
-         }
-         $this->addFile($phar, new \SplFileInfo(__DIR__.'/../../vendor/composer/ClassLoader.php'));
- 
--        $this->addFile($phar, new \SplFileInfo(__DIR__ . '/../../res/cacert.pem'), false);
-+        $this->addFile($phar, new \SplFileInfo('/etc/pki/tls/certs/ca-bundle.crt'), false);
- 
-         $this->addComposerBin($phar);
- 
---- ./src/Composer/Util/RemoteFilesystem.php.rpm	2016-04-18 22:14:28.000000000 +0200
-+++ ./src/Composer/Util/RemoteFilesystem.php	2016-04-19 07:15:05.421424090 +0200
-@@ -925,7 +925,7 @@ class RemoteFilesystem
-             }
-         }
- 
--        return $caPath = __DIR__.'/../../../res/cacert.pem'; // Bundled with Composer, last resort
-+        return $caPath = '/etc/pki/tls/certs/ca-bundle.crt';
-     }
- 
-     /**
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/composer.git/commitdiff/e51dd9c197c35e799b983b20c76f08d8b491b62e



More information about the pld-cvs-commit mailing list