]> git.pld-linux.org Git - packages/php-composer-ca-bundle.git/blame - php-composer-ca-bundle.spec
up to 1.2.3
[packages/php-composer-ca-bundle.git] / php-composer-ca-bundle.spec
CommitLineData
c8f204fa
ER
1%define php_min_version 5.3.2
2%define pkgname ca-bundle
3%include /usr/lib/rpm/macros.php
4Summary: Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle
5Name: php-composer-%{pkgname}
93c0ae7a 6Version: 1.2.3
467779cc 7Release: 1
c8f204fa 8License: MIT
467779cc 9Group: Development/Languages/PHP
c8f204fa 10Source0: https://github.com/composer/ca-bundle/archive/%{version}/%{pkgname}-%{version}.tar.gz
93c0ae7a 11# Source0-md5: 1ef81ed2e95278dfb658ea1246e4dc3e
c8f204fa 12URL: https://github.com/composer/ca-bundle
467779cc
ER
13Patch0: system-ca-certs.patch
14Requires: ca-certificates >= 20141019-3
c8f204fa
ER
15Requires: php(core) >= %{php_min_version}
16Requires: php(openssl)
17Requires: php(pcre)
18BuildArch: noarch
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Small utility library that lets you find a path to the system CA
23bundle, and includes a fallback to the Mozilla CA bundle.
24
25Originally written as part of composer/composer, now extracted and
26made available as a stand-alone library.
27
28%prep
29%setup -q -n %{pkgname}-%{version}
467779cc 30%patch0 -p1
c8f204fa
ER
31
32%install
33rm -rf $RPM_BUILD_ROOT
34install -d $RPM_BUILD_ROOT%{php_data_dir}/Composer/CaBundle
35cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}/Composer/CaBundle
36
37%clean
38rm -rf $RPM_BUILD_ROOT
39
40%files
41%defattr(644,root,root,755)
42%doc README.md LICENSE
43%dir %{php_data_dir}/Composer
44%{php_data_dir}/Composer/CaBundle
This page took 0.104947 seconds and 4 git commands to generate.