From b71de9b4cd163714d18abec866a5f8930e486fb8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 17 Jul 2016 18:23:28 +0200 Subject: php-robrichards-xmlseclibs1: backport for remirepo --- Makefile | 4 ++++ composer.json | 24 ++++++++++++++++++++++++ php-robrichards-xmlseclibs1.spec | 25 ++++++++++++++++++++++++- 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 Makefile create mode 100644 composer.json diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..b19cf3e --- /dev/null +++ b/composer.json @@ -0,0 +1,24 @@ +{ + "name": "robrichards/xmlseclibs", + "description": "A PHP library for XML Security", + "license": "BSD-3-Clause", + "keywords": [ + "xml", + "xmldsig", + "signature", + "security" + ], + "homepage": "https://github.com/robrichards/xmlseclibs", + "autoload": { + "classmap": [ + "src/" + ] + }, + "require": { + "php": ">= 5.2" + }, + "suggest": { + "ext/openssl": "OpenSSL extension", + "ext/mcrypt": "MCrypt extension" + } +} diff --git a/php-robrichards-xmlseclibs1.spec b/php-robrichards-xmlseclibs1.spec index e9035fc..565acdc 100644 --- a/php-robrichards-xmlseclibs1.spec +++ b/php-robrichards-xmlseclibs1.spec @@ -1,3 +1,4 @@ +# remirepo spec file for php-robrichards-xmlseclibs1, from: # # Fedora spec file for php-robrichards-xmlseclibs1 # @@ -36,6 +37,7 @@ License: BSD URL: https://github.com/%{github_owner}/%{github_name} Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch # Tests %if %{with_tests} @@ -95,6 +97,8 @@ Autoloader: %{phpdir}/robrichards-xmlseclibs/autoload.php %install +rm -rf %{buildroot} + mkdir -p %{buildroot}%{phpdir}/robrichards-xmlseclibs cp -rp src/* %{buildroot}%{phpdir}/robrichards-xmlseclibs/ @@ -109,13 +113,29 @@ sed 's#require.*xmlseclibs.*#require_once "%{buildroot}%{phpdir}/robrichards-xml rm -f tests/extract-win-cert.phpt : Run tests -%{_bindir}/phpunit tests +run=0 +if which php56; then + php56 %{_bindir}/phpunit tests + run=1 +fi +if which php71; then + php71 %{_bindir}/phpunit tests + run=1 +fi +if [ $run -eq 0 ]; then + %{_bindir}/phpunit tests +fi %else : Tests skipped %endif +%clean +rm -rf %{buildroot} + + %files +%defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license LICENSE %doc CHANGELOG.txt @@ -125,6 +145,9 @@ rm -f tests/extract-win-cert.phpt %changelog +* Sun Jul 17 2016 Remi Collet - 1.4.1-2.20160518git2e20c8d +- backport for remi repository + * Thu Jul 14 2016 Shawn Iwinski - 1.4.1-2.20160518git2e20c8d - Updated to latest 1.4 snapshot - Moved php-openssl from weak dependency to hard dependency -- cgit