summaryrefslogtreecommitdiffstats
path: root/php-cssjanus.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-cssjanus.spec')
-rw-r--r--php-cssjanus.spec29
1 files changed, 15 insertions, 14 deletions
diff --git a/php-cssjanus.spec b/php-cssjanus.spec
index 0cca0ac..fe0df26 100644
--- a/php-cssjanus.spec
+++ b/php-cssjanus.spec
@@ -8,7 +8,7 @@
# Please preserve changelog entries
#
Name: php-cssjanus
-Version: 1.1.2
+Version: 1.2.0
Release: 1%{?dist}
Summary: Convert CSS stylesheets between left-to-right and right-to-left
Group: Development/Libraries
@@ -18,12 +18,11 @@ 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(language) >= 5.4
Requires: php-pcre
Provides: php-composer(cssjanus/cssjanus) = %{version}
@@ -42,26 +41,21 @@ cp -p %{SOURCE1} test/data-v%{version}.json
%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
+phpunit --bootstrap src/CSSJanus.php test/
-
-%clean
-rm -rf %{buildroot}
+for cmd in php php56 php70 php71 php72; do
+ if which $cmd; then
+ $cmd %{_bindir}/phpunit --bootstrap src/CSSJanus.php test/
+ fi
+done
%files
-%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license APACHE-LICENSE-2.0.txt
%doc README.md
@@ -69,6 +63,13 @@ rm -rf %{buildroot}
%changelog
+* Mon Jul 17 2017 Michael Cronenworth <mike@cchtml.com> - 1.2.0-1
+- Version update
+
+* Mon Feb 13 2017 Michael Cronenworth <mike@cchtml.com> - 1.1.3-1
+- Version update
+- Add upstream patch for php 7.1 support
+
* 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