summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-02-24 09:09:51 +0100
committerRemi Collet <fedora@famillecollet.com>2015-02-24 09:09:51 +0100
commitc58db35462dc3fd1915a9bae5ef8e198978cda92 (patch)
tree87155322725e7f49a13496def5eea736dd854472
parent574ab7d3057138f6d5d61266d4aec1531947e83a (diff)
php-natxet-cssmin: backport for #remirepo
-rw-r--r--Makefile4
-rw-r--r--php-natxet-cssmin.spec10
2 files changed, 14 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-natxet-cssmin.spec b/php-natxet-cssmin.spec
index 64c5677..0ca2384 100644
--- a/php-natxet-cssmin.spec
+++ b/php-natxet-cssmin.spec
@@ -26,6 +26,7 @@ URL: https://github.com/%{github_owner}/%{github_name}
# https://fedoraproject.org/wiki/Packaging:SourceURL#Github
Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{github_name}-%{github_commit}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: php(language) >= %{php_min_ver}
@@ -50,20 +51,29 @@ shorter notation if available. The minification is configurable.
%install
+rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/php/%{packagist_owner}/%{packagist_name}
cp -pr src/ %{buildroot}%{_datadir}/php/%{packagist_owner}/%{packagist_name}
+%clean
+rm -rf %{buildroot}
+
+
%check
# no tests
%files
+%defattr(-,root,root,-)
%doc README composer.json
%{_datadir}/php/%{packagist_owner}
%changelog
+* Tue Feb 24 2015 Remi Collet <remi@fedoraproject.org> - 3.0.2-2.20141229git8883d28
+- add backport stuff for remi repo
+
* Mon Feb 23 2015 Adam Williamson <awilliam@redhat.com> - 3.0.2-2.20141229git8883d28
- change layout to match upstream's (with the /src sub-directory)