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

Annotation of /rpms/mod_maxminddb/contribs9/mod_maxminddb.spec

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


Revision 1.2 - (hide annotations) (download)
Wed Mar 13 02:03:48 2019 UTC (5 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: mod_maxminddb-1_1_0-1_el6_sme, HEAD
Changes since 1.1: +10 -7 lines
* Tue Mar 12 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-1.sme
- first build for SME Server [SME: 10759]

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

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