|
|
f0d1e31 |
%global composer_vendor phpseclib
|
|
|
f0d1e31 |
%global composer_project phpseclib
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
%global github_owner phpseclib
|
|
|
f0d1e31 |
%global github_name phpseclib
|
|
|
cfb991f |
%global github_commit ab8028c93c03cc8d9c824efa75dc94f1db2369bf
|
|
|
f0d1e31 |
%global github_short %(c=%{github_commit}; echo ${c:0:7})
|
|
|
f0d1e31 |
%if 0%{?rhel} == 5
|
|
|
f0d1e31 |
%global with_tests 0%{?_with_tests:1}
|
|
|
f0d1e31 |
%else
|
|
|
f0d1e31 |
%global with_tests 0%{!?_without_tests:1}
|
|
|
f0d1e31 |
%endif
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
Name: php-%{composer_vendor}
|
|
|
cfb991f |
Version: 2.0.4
|
|
|
3382e52 |
Release: 2%{?dist}
|
|
|
f0d1e31 |
Summary: PHP Secure Communications Library
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
Group: System Environment/Libraries
|
|
|
f0d1e31 |
License: MIT
|
|
|
f0d1e31 |
URL: https://github.com/%{github_owner}/%{github_name}
|
|
|
c09f1c8 |
Source0: %{name}-%{version}-%{github_short}.tgz
|
|
|
f0d1e31 |
Source1: %{name}-autoload.php
|
|
|
c09f1c8 |
# Generate a full archive from git snapshot, with tests
|
|
|
c09f1c8 |
Source2: makesrc.sh
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
BuildArch: noarch
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
%if %{with_tests}
|
|
|
f0d1e31 |
BuildRequires: php-composer(symfony/class-loader)
|
|
|
f0d1e31 |
BuildRequires: %{_bindir}/phpunit
|
|
|
f0d1e31 |
BuildRequires: %{_bindir}/phpab
|
|
|
f0d1e31 |
# Optional at runtime, to avoid too muck skipped tests
|
|
|
f0d1e31 |
BuildRequires: php-bcmath
|
|
|
f0d1e31 |
BuildRequires: php-gmp
|
|
|
f0d1e31 |
BuildRequires: php-mcrypt
|
|
|
f0d1e31 |
%endif
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
Requires: php(language) >= 5.3.3
|
|
|
f0d1e31 |
Requires: php-bcmath
|
|
|
f0d1e31 |
Requires: php-date
|
|
|
f0d1e31 |
Requires: php-gmp
|
|
|
f0d1e31 |
Requires: php-hash
|
|
|
f0d1e31 |
Requires: php-openssl
|
|
|
f0d1e31 |
Requires: php-pcre
|
|
|
f0d1e31 |
Requires: php-session
|
|
|
f0d1e31 |
Requires: php-standard
|
|
|
f0d1e31 |
Requires: php-xml
|
|
|
f0d1e31 |
Requires: php-composer(symfony/class-loader)
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version}
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
%description
|
|
|
f0d1e31 |
MIT-licensed pure-PHP implementations of an arbitrary-precision integer
|
|
|
f0d1e31 |
arithmetic library, fully PKCS#1 (v2.1) compliant RSA, DES, 3DES, RC4,
|
|
|
f0d1e31 |
Rijndael, AES, Blowfish, Twofish, SSH-1, SSH-2, SFTP, and X.509
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
%prep
|
|
|
f0d1e31 |
%setup -qn %{github_name}-%{github_commit}
|
|
|
f0d1e31 |
cp %{SOURCE1} %{composer_vendor}/autoload.php
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
%build
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
%install
|
|
|
4fc046b |
mkdir -p %{buildroot}%{_datadir}/php
|
|
|
4fc046b |
cp -pr %{composer_vendor} %{buildroot}%{_datadir}/php
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
%if %{with_tests}
|
|
|
f0d1e31 |
%check
|
|
|
f0d1e31 |
%{_bindir}/phpab --output tests/bootstrap.php tests
|
|
|
f0d1e31 |
echo 'require "%{buildroot}%{_datadir}/php/%{composer_vendor}/autoload.php";' >> tests/bootstrap.php
|
|
|
4fc046b |
|
|
|
cfb991f |
%{_bindir}/phpunit --verbose
|
|
|
f0d1e31 |
%endif
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
%files
|
|
|
f0d1e31 |
%{_datadir}/php/%{composer_vendor}
|
|
|
f0d1e31 |
%doc AUTHORS CHANGELOG.md composer.json README.md
|
|
|
f0d1e31 |
%{!?_licensedir:%global license %%doc}
|
|
|
f0d1e31 |
%license LICENSE
|
|
|
f0d1e31 |
|
|
|
4fc046b |
|
|
|
f0d1e31 |
%changelog
|
|
|
3382e52 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
|
|
|
3382e52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
3382e52 |
|
|
|
cfb991f |
* Tue Oct 4 2016 Remi Collet <remi@fedoraproject.org> - 2.0.4-1
|
|
|
cfb991f |
- update to 2.0.4
|
|
|
cfb991f |
|
|
|
4fc046b |
* Tue Jun 7 2016 Remi Collet <remi@fedoraproject.org> - 2.0.2-1
|
|
|
4fc046b |
- update to 2.0.2
|
|
|
4fc046b |
|
|
|
06ed0f8 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
|
|
|
06ed0f8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
06ed0f8 |
|
|
|
c09f1c8 |
* Tue Jan 19 2016 Remi Collet <remi@fedoraproject.org> - 2.0.1-1
|
|
|
c09f1c8 |
- update to 2.0.1
|
|
|
c09f1c8 |
- sources from git snapshot for tests
|
|
|
c09f1c8 |
|
|
|
f0d1e31 |
* Sun Sep 6 2015 Remi Collet <remi@fedoraproject.org> - 2.0.0-4
|
|
|
f0d1e31 |
- change source0 to commit reference
|
|
|
f0d1e31 |
- add BR for better test coverage
|
|
|
f0d1e31 |
- add needed backport stuff for EL-5 in #remirepo
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
* Wed Sep 02 2015 François Kooman <fkooman@tuxed.net> - 2.0.0-3
|
|
|
f0d1e31 |
- apply patch for test to avoid loading class that is now autoloaded
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
* Wed Sep 02 2015 François Kooman <fkooman@tuxed.net> - 2.0.0-2
|
|
|
f0d1e31 |
- add autoload script
|
|
|
f0d1e31 |
- make use of autoload script when running tests during build
|
|
|
f0d1e31 |
- fix double inclusion of directory
|
|
|
f0d1e31 |
|
|
|
f0d1e31 |
* Sat Aug 08 2015 François Kooman <fkooman@tuxed.net> - 2.0.0-1
|
|
|
f0d1e31 |
- initial package
|