summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-04-26 07:35:37 +0200
committerRemi Collet <fedora@famillecollet.com>2016-04-26 07:35:37 +0200
commit7952ec07efa3b8f906ed0976b02e84f0f4d85be3 (patch)
treedf3d201e90675e76313d5e9285f43067b5443900
parent47e7b9280852fba071f980b9ecf1f21a7e597901 (diff)
php-natxet-cssmin: sync with Fedora + release bump
-rw-r--r--composer.json26
-rw-r--r--php-natxet-cssmin.spec11
2 files changed, 35 insertions, 2 deletions
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..f477e9a
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,26 @@
+{
+ "name": "natxet/cssmin",
+ "description": "Minifying CSS",
+ "type": "library",
+ "keywords": ["css","minify"],
+ "homepage": "http://code.google.com/p/cssmin/",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Joe Scylla",
+ "email": "joe.scylla@gmail.com",
+ "homepage": "https://profiles.google.com/joe.scylla"
+ }
+ ],
+ "require": {
+ "php": ">=5.0"
+ },
+ "autoload": {
+ "classmap": ["src/"]
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0-dev"
+ }
+ }
+}
diff --git a/php-natxet-cssmin.spec b/php-natxet-cssmin.spec
index 631c2b9..5ab852e 100644
--- a/php-natxet-cssmin.spec
+++ b/php-natxet-cssmin.spec
@@ -24,7 +24,7 @@
Name: php-%{packagist_owner}-%{lcname}
Version: %{github_version}
-Release: 1%{?github_date:.%{github_date}git%{shortcommit}}%{?dist}
+Release: 2%{?github_date:.%{github_date}git%{shortcommit}}%{?dist}
Summary: Configurable CSS parser and minifier
Group: Development/Libraries
@@ -37,6 +37,7 @@ Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{gith
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
+BuildRequires: %{_bindir}/phpab
Requires: php(language) >= %{php_min_ver}
Requires: php-pcre
@@ -56,7 +57,9 @@ shorter notation if available. The minification is configurable.
%build
-# Empty build section, nothing required
+# From composer.json, "autoload": {
+ # "classmap": ["src/"]
+ %{_bindir}/phpab --quiet --nolower --output ./autoload.php ./
%install
@@ -80,6 +83,10 @@ rm -rf %{buildroot}
%changelog
+* Mon Apr 25 2016 James Hogarth <james.hogarth@gmail.com> - 3.0.4-1
+- new release 3.0.4
+- Add simple classmap autoloader
+
* Thu Oct 15 2015 Remi Collet <remi@fedoraproject.org> - 3.0.4-1
- update to 3.0.4