summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-10-05 18:09:27 +0200
committerRemi Collet <fedora@famillecollet.com>2015-10-05 18:09:27 +0200
commit1c8fdd62dd534d4390dbd0d692a62aad61bf89bc (patch)
tree245d179db0a00abc27c656d16f1643f0e629d8ad
parenta05e96eb17c7f91a16869471c397fd1c3f14be19 (diff)
php-cssjanus: backport for remirepo
-rw-r--r--Makefile4
-rw-r--r--php-cssjanus.spec22
2 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..91b0fd5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../common/Makefile
+
diff --git a/php-cssjanus.spec b/php-cssjanus.spec
index bfde75f..51999fc 100644
--- a/php-cssjanus.spec
+++ b/php-cssjanus.spec
@@ -1,13 +1,24 @@
+# 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.1
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
@@ -31,6 +42,8 @@ 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
@@ -39,13 +52,22 @@ cp -p src/CSSJanus.php %{buildroot}%{_datadir}/php/cssjanus
phpunit --bootstrap src/CSSJanus.php test/
+%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 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