summaryrefslogtreecommitdiffstats
path: root/php-cssjanus.spec
blob: 0cca0acf8c02cb036fbfaeae467012526439f2f0 (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
# remirepo spec file for php-cssjanus, from:
#
# Fedora spec file for php-cssjanus
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please preserve changelog entries
#
Name:		php-cssjanus
Version:	1.1.2
Release:	1%{?dist}
Summary:	Convert CSS stylesheets between left-to-right and right-to-left
Group:		Development/Libraries

License:	ASL 2.0
URL:		https://github.com/cssjanus/php-cssjanus
Source0:	https://github.com/cssjanus/php-cssjanus/archive/v%{version}.tar.gz#/php-cssjanus-%{version}.tar.gz
Source1:	https://github.com/cssjanus/cssjanus/raw/v%{version}/test/data.json#/php-cssjanus-data.json

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

BuildRequires:	php-phpunit-PHPUnit

Requires:	php(language) >= 5.3.3
Requires:	php-pcre

Provides:	php-composer(cssjanus/cssjanus) = %{version}


%description
Convert CSS stylesheets between left-to-right and right-to-left.


%prep
%setup -qn php-cssjanus-%{version}
cp -p %{SOURCE1} test/data-v%{version}.json


%build


%install
rm -rf %{buildroot}

mkdir -pm 0755 %{buildroot}%{_datadir}/php/cssjanus
cp -p src/CSSJanus.php %{buildroot}%{_datadir}/php/cssjanus


%check
%{_bindir}/phpunit --bootstrap src/CSSJanus.php test/

if which php70; then
  php70 %{_bindir}/phpunit --bootstrap src/CSSJanus.php test/
fi


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license APACHE-LICENSE-2.0.txt
%doc README.md
%{_datadir}/php/cssjanus


%changelog
* Mon Dec  7 2015 Remi Collet <remi@remirepo.net> - 1.1.2-1
- update to 1.1.2 (backport from Fedora)
- run test suite with both php 5 and 7 when available

* Sun Dec 06 2015 Michael Cronenworth <mike@cchtml.com> - 1.1.2-1
- Version update

* Mon Oct  5 2015 Remi Collet <remi@remirepo.net> - 1.1.1-1
- add backport stuff

* Wed Sep 30 2015 Michael Cronenworth <mike@cchtml.com> - 1.1.1-1
- Initial package