# 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.2.0 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 BuildArch: noarch BuildRequires: php-phpunit-PHPUnit Requires: php(language) >= 5.4 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 mkdir -pm 0755 %{buildroot}%{_datadir}/php/cssjanus cp -p src/CSSJanus.php %{buildroot}%{_datadir}/php/cssjanus %check phpunit --bootstrap src/CSSJanus.php test/ for cmd in php php56 php70 php71 php72; do if which $cmd; then $cmd %{_bindir}/phpunit --bootstrap src/CSSJanus.php test/ fi done %files %{!?_licensedir:%global license %%doc} %license APACHE-LICENSE-2.0.txt %doc README.md %{_datadir}/php/cssjanus %changelog * Mon Jul 17 2017 Michael Cronenworth - 1.2.0-1 - Version update * Mon Feb 13 2017 Michael Cronenworth - 1.1.3-1 - Version update - Add upstream patch for php 7.1 support * Mon Dec 7 2015 Remi Collet - 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 - 1.1.2-1 - Version update * Mon Oct 5 2015 Remi Collet - 1.1.1-1 - add backport stuff * Wed Sep 30 2015 Michael Cronenworth - 1.1.1-1 - Initial package