packages: apache-mod_pagespeed/apache-mod_pagespeed.spec, apache-mod_pagesp...

glen glen at pld-linux.org
Sat Jul 7 15:25:02 CEST 2012


Author: glen                         Date: Sat Jul  7 13:25:02 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build with system libs; builds in th

---- Files affected:
packages/apache-mod_pagespeed:
   apache-mod_pagespeed.spec (1.12 -> 1.13) , gcc-headers.patch (NONE -> 1.1)  (NEW), system-libs.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/apache-mod_pagespeed/apache-mod_pagespeed.spec
diff -u packages/apache-mod_pagespeed/apache-mod_pagespeed.spec:1.12 packages/apache-mod_pagespeed/apache-mod_pagespeed.spec:1.13
--- packages/apache-mod_pagespeed/apache-mod_pagespeed.spec:1.12	Sun Jun 24 14:27:19 2012
+++ packages/apache-mod_pagespeed/apache-mod_pagespeed.spec	Sat Jul  7 15:24:57 2012
@@ -1,12 +1,9 @@
 # $Revision$, $Date$
 #
 # Conditional build:
-%bcond_with	verbose		# verbose build (V=1)
+%bcond_without	verbose		# verbose build (V=1)
 
 # NOTE
-# - use make < 3.82 (from th-obsolete) to hack on code, because 3.82
-#   invalidates built objects and it's annoying to wait if all is recompiled
-#   each time you invoke make
 # - http://code.google.com/p/modpagespeed/wiki/HowToBuild
 # - http://wiki.mediatemple.net/w/(dv)_HOWTO:_Install_mod_pagespeed
 # TODO
@@ -24,12 +21,10 @@
 #   third_party/apache/apr/src/strings/apr_snprintf.c: In function 'conv_os_thread_t_hex':
 #   third_party/apache/apr/src/strings/apr_snprintf.c:671:5: error: duplicate case value
 #   third_party/apache/apr/src/strings/apr_snprintf.c:669:5: error: previously used here
+# - use only source for modpagespeed if system headers are used (remove copies from tarball)
 # - possible sysdeps (uses release tags)
 #  "serf_src": "http://serf.googlecode.com/svn/tags/0.3.1",
-#  "apr_src": "http://svn.apache.org/repos/asf/apr/apr/tags/1.4.2",
-#  "aprutil_src": "http://svn.apache.org/repos/asf/apr/apr-util/tags/1.3.9",
 #  "apache_httpd_src": "http://svn.apache.org/repos/asf/httpd/httpd/tags/2.2.15",
-#  "opencv_src": "https://code.ros.org/svn/opencv/tags/2.1",
 #  "gflags_root": "http://google-gflags.googlecode.com/svn/tags/gflags-1.3/src",
 #  "google_sparsehash_root": "http://google-sparsehash.googlecode.com/svn/tags/sparsehash-1.8.1/src",
 #  protobuf_lite
@@ -41,24 +36,42 @@
 %{expand:%%define	__cpp	%(echo '%__cpp' | sed -e 's,-gcc,-gcc4,')}
 %endif
 
-# - use only source for modpagespeed if system headers are used (remove copies from tarball)
 %define		mod_name	pagespeed
 %define 	apxs		%{_sbindir}/apxs
 Summary:	Apache module for rewriting web pages to reduce latency and bandwidth
 Name:		apache-mod_%{mod_name}
 Version:	0.10.22.4
-Release:	0.5
+Release:	0.7
 License:	Apache v2.0
 Group:		Networking/Daemons/HTTP
 Source0:	modpagespeed-%{version}.tar.bz2
-# Source0-md5:	e984c38493506fa9c4997513b7f016cb
+# Source0-md5:	9c9a8b091ee8d37253ee35878c3390e6
 Source1:	get-source.sh
+Patch0:		system-libs.patch
+Patch1:		gcc-headers.patch
 URL:		https://developers.google.com/speed/pagespeed/
 BuildRequires:	%{apxs}
 BuildRequires:	apache-devel >= 2.2
+BuildRequires:	dbus-glib-devel
+BuildRequires:	fontconfig-devel
+BuildRequires:	freetype-devel
+BuildRequires:	glib2-devel
+BuildRequires:	gtk+2-devel
+BuildRequires:	ibus-devel >= 1.3.99.20110425
+BuildRequires:	libgcrypt-devel
+BuildRequires:	libgnome-keyring-devel
+BuildRequires:	libjpeg-devel
+BuildRequires:	libpng-devel
+BuildRequires:	libselinux-devel
 BuildRequires:	libstdc++-devel >= 5:4.1
+BuildRequires:	opencv-devel
+BuildRequires:	openssl-devel
 BuildRequires:	python-devel >= 1:2.6
 BuildRequires:	rpmbuild(macros) >= 1.268
+BuildRequires:	xorg-lib-libX11-devel
+BuildRequires:	xorg-lib-libXext-devel
+BuildRequires:	xorg-lib-libXi-devel
+BuildRequires:	zlib-devel
 # gcc4 might be installed, but not current __cc
 %if "%(echo %{cc_version} | cut -d. -f1,2)" < "4.0"
 BuildRequires:	__cc >= 4.0
@@ -83,13 +96,27 @@
 
 %prep
 %setup -q -n modpagespeed
+%patch0 -p1
+%patch1 -p1
 
 %build
 # re-gen makefiles
 cd src
 CC="%{__cc}" \
 CXX="%{__cxx}" \
-%{__python} build/gyp_chromium --format=make build/all.gyp
+%{__python} build/gyp_chromium --format=make build/all.gyp \
+	-Dlinux_link_gsettings=1 \
+	-Dlinux_link_gnome_keyring=1 \
+	-Duse_gnome_keyring=1 \
+	-Duse_openssl=1 \
+	-Duse_system_apache_dev=1 \
+	-Duse_system_libjpeg=1 \
+	-Duse_system_libpng=1 \
+	-Duse_system_opencv=1 \
+	-Duse_system_zlib=1 \
+	-Duse_ibus=1 \
+	%{nil}
+
 cd ..
 
 # makefile wrapper so we could just invoke "make" from shell
@@ -105,9 +132,13 @@
 	LINK.host="%{__cxx}" \
 	CFLAGS="%{rpmcflags} %{rpmcppflags}" \
 	CXXFLAGS="%{rpmcxxflags} %{rpmcppflags}" \
+	$(MAKEFLAGS) \
 EOF
 %{__make}
 
+# install.gyp needs fixing, not to install ap24.so, for now duplicate
+ln -f src/out/Release/libmod_pagespeed{,_ap24}.so
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} -j1 -C src/install staging \
@@ -154,6 +185,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2012/07/07 13:24:57  glen
+- build with system libs; builds in th
+
 Revision 1.12  2012/06/24 12:27:19  glen
 - up to 0.10.22.4, builds on ti
 

================================================================
Index: packages/apache-mod_pagespeed/gcc-headers.patch
diff -u /dev/null packages/apache-mod_pagespeed/gcc-headers.patch:1.1
--- /dev/null	Sat Jul  7 15:25:02 2012
+++ packages/apache-mod_pagespeed/gcc-headers.patch	Sat Jul  7 15:24:57 2012
@@ -0,0 +1,20 @@
+--- modpagespeed/src/net/instaweb/apache/apache_message_handler.h~	2012-06-24 15:31:47.000000000 +0300
++++ modpagespeed/src/net/instaweb/apache/apache_message_handler.h	2012-07-07 15:16:57.930461612 +0300
+@@ -18,6 +18,7 @@
+ #define NET_INSTAWEB_APACHE_APACHE_MESSAGE_HANDLER_H_
+ 
+ #include <string>
++#include <unistd.h>
+ #include "net/instaweb/apache/apr_timer.h"
+ #include "net/instaweb/util/public/basictypes.h"
+ #include "net/instaweb/util/public/google_message_handler.h"
+--- modpagespeed/src/net/instaweb/apache/log_message_handler.h~	2012-06-24 15:31:47.000000000 +0300
++++ modpagespeed/src/net/instaweb/apache/log_message_handler.h	2012-07-07 15:18:47.358883477 +0300
+@@ -19,6 +19,7 @@
+ #define NET_INSTAWEB_APACHE_LOG_MESSAGE_HANDLER_H_
+ 
+ #include <algorithm>  // for std::min
++#include <unistd.h>
+ #include "apr_pools.h"
+ 
+ #include "net/instaweb/util/public/string_util.h"

================================================================
Index: packages/apache-mod_pagespeed/system-libs.patch
diff -u /dev/null packages/apache-mod_pagespeed/system-libs.patch:1.1
--- /dev/null	Sat Jul  7 15:25:02 2012
+++ packages/apache-mod_pagespeed/system-libs.patch	Sat Jul  7 15:24:57 2012
@@ -0,0 +1,43 @@
+--- modpagespeed/src/third_party/apr/apr.gyp~	2012-06-24 15:31:59.000000000 +0300
++++ modpagespeed/src/third_party/apr/apr.gyp	2012-07-07 14:44:06.094870546 +0300
+@@ -19,7 +19,7 @@
+     'apr_src_root': '<(apr_root)/src',
+     'apr_gen_os_root': '<(apr_root)/gen/arch/<(OS)',
+     'apr_gen_arch_root': '<(apr_gen_os_root)/<(target_arch)',
+-    'system_include_path_apr%': '/usr/include/apr-1.0',
++    'system_include_path_apr%': '/usr/include/apr',
+     'conditions': [
+       ['OS!="win"', {
+         'apr_os_include': '<(apr_src_root)/include/arch/unix',
+--- modpagespeed/src/third_party/aprutil/aprutil.gyp~	2012-06-24 15:31:59.000000000 +0300
++++ modpagespeed/src/third_party/aprutil/aprutil.gyp	2012-07-07 14:48:10.299435236 +0300
+@@ -22,7 +22,7 @@
+     'aprutil_src_root': '<(aprutil_root)/src',
+     'aprutil_gen_os_root': '<(aprutil_root)/gen/arch/<(OS)',
+     'aprutil_gen_arch_root': '<(aprutil_gen_os_root)/<(target_arch)',
+-    'system_include_path_aprutil%': '/usr/include/apr-1.0',
++    'system_include_path_aprutil%': '/usr/include/apr-util',
+   },
+   'conditions': [
+     ['use_system_apache_dev==0', {
+--- modpagespeed/src/third_party/httpd/httpd.gyp~	2012-06-24 15:31:59.000000000 +0300
++++ modpagespeed/src/third_party/httpd/httpd.gyp	2012-07-07 15:15:13.598943424 +0300
+@@ -18,7 +18,7 @@
+     'apache_src_root': '<(apache_root)/src',
+     'apache_gen_os_root': '<(apache_root)/gen/arch/<(OS)',
+     'apache_gen_arch_root': '<(apache_gen_os_root)/<(target_arch)',
+-    'system_include_path_httpd%': '/usr/include/apache2',
++    'system_include_path_httpd%': '/usr/include/apache',
+     'conditions': [
+       ['OS!="win"', {
+         'apache_os_include': '<(apache_src_root)/os/unix',
+--- modpagespeed/src/build/install.gyp~	2012-06-24 15:31:45.000000000 +0300
++++ modpagespeed/src/build/install.gyp	2012-07-07 15:41:33.416812382 +0300
+@@ -43,7 +43,6 @@
+         ],
+         'packaging_files_binaries': [
+           '<(PRODUCT_DIR)/libmod_pagespeed.so',
+-          '<(PRODUCT_DIR)/libmod_pagespeed_ap24.so',
+         ],
+         'flock_bash': ['flock', '--', '/tmp/linux_package_lock', 'bash'],
+         'deb_build': '<(PRODUCT_DIR)/install/debian/build.sh',
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/apache-mod_pagespeed/apache-mod_pagespeed.spec?r1=1.12&r2=1.13



More information about the pld-cvs-commit mailing list