blob: db6383135202de0cf8f97994b559b6b0180f9cce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# spec file for php-theseer-fxsl
#
# Copyright (c) 2014-2017 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global gh_commit a9246376c713156e55c080782d4104bb07d4b899
%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.1
Release: 1%{?dist}
Summary: An XSL wrapper / extension to the PHP XSLTProcessor
Group: Development/Libraries
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
* Fri Nov 28 2014 Remi Collet <remi@fedoraproject.org> - 1.1.1-1
- update to 1.1.1 (no change)
- add upstream LICENSE file
* Thu Nov 27 2014 Remi Collet <remi@fedoraproject.org> - 1.1.0-1
- Initial packaging, version 1.1.0
- open https://github.com/theseer/fXSL/issues/5 - License
|