From 898256abb428116a31af7bdf754c914ee533cd8e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 27 Nov 2014 16:46:27 +0100 Subject: php-theseer-fxsl: 1.1.0 - New package --- Makefile | 4 +++ php-theseer-fxsl.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 Makefile create mode 100644 php-theseer-fxsl.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..13af741 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../../common/Makefile + diff --git a/php-theseer-fxsl.spec b/php-theseer-fxsl.spec new file mode 100644 index 0000000..8825b45 --- /dev/null +++ b/php-theseer-fxsl.spec @@ -0,0 +1,96 @@ +# spec file for php-theseer-fxsl +# +# Copyright (c) 2014 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/3.0/ +# +# Please, preserve the changelog entries +# + +%global gh_commit 0dd9b681e8a5e43857551a970f180438f1bf3bc4 +%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) +%global gh_owner theseer +%global gh_project fXSL +%global php_home %{_datadir}/php/TheSeer + +Name: php-theseer-fxsl +Version: 1.1.0 +Release: 1%{?dist} +Summary: An XSL wrapper / extension to the PHP XSLTProcessor + +Group: Development/Libraries +# https://github.com/theseer/fXSL/issues/5 +# License fully include in files headers +License: BSD +URL: https://github.com/%{gh_owner}/%{gh_project} +Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: php(language) >= 5.3.3 +# For test +BuildRequires: %{_bindir}/phpunit +BuildRequires: php-dom +BuildRequires: php-libxml +BuildRequires: php-xsl + +# From composer.json, requires +# "php" : ">=5.3.3", +# "ext-libxml" : "*", +# "ext-dom" : "*", +# "ext-xsl" : "*" +Requires: php(language) >= 5.3.3 +Requires: php-dom +Requires: php-libxml +Requires: php-xsl +# From phpcompatinfo report for version 1.1.0 +Requires: php-reflection +Requires: php-spl + +Provides: php-composer(theseer/fxsl) = %{version} +Provides: php-pear(pear.netpirates.net/fXSL) = %{version} + + +%description +The classes provided by this library extend the standard XSLTProcessor to use +exceptions at all occasions of errors instead of PHP warnings, notices or semi +completed transformations. + +They also add various custom methods and shortcuts for convinience and to allow +a nicer API to implement callbacks to the PHP stack. + + +%prep +%setup -q -n %{gh_project}-%{gh_commit} + + +%build +# Empty build section, most likely nothing required. + + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{php_home} +cp -pr src %{buildroot}%{php_home}/%{gh_project} + + +%check +phpunit + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%{!?_licensedir:%global license %%doc} +#license LICENSE +%doc readme.markdown composer.json sample +%{php_home}/%{gh_project} + + +%changelog +* Thu Nov 27 2014 Remi Collet - 1.1.0-1 +- Initial packaging, version 1.1.0 +- open https://github.com/theseer/fXSL/issues/5 - License \ No newline at end of file -- cgit