Skip to content

Commit fd98426

Browse files
committed
[php-robrichards-xmlseclibs] Updated to latest snapshot
- Moved php-openssl from weak dependency to hard dependency - Added php-mcrypt weak dependency and added information to %description about when it is required
1 parent 7d008c6 commit fd98426

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

php-robrichards-xmlseclibs/php-robrichards-xmlseclibs.spec

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
%global github_owner robrichards
1313
%global github_name xmlseclibs
1414
%global github_version 2.0.0
15-
%global github_commit 1b78df099c107279e9069a7b7608be98fd530dfd
15+
%global github_commit 84313ca3cc992315d5501cb2b186415b4008df16
16+
%global github_release .20160105git%(c=%{github_commit}; echo ${c:0:7})
1617

1718
%global composer_vendor robrichards
1819
%global composer_project xmlseclibs
@@ -27,7 +28,7 @@
2728

2829
Name: php-%{composer_vendor}-%{composer_project}
2930
Version: %{github_version}
30-
Release: 1%{?github_release}%{?dist}
31+
Release: 2%{?github_release}%{?dist}
3132
Summary: A PHP library for XML Security
3233

3334
Group: Development/Libraries
@@ -53,6 +54,8 @@ BuildRequires: php-composer(symfony/class-loader)
5354

5455
# composer.json
5556
Requires: php(language) >= %{php_min_ver}
57+
# composer.json: suggest
58+
Requires: php-openssl
5659
# phpcompatinfo (computed from version 2.0.0)
5760
Requires: php-dom
5861
Requires: php-hash
@@ -62,8 +65,7 @@ Requires: php-composer(symfony/class-loader)
6265
# Weak dependencies
6366
%if 0%{?fedora} >= 21
6467
## composer.json: suggest
65-
#Suggests: php-mcrypt
66-
Suggests: php-openssl
68+
Suggests: php-mcrypt
6769
%endif
6870

6971
# Composer
@@ -74,6 +76,14 @@ Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version}
7476
xmlseclibs is a library written in PHP for working with XML Encryption and
7577
Signatures.
7678

79+
NOTE: php-mcrypt will not be automatically installed as a dependency of this
80+
package so it will need to be "manually" installed if it is required --
81+
specifically for the following XMLSecurityKey encryption types:
82+
- XMLSecurityKey::AES128_CBC
83+
- XMLSecurityKey::AES192_CBC
84+
- XMLSecurityKey::AES256_CBC
85+
- XMLSecurityKey::TRIPLEDES_CBC
86+
7787
Autoloader: %{phpdir}/RobRichards/XMLSecLibs/autoload.php
7888

7989

@@ -139,5 +149,11 @@ rm -f tests/extract-win-cert.phpt
139149

140150

141151
%changelog
152+
* Thu Jul 14 2016 Shawn Iwinski <shawn@iwin.ski> - 2.0.0-2.20160105git84313ca
153+
- Updated to latest snapshot
154+
- Moved php-openssl from weak dependency to hard dependency
155+
- Added php-mcrypt weak dependency and added information to %%description about
156+
when it is required
157+
142158
* Sun Jul 10 2016 Shawn Iwinski <shawn@iwin.ski> - 2.0.0-1
143159
- Initial package

0 commit comments

Comments
 (0)