From c58db35462dc3fd1915a9bae5ef8e198978cda92 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 24 Feb 2015 09:09:51 +0100 Subject: php-natxet-cssmin: backport for #remirepo --- Makefile | 4 ++++ php-natxet-cssmin.spec | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Makefile 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 - 3.0.2-2.20141229git8883d28 +- add backport stuff for remi repo + * Mon Feb 23 2015 Adam Williamson - 3.0.2-2.20141229git8883d28 - change layout to match upstream's (with the /src sub-directory) -- cgit