Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
2.4
:
Modules
>
apache2-mod_pagespeed
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
apache2-mod_pagespeed.spec
@@ -25,6 +25,26 @@ %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 @@ -34,7 +54,7 @@ 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: apache-rpm-macros BuildRequires: bzip2 BuildRequires: gcc-c++ BuildRequires: gperf @@ -45,8 +65,13 @@ 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