apache2-mod_maxminddb/apache2-mod_maxminddb.spec
Petr Gajdos f77916cc75 Accepting request 610116 from home:weberho:PHP56
Initial release 1.1.0
The old mod_geoip module will stop working 2019 because maxmind will no longer update the old database format.

OBS-URL: https://build.opensuse.org/request/show/610116
OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_maxminddb?expand=0&rev=1
2018-05-18 05:54:50 +00:00

69 lines
2.2 KiB
RPMSpec

#
# spec file for package apache2-mod_maxminddb
#
# Copyright (c) 2018 SUSE LINUX 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 modname mod_maxminddb
Name: apache2-mod_maxminddb
Version: 1.1.0
Release: 0
Summary: MaxMind DB Apache Module
License: Apache-2.0
Group: Productivity/Networking/Web/Servers
URL: https://maxmind.github.io/mod_maxminddb/
Source: https://github.com/maxmind/mod_maxminddb/releases/download/%{version}/mod_maxminddb-%{version}.tar.gz
Source2: %{modname}.conf
BuildRequires: apache-rpm-macros
BuildRequires: apache2-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libmaxminddb)
Requires: %{apache_mmn}
Requires: %{apache_suse_maintenance_mmn}
Requires: apache2
%description
This module allows you to query MaxMind DB files from Apache 2.2+ using the libmaxminddb library.
%prep
%setup -q -n %{modname}-%{version}
# This config file is used for loading the module without
# enabling any databases which are not available on OBS
echo "MaxMindDBEnable On" > test-enable-module.conf
%build
%configure
make %{?_smp_mflags}
%check
set +x
%apache_test_module_load -m maxminddb -i test-enable-module.conf
set -x
%install
mkdir -p %{buildroot}/%{apache_libexecdir}
cp -p src/.libs/%{modname}.so %{buildroot}/%{apache_libexecdir}
mkdir -p %{buildroot}/%{apache_sysconfdir}/conf.d
cp %{SOURCE2} %{buildroot}/%{apache_sysconfdir}/conf.d
%files
%doc Changes.md README.md
%license LICENSE
%{apache_libexecdir}/%{modname}.so
%config(noreplace) %{apache_sysconfdir}/conf.d/%{modname}.conf
%changelog