Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
2.4
:
Modules
>
apache2-mod_pagespeed
> apache2-mod_pagespeed.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File apache2-mod_pagespeed.spec of Package apache2-mod_pagespeed (Revision 2)
Currently displaying revision
2
,
show latest
# # spec file for package apache2-mod_pagespeed # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define module_dir /srv/www/mod_pagespeed %define log_dir %{_localstatedir}/log/pagespeed %define module_data_dir %{module_dir}/cache %define ssl_cert_dir %{_sysconfdir}/ssl/certs/ %define ssl_cert_file %{_sysconfdir}/apache2/ssl.crt/server.crt %define use_system_icu 1 %define use_system_libs 1 %define src_ver 1.8.31.5 %define svn_rev 4307 %if %{defined suse_version} %define apxs /usr/sbin/apxs2 BuildRequires: apache2-devel apache2-prefork apache2-worker %endif # %if %{defined centos_version} || %{defined fedora_version} %define apxs /usr/sbin/apxs BuildRequires: httpd-devel %endif %define apache apache2 %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) %define apache_includedir %(%{apxs} -q INCLUDEDIR) %define apache_serverroot %(%{apxs} -q PREFIX) %define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) %define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) Name: apache2-mod_pagespeed Version: %{src_ver} Release: 2.1 Summary: Apache module for rewriting web pages to reduce latency and bandwidth License: Apache-2.0 Group: Productivity/Networking/Web/Servers Url: http://code.google.com/p/modpagespeed/ Source: https://dl.google.com/dl/linux/mod-pagespeed/tar/beta/mod-pagespeed-stable-%{version}-r%{svn_rev}.tar.bz2 BuildRequires: apache2-devel #BuildRequires: apache-rpm-macros BuildRequires: bzip2 BuildRequires: gcc-c++ BuildRequires: gperf BuildRequires: libapr-util1-devel BuildRequires: libapr1-devel BuildRequires: libicu-devel # TODO-libpng-turbo BuildRequires: libjpeg8-devel BuildRequires: libpng12-compat-devel BuildRequires: python-base %if 0%{?sles_version} == 11 BuildRequires: libpng-devel BuildRequires: libopenssl-devel %else BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libssl) %endif Requires: apache2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description mod_pagespeed is built on PageSpeed Optimization Libraries, deployed across 100,000+ web-sites, and provided by popular hosting and CDN providers such as DreamHost, GoDaddy, EdgeCast, and others. There are 40+ available optimizations filters, which include: Image optimization, compression, and resizing CSS & JavaScript concatenation, minification, and inlining Cache extension, domain sharding, and domain rewriting Deferred loading of JavaScript and image resources and many others... %prep %setup -q -n modpagespeed-%{version}/src build/gyp_chromium -Duse_system_libs=%{use_system_libs} -Duse_system_icu=%{use_system_icu} -Dsystem_include_path_apr=${BUILD_ROOT}%{_includedir}/apr-1 -Dsystem_include_path_httpd=${BUILD_ROOT}%{apache_includedir} -Dsystem_include_path_aprutil=${BUILD_ROOT}%{_includedir}/apr-1 %build make %{?_smp_mflags} BUILDTYPE=Release %install install -d -m 755 %{buildroot}%{apache_libexecdir} strip out/Release/libmod_pagespeed.so install -m 644 out/Release/libmod_pagespeed.so %{buildroot}%{_libdir}/apache2/mod_pagespeed.so install -d -m 755 %{buildroot}%{module_data_dir} install -d -m 755 %{buildroot}%{module_data_dir} install -d -m 755 %{buildroot}%{log_dir} install -d -m 755 %{buildroot}%{apache_sysconfdir}/conf.d install -m 644 out/Release/install/common/pagespeed.conf.template %{buildroot}%{apache_sysconfdir}/conf.d/mod_pagespeed.conf sed -i 's|@@MOD_PAGESPEED_CACHE@@|%{module_data_dir}|' %{buildroot}%{apache_sysconfdir}/conf.d/mod_pagespeed.conf sed -i 's|@@MOD_PAGESPEED_LOG@@|%{log_dir}|' %{buildroot}%{apache_sysconfdir}/conf.d/mod_pagespeed.conf sed -i 's|@@SSL_CERT_DIR@@|%{ssl_cert_dir}|' %{buildroot}%{apache_sysconfdir}/conf.d/mod_pagespeed.conf sed -i 's|@@SSL_CERT_FILE_COMMAND@@|ModPagespeedSslCertFile %{ssl_cert_file}|' %{buildroot}%{apache_sysconfdir}/conf.d/mod_pagespeed.conf sed -i 's|@@MOD_PAGESPEED_STATS_LOG@@|%{_localstatedir}/log/apache2/mod_pagespeed_stats.log|' %{buildroot}%{apache_sysconfdir}/conf.d/mod_pagespeed.conf %files %defattr(-,root,root) %{apache_libexecdir} %{apache_libexecdir}/mod_pagespeed.so %{module_dir} %{module_data_dir} %attr(755, wwwrun, www) %{module_data_dir} %{apache_sysconfdir} %config(noreplace) %{apache_sysconfdir}/conf.d/mod_pagespeed.conf %attr(700, wwwrun, www) %{log_dir} %changelog * Mon Nov 3 2014 pgajdos@suse.com - call spec-cleaner - use apache rpm macros * Fri Oct 31 2014 robert.munteanu@gmail.com - Update to upstream 1.8.31.5 version * Issues Resolved + Issue 992 Malformed CSS can lead to unbounded stack depth + Issue 1004 Disable SSLv3 and SSLv2 support in serf fetcher * Tue Aug 12 2014 robert.munteanu@gmail.com - No longer depend on subversion at build time. Solved by using a tarball release instead of gclient * Fri Aug 8 2014 robert.munteanu@gmail.com - Rebuilt tarball using openSUSE 12.2 * Thu Aug 7 2014 robert.munteanu@gmail.com - Update to upstream 1.8.31.4 version * New Features + New rewrite level OptimizeForBandwidth + New admin pages + JavaScript source map support + Image classification + WebP conversion on by default + Serve WebP URLs to any browser + Inline resources without explicit authorization + Downstream cache rebeaconing support + Browser-dependent in-place optimization + Configurable location for static assets + Cache sharing among domains + Ability to set options in experiment specs + Optional Host: header in MapOriginDomain + Fetch HTTPS resources in ngx_pagespeed + LazyloadImagesAfterOnload on by default * Issues Resolved + Issue 106 Inline js files even if they contain </script>. + Issue 452 Can't run experiments except on filters and some thresholds. + Issue 570 Document RewriteDeadlineMs. + Issue 586 Track image rewriting time in mod_pagespeed_variables. + Issue 692 Fixed-case paths broken in domain-mapping directives. + Issue 752 Issue downstream cache purges only for GET requests. + Issue 812 SerfThreadFn might compile with the wrong calling convention and crash on shutdown. + Issue 813 Disable beaconing for bots. + Issue 817 WebP transcoding should trigger off Accept: headers and issue Vary: Accept. + Issue 831 Spriting replaces transparent color with arbitrary color. + Issue 832 DCHECK failure on static_rewriter test. + Issue 840 Deadlock when rewriting resources. + Issue 845 etag should not be issued for mismatching content. + Issue 846 PageSpeed's cache lookup needs to become Vary: Accept aware, at least for WebP. + Issue 855 Deadlock when using apache threads with in-place rewriting, a threaded mpm, and memcached. + Issue 856 Improve error message reporting when shared memory segment creation fails. + Issue 858 Remove insignificant message: “Default shared memory cache: Cache named pagespeed_default_shm already exists”. + Issue 863 Cache-Control: no-transform has no effect if combined with other values. + Issue 871 Apply in-place optimization on first request if InPlaceRewriteDeadlineMs is -1 and LoadFromFile is enabled. + Issue 881 Changing JS files can make combining/minification produce reference errors. + Issue 882 Run combine_javascript before rewrite_javascript, and have it do the minification inline. + Issue 883 Employ image classification to make better decisions about lossy conversion. + Issue 885 Enabling memcached causes “Waiting for property cache” messages and server spinning. + Issue 907 Sharedmem “Unable to insert object of size” message needs to be demoted and indicate the cache key. + Issue 915 Link error on “html_minifier_main” using GCC 4.9.0 + [Gold] Linker. + Issue 918 <style scoped> is translated to <link rel="stylesheet" scoped> however there is no browser support for the latter. + Issue 921 Downstream Caches - PURGE request has a double slash. + Issue 927 defer_javascript errors in Safari 4.x and 5.0, user scripts fail. + Issue 928 Allow user defined attributes to override spec-defined ones. + Issue 937 Increase beacon frequency until there's enough data, then decrease it. + Issue 938 Check for image criticality at image onload to fix carousel display. * Thu Jul 3 2014 robert.munteanu@gmail.com - Update to upstream 1.7.30.4 version * New Features + Default shared memory metadata cache + Fetch HTTPS resources for Apache server + Fetch HTTPS resources using mod_spdy for Apache server + Inline Google Fonts API CSS + Preserve URL relativity + Optimize multiple URL-valued attributes + Implicit cache-lifetime for resources + Maximum time for inplace resource rewriting + Maximum size of the combined CSS + Maximum size of images that will be optimized + Minimum size of JPEG images that will be compressed in progressive format + Resize images to rendered dimensions + Better image compression and resizing * Configuration defaults updated + Default combine_javascript to on (was off) + Default convert_png_to_jpeg to on (was off). * Issues Resolved + Issue 198 Optimize handling of multiple references to the same image on a page at different sizes. + Issue 376 Image resizing should utilize width/height information in CSS classes. + Issue 423 Support fetching resources over HTTPS. + Issue 441 Filter "make_google_analytics_async" turns benign call to deprecated method into a functional error. + Issue 466 Provide a way to optimize all resource attributes in a tag. + Issue 503 Preserve URL relativeness. + Issue 627 Quoting of ModPagespeed:noscript insertion broken in some browsers. + Issue 664 Strip Connection and other hop-by-hop headers when saving input resource. + Issue 755 Memory leak with 'graceful' restart relating to shared memory starting in 1.4. + Issue 756 ModifyCachingHeaders should not touch Cache-Control headers if downstream-caching is enabled. + Issue 757 Make maximum image size configurable. + Issue 758 Add configurability for DisableRewriteOnNoTransform and system test. + Issue 759 Cleanup race in SchedulerBlockingFunction::Block() and ::Cancel(). + Issue 773 Repeat image inlined at low resolution when local_storage_cache is enabled. + Issue 781 Images are inlined into CSS styles in IE7 if Firefox renders them first. + Issue 799 Console slow when logfile is large. + Issue 803 Metadata cache will reminder not-optimizable for 5 minutes after rate-limiting drops a fetch. + Issue 809 mod_pagespeed disables mod_headers/mod_expires when proxying content with cache-control set. + Issue 831 Spriting replaces transparent color with arbitrary color. + Issue 840 Deadlock when rewriting resources. + Issue 856 Improve error message reporting when shared memory segment creation fails. + Issue 857 Avoid insertions (e.g., beacon) at midpoint of the document which ought to be at the end of it. + Issue 858 Remove insignificant message: Default shared memory cache: Cache named pagespeed_default_shm already exists. + Issue 860 GoogleFontCssInlineFilter doesn't handle protocol-relative URLs correctly. + Issue 861 PSOL sample application has dcheck-failure in the demo program. + Issue 862 mod_pagespeed may have deadlock in property cache fetch in IPRO non-proxy mode if memcached is used. + Issue 867 Data URLs in CSS become blank after rewriting. + Issue 874 Warning messages in log for "ModPagespeed:noscript?". + Issue 880 Combining minified JS files can produce invalid results when deadline exceeded. + Issue 885 Enabling memcached causes "Waiting for property cache" messages and server spinning. + Issue 896 IPRO on reverse proxy can capture gzipped content and serve it to users without content-encoding:gzip. + Issue 898 IPRO does not correctly handle resources which failed to fetch. - Dropped fix-pkg-config-opencv-flags.patch as the build no longer uses opencv * Mon Jan 6 2014 tchvatal@suse.com - Fix typo in condition. * Sun Dec 29 2013 jweberhofer@weberhofer.at - Upgrade SVN tree for opensuse 13.1+ versions * Thu Nov 14 2013 robert.munteanu@gmail.com - Update to upstream 1.6.29.7 * New features + prioritize_critical_css + PageSpeed Console + Supporting downstream caches + dedup_inlined_images + Beacon handling + Randomly drop expensive rewrites + DisableRewriteOnNoTransform * Configuration defaults updated + Default AvoidRenamingIntrospectiveJavascript to on (was off) + Default ImageInlineMaxBytes to 3072 (was 2048) + Default CssImageInlineMaxBytes to 0 (was 2048) + Default MaxInlinedPreviewImagesIndex to -1 = unlimited (was 5) + Default MinImageSizeLowResolutionBytes to 3072 (was 1024) + Default ImageRecompressionQuality to 85 (was -1 = lossless) + Default JpegRecompressionQualityForSmallScreens to 70 (was -1 = lossless) + Default WebpRecompressionQuality to 80 (was -1 = lossless) + Default WebpRecompressionQualityForSmallScreens to 70 ( was -1 = lossless) * Issues Resolved + Issue 109 Make it easy to install on cPanel EasyInstall + Issue 199 Multiple references to the same small images all get inlined + Issue 508 Large numbers get rewritten to scientific notation + Issue 644 Improve lazyload behavior + Issue 672 Disable setting more than one thread for memcached + Issue 675 rewrite_javascript breaks Wordpress /wp-admin/ pages with certain common WP plugins. + Issue 683 Don't strip Cache-Control:no-store, etc. headers + Issue 684 elide_attributes should not remove type=text as wordpress uses it in CSS + Issue 690 Add originating page URL query-param to beacon URL + Issue 700 Image height tag removed when image is embedded + Issue 707 PageSpeed lost img tag src value when too busy + Issue 709 combine_javascript will kill defer_javascript's pagespeed_no_defer attribute + Issue 712 JS Canonical Library Map is replicated per vhost and per htaccess-subdir. + Issue 719 Support random dropping of expensive rewrites + Issue 721 New default values for PSOL options + Issue 722 rewrite_css should not apply to files with an @import in the middle - Keep .svn directories in the tarball, since they are required at build time. Size increased to 82M * Mon Oct 28 2013 robert.munteanu@gmail.com - Update to upstream 1.4.26.5 * Patch-only update, no upstream changelog * Tue Sep 24 2013 draht@suse.de - remove .svn .hg directories from tarball. This reduces the size of the tarball from 385MB to 59. * Thu Aug 8 2013 robert.munteanu@gmail.com - Update to upstream 1.4.26.4 * Fix for issue 683 : Pagespeed strips cache-control:no-store, etc. headers. * Thu Jun 6 2013 robert.munteanu@gmail.com - Update to upstream 1.4.26.3 * New features - In-Place Resource Optimization - Preserve URLs - Shared Memory Metadata Cache - Client Options Header * Bug fixes - Drop no longer needed include-unistdh.patch - fixed upstream * Tue May 21 2013 robert.munteanu@gmail.com - Updated to upstream 1.3.25.4 * New features - Lossless & transparent WebP support - Embedding configuration into resource URLs - Better CDN support in MapProxyDomain - IE6/IE7 support in lazy load images - Shared memory named locks are now on by default * New Filters - convert_to_webp_lossless * Changes to configuration options - ModPagespeedAddOptionsToUrls added - 3-argument version of ModPagespeedMapProxyDomain added - ModPagespeedBeaconUrl arguments no longer required to end in ?ets= * Bug fixes - Added include-unistdh.patch to fix compilation * Thu Mar 21 2013 robert.munteanu@gmail.com - Update to upstream 1.2.24.1 * New features - Proxying and optimizing resources from trusted domains - pagespeed_no_transform attribute for images - convert_jpeg_to_progressive is now a core filter - Standalone JS Minification - Better handling of CSS - Show configuration from /mod_pagespeed_statistics * New Filters - insert_dns_prefetch - canonicalize_javascript_libraries * New configuration options - ModPagespeedCssFlattenMaxBytes - ModPagespeedForbidFilters - ModPagespeedForbidAllDisabledFilters - ModPagespeedMemcachedTimeoutUs - ModPagespeedRewriteDeadlinePerFlushMs - ModPagespeedMaxCacheableContentLength * Bug fixes * Sun Dec 16 2012 robert.munteanu@gmail.com - Update packaging to reflect simplification of cache directory structure. * Thu Dec 6 2012 robert.munteanu@gmail.com - Remove %%{_smp_mflags} to debug failures on OBS * Thu Dec 6 2012 robert.munteanu@gmail.com - Update to upstream 1.1.23.2 - New features - memcached supports - SPDY configuration support - CSS3 support - Per-Vhost statistics - Expanded default filter set - Standalone CSS parser - New filters - extend_cache_pdfs - fallback_rewrite_css_urls - pedantic - Enhanced image rewriter control - New configuration options - ModPagespeedCssFlattenMaxBytes - ModPagespeedCustomFetchHeader - <ModPagespeedIf> - ModPagespeedImageRecompressionQuality - ModPagespeedImageWebpRecompressionQuality - ModPagespeedLoadFromFileMatch - ModPagespeedMemcachedServers - ModPagespeedMemcachedThreads - ModPagespeedFileCacheInodeLimit - ModPagespeedInheritVHostConfig - ModPagespeedUsePerVHostStatistics - ModPagespeedRespectXForwardedProto - Bug fixes * Mon Oct 15 2012 idonmez@suse.com - Build depend on python-base instead of python * Fri Oct 12 2012 robert.munteanu@gmail.com - Update to upstream 1.0.22.7 - This release is functionally identical to release 0.10.22.7 * Sun Sep 30 2012 robert@localhost - Updated to upstream 0.10.22.7 - This release adds a single new pagespeed.conf option, ModPagespeedDangerPermitFetchFromUnknownHosts, which disables one of the security fixes from 0.10.22.6. * Wed Sep 12 2012 robert.munteanu@gmail.com - Updated to upstream 0.10.22.6 - Fix for CVE-2012-4001, a problem with validation of own host name - Fix for CVE-2012-4360, a cross-site scripting attack - Use license name from SPDX - Removed upstreamed fix-issue-453.patch - Removed upstreamed fix-unistd-include.patch * Tue Aug 14 2012 robert.munteanu@gmail.com - Updated to upstream 0.10.22.3 - support for Apache 2.4 - ability to flush the cache of a running server by touching a file in the cache directory - new filters - miscellaneous fixes and improvements - removed all upstreamed patches - added new patches for building with gcc 4.7.x and system opencv * Thu Apr 26 2012 robert.munteanu@gmail.com - Fix building against gcc 4.7 * Fri Apr 6 2012 robert.munteanu@gmail.com - Initial version based on 0.10.21.2