forked from pool/apache2-mod_maxminddb
Accepting request 735647 from home:weberho:branches:Apache:Modules
- Added autoreconf to allow building on factory version - Added apache2-mod_maxminddb-build.patch to make it buildable on opensuse fatory again. Does not build with LDFLAGS="-flto=8" OBS-URL: https://build.opensuse.org/request/show/735647 OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_maxminddb?expand=0&rev=3
This commit is contained in:
parent
f2b281f62c
commit
5673cb86c2
12
apache2-mod_maxminddb-build.patch
Normal file
12
apache2-mod_maxminddb-build.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -ur mod_maxminddb-1.1.0-orig/src/Makefile.am mod_maxminddb-1.1.0/src/Makefile.am
|
||||||
|
--- mod_maxminddb-1.1.0-orig/src/Makefile.am 2014-11-18 00:00:15.000000000 +0100
|
||||||
|
+++ mod_maxminddb-1.1.0/src/Makefile.am 2019-10-07 11:29:38.515732542 +0200
|
||||||
|
@@ -6,7 +6,7 @@
|
||||||
|
|
||||||
|
# compile the DSO file
|
||||||
|
module: mod_maxminddb.c $(TARGET)
|
||||||
|
- $(APXS) -c $(LDFLAGS) $(LIBMAXMINDDB_LDFLAGS) $(LIBS) $(WC) $(APXS_LDFLAGS) mod_maxminddb.c
|
||||||
|
+ $(APXS) -c $(LIBMAXMINDDB_LDFLAGS) $(LIBS) $(WC) $(APXS_LDFLAGS) mod_maxminddb.c
|
||||||
|
|
||||||
|
install-exec-local: module
|
||||||
|
$(APXS) -i -a -n maxminddb .libs/mod_maxminddb.so
|
@ -1,4 +1,10 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 7 09:44:02 UTC 2019 - Johannes Weberhofer <jweberhofer@weberhofer.at>
|
||||||
|
|
||||||
|
- Added autoreconf to allow building on factory version
|
||||||
|
- Added apache2-mod_maxminddb-build.patch to make it buildable on opensuse fatory again.
|
||||||
|
Does not build with LDFLAGS="-flto=8"
|
||||||
|
-------------------------------------------------------------------
|
||||||
Thu May 17 14:11:14 UTC 2018 - jweberhofer@weberhofer.at
|
Thu May 17 14:11:14 UTC 2018 - jweberhofer@weberhofer.at
|
||||||
|
|
||||||
- Initial release 1.1.0
|
- Initial release 1.1.0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package apache2-mod_maxminddb
|
# spec file for package apache2-mod_maxminddb
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -26,8 +26,11 @@ Group: Productivity/Networking/Web/Servers
|
|||||||
URL: https://maxmind.github.io/mod_maxminddb/
|
URL: https://maxmind.github.io/mod_maxminddb/
|
||||||
Source: https://github.com/maxmind/mod_maxminddb/releases/download/%{version}/mod_maxminddb-%{version}.tar.gz
|
Source: https://github.com/maxmind/mod_maxminddb/releases/download/%{version}/mod_maxminddb-%{version}.tar.gz
|
||||||
Source2: %{modname}.conf
|
Source2: %{modname}.conf
|
||||||
|
# PATCH-FIX-OPENSUSE apache2-mod_maxminddb-build.patch -- Fix built on factory versions
|
||||||
|
Patch1: apache2-mod_maxminddb-build.patch
|
||||||
BuildRequires: apache-rpm-macros
|
BuildRequires: apache-rpm-macros
|
||||||
BuildRequires: apache2-devel
|
BuildRequires: apache2-devel
|
||||||
|
BuildRequires: automake
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(libmaxminddb)
|
BuildRequires: pkgconfig(libmaxminddb)
|
||||||
Requires: %{apache_mmn}
|
Requires: %{apache_mmn}
|
||||||
@ -39,11 +42,13 @@ This module allows you to query MaxMind DB files from Apache 2.2+ using the libm
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
|
%patch1 -p1
|
||||||
# This config file is used for loading the module without
|
# This config file is used for loading the module without
|
||||||
# enabling any databases which are not available on OBS
|
# enabling any databases which are not available on OBS
|
||||||
echo "MaxMindDBEnable On" > test-enable-module.conf
|
echo "MaxMindDBEnable On" > test-enable-module.conf
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
autoreconf
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user