/[smecontribs]/rpms/mod_maxminddb/contribs9/mod_maxminddb.spec
ViewVC logotype

Contents of /rpms/mod_maxminddb/contribs9/mod_maxminddb.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Mar 12 22:12:24 2019 UTC (5 years, 8 months ago) by jpp
Branch: MAIN
*** empty log message ***

1 Packager: rhykw
2 Name: mod_maxminddb
3 Version: 1.1.0
4 Release: 1%{?dist}
5 Summary: MaxMind DB Apache Module
6
7 Group: System Environment/Daemons
8 License: Apache License, Version 2.0
9 URL: http://dev.maxmind.com/
10 Source0: https://github.com/maxmind/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
11 Source1: https://raw.githubusercontent.com/rhykw/my-packages/master/centos/6/x86_64/SOURCES/mod_maxminddb-maxminddb.conf
12 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
13
14 BuildRequires: libmaxminddb-devel , httpd-devel
15 Requires: libmaxminddb , httpd
16
17 %description
18 This module allows you to query MaxMind DB files from Apache 2.2+ using the libmaxminddb library.
19
20 %prep
21 %setup -q
22
23
24 %build
25 %configure
26 make %{?_smp_mflags}
27 mv src/.libs/%{name}.so .
28 %{__strip} -g %{name}.so
29
30
31 %install
32 rm -rf %{buildroot}
33 mkdir -p %{buildroot}%{_libdir}/httpd/modules
34 install -m755 %{name}.so %{buildroot}%{_libdir}/httpd/modules
35
36 # Install the config file
37 mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
38 install -m 644 %{SOURCE1} \
39 %{buildroot}%{_sysconfdir}/httpd/conf.d/maxminddb.conf
40
41
42 %clean
43 rm -rf %{buildroot}
44
45
46 %files
47 %defattr(644,root,root,755)
48 %doc Changes.md LICENSE README.md
49 %attr(755,root,root)%{_libdir}/httpd/modules/*.so
50 %config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf
51
52
53 %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
54 %changelog
55 * %{date} rhywk <github@rhykw.net>
56 This is a test build.
57

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed