adamwill pushed to php-natxet-cssmin (epel7). "initial import from reviewed .src.rpm"
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri May 1 22:31:12 UTC 2015
>From dc0e75f09806d544534f4d79c67f0c1748d569fa Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam at redhat.com>
Date: Mon, 23 Feb 2015 13:55:49 -0800
Subject: initial import from reviewed .src.rpm
diff --git a/.gitignore b/.gitignore
index e69de29..375a84a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/CssMin-8883d28cd2de131c364f2f657e4bcc09bfa45082.tar.gz
diff --git a/php-natxet-cssmin.spec b/php-natxet-cssmin.spec
new file mode 100644
index 0000000..e34154e
--- /dev/null
+++ b/php-natxet-cssmin.spec
@@ -0,0 +1,68 @@
+%global github_owner natxet
+%global github_name CssMin
+%global github_version 3.0.2
+%global github_commit 8883d28cd2de131c364f2f657e4bcc09bfa45082
+# if set, will be a post-release snapshot build, otherwise a 'normal' build
+%global github_date 20141229
+%global shortcommit %(c=%{github_commit}; echo ${c:0:7})
+%global packagist_owner natxet
+%global packagist_name CssMin
+
+%global lcname %(echo %{packagist_name} | tr '[:upper:]' '[:lower:]')
+
+# phpci
+%global php_min_ver 5.0.0
+
+Name: php-%{packagist_owner}-%{lcname}
+Version: %{github_version}
+Release: 1%{?github_date:.%{github_date}git%{shortcommit}}%{?dist}
+Summary: Configurable CSS parser and minifier
+
+Group: Development/Libraries
+# License text is included in the sole code file
+License: MIT
+URL: https://github.com/%{github_owner}/%{github_name}
+# Must use commit-based not tag-based github tarball:
+# https://fedoraproject.org/wiki/Packaging:SourceURL#Github
+Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{github_name}-%{github_commit}.tar.gz
+
+BuildArch: noarch
+
+Requires: php(language) >= %{php_min_ver}
+Requires: php-pcre
+
+Provides: php-composer(%{packagist_owner}/%{packagist_name}) = %{version}
+
+
+%description
+CssMin is a css parser and minifier. It minifies css by removing
+unneeded whitespace characters, comments, empty blocks and empty
+declarations. In addition declaration values can get rewritten to
+shorter notation if available. The minification is configurable.
+
+
+%prep
+%setup -qn %{github_name}-%{github_commit}
+
+
+%build
+# Empty build section, nothing required
+
+
+%install
+mkdir -p %{buildroot}%{_datadir}/php/%{packagist_owner}/%{packagist_name}
+cp -pr src/* %{buildroot}%{_datadir}/php/%{packagist_owner}/%{packagist_name}
+
+
+%check
+# no tests
+
+
+%files
+%doc README composer.json
+%{_datadir}/php/%{packagist_owner}
+
+
+%changelog
+* Mon Dec 29 2014 Adam Williamson <awilliam at redhat.com> - 3.0.2-1.20141229git8883d28
+- initial package
diff --git a/sources b/sources
index e69de29..65ad7b7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e875c055dfac77710232c016a0329eab CssMin-8883d28cd2de131c364f2f657e4bcc09bfa45082.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/php-natxet-cssmin.git/commit/?h=epel7&id=dc0e75f09806d544534f4d79c67f0c1748d569fa
More information about the scm-commits
mailing list