[packages/minify] - migrated to apache 2.4
baggins
baggins at pld-linux.org
Thu May 16 20:49:34 CEST 2013
commit 503ebcb5dd295c8184c7c48fd1207fa511d132c8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu May 16 20:49:32 2013 +0200
- migrated to apache 2.4
httpd.conf | 21 +++++++++++++++++++++
minify.spec | 14 ++++++++------
2 files changed, 29 insertions(+), 6 deletions(-)
---
diff --git a/minify.spec b/minify.spec
index 479178d..842abf1 100644
--- a/minify.spec
+++ b/minify.spec
@@ -3,13 +3,16 @@
Summary: Combines, minifies, and caches JavaScript and CSS files on demand to speed up page loads
Name: minify
Version: 2.1.5
-Release: 9
+Release: 10
License: New BSD License
Group: Applications/WWW
#Source0: https://minify.googlecode.com/files/%{name}-%{version}.zip
Source0: https://github.com/mrclay/minify/tarball/master/%{name}-%{version}.tgz
# Source0-md5: 7ead5f2bc26630c16b206c7c50e2aba1
#Source0: https://github.com/glensc/minify/tarball/lesscss#/%{name}-less-%{version}.tgz
+Source1: apache.conf
+Source2: lighttpd.conf
+Source3: httpd.conf
Patch0: paths.patch
Patch1: pear-firephp.patch
Patch2: yui-path.patch
@@ -19,8 +22,6 @@ Patch3: https://github.com/glensc/minify/commit/a82d70b0baaa85c8ca234e39918d678
Patch4: https://github.com/glensc/minify/commit/32abbfa328dcccf785452dd9cd032f224e378645.patch
# https://github.com/mrclay/minify/pull/47
Patch5: https://github.com/glensc/minify/commit/8c54519b32b2230293be60c5f9a8f514401171fc.patch
-Source1: apache.conf
-Source2: lighttpd.conf
URL: http://code.google.com/p/minify/
BuildRequires: rpmbuild(macros) >= 1.654
BuildRequires: unzip
@@ -28,6 +29,7 @@ Requires: php(core) >= %{php_min_version}
Requires: php(pcre)
Requires: php-%{name} = %{version}-%{release}
Requires: webapps
+Conflicts: apache-base < 2.4.0-1
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -119,7 +121,7 @@ done
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
-cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
%triggerin -- apache1 < 1.3.37-3, apache1-base
%webapp_register apache %{_webapp}
@@ -127,10 +129,10 @@ cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
%triggerun -- apache1 < 1.3.37-3, apache1-base
%webapp_unregister apache %{_webapp}
-%triggerin -- apache < 2.2.0, apache-base
+%triggerin -- apache-base
%webapp_register httpd %{_webapp}
-%triggerun -- apache < 2.2.0, apache-base
+%triggerun -- apache-base
%webapp_unregister httpd %{_webapp}
%triggerin -- lighttpd
diff --git a/httpd.conf b/httpd.conf
new file mode 100644
index 0000000..3b30a19
--- /dev/null
+++ b/httpd.conf
@@ -0,0 +1,21 @@
+Alias /min/ /usr/share/minify/
+
+<Directory /usr/share/minify>
+ Require all granted
+
+ php_value zlib.output_compression 0
+ <IfModule mod_rewrite.c>
+ RewriteEngine on
+
+ # You may need RewriteBase on some servers
+ RewriteBase /min
+
+ # rewrite URLs like "/min/f=..." to "/min/?f=..."
+ RewriteRule ^([bfg]=.*) index.php?$1 [L,NE]
+ </IfModule>
+
+ <IfModule mod_env.c>
+ # In case AddOutputFilterByType has been added
+ SetEnv no-gzip
+ </IfModule>
+</Directory>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/minify.git/commitdiff/503ebcb5dd295c8184c7c48fd1207fa511d132c8
More information about the pld-cvs-commit
mailing list