1 |
%define name smeserver-xt_geoip |
2 |
%define version 1.3.1 |
3 |
%define release 02 |
4 |
|
5 |
Summary: smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
6 |
Name: %{name} |
7 |
Version: %{version} |
8 |
Release: %{release}%{?dist} |
9 |
License: GNU GPL version 2 |
10 |
URL: http://wiki.contribs.org/Main_Page |
11 |
Group: SMEserver/addon |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: %{name}-%{version}-comp_e-smith-manager.patch |
14 |
|
15 |
BuildArchitectures: noarch |
16 |
BuildRoot: /var/tmp/%{name}-%{version} |
17 |
BuildRequires: e-smith-devtools |
18 |
Requires: e-smith-release >= 10.0 |
19 |
Requires: server-manager >= 0.1.0-23 |
20 |
Requires: xtables-addons = 2.14 |
21 |
Requires: GeoIP = 1.5.0 |
22 |
Requires: libmaxminddb >= 1.1.1 |
23 |
Requires: libmaxminddb-devel >= 1.1.1 |
24 |
Requires: geolite2-country |
25 |
Requires: geolite2-city |
26 |
AutoReqProv: no |
27 |
|
28 |
%description |
29 |
smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
30 |
|
31 |
%changelog |
32 |
* Wed Jan 06 2021 Michel Begue <mab974@gmail.com> 1.3.1-02.sme |
33 |
- Back to compatibility with e-smith-manager |
34 |
- (s)qpsmtpd replace (s)smtpd (services) |
35 |
|
36 |
* Fri Jul 31 2020 Michel Begue <mab974@gmail.com> 1.3.1-01.sme |
37 |
- initial release for smeserver-manager (sme10) |
38 |
- [1.0.1-26 sme9] |
39 |
- xtables-addons v2.14 |
40 |
|
41 |
%prep |
42 |
|
43 |
%setup |
44 |
%patch0 -p1 |
45 |
|
46 |
%build |
47 |
perl createlinks |
48 |
|
49 |
|
50 |
%install |
51 |
rm -rf $RPM_BUILD_ROOT |
52 |
|
53 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
54 |
rm -f %{name}-%{version}-filelist |
55 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT | egrep -v "usr/share/xt_geoip/geoip_" \ |
56 |
> %{name}-%{version}-filelist |
57 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
58 |
|
59 |
%clean |
60 |
cd .. |
61 |
rm -rf %{name}-%{version} |
62 |
|
63 |
%pre |
64 |
%preun |
65 |
|
66 |
%post |
67 |
|
68 |
%postun |
69 |
|
70 |
%files -f %{name}-%{version}-filelist |
71 |
%defattr(-,root,root) |
72 |
|
73 |
%files |
74 |
%attr(0755, root, root) /usr/share/xt_geoip/geoip_* |
75 |
%attr(0750, root, root) /usr/share/xt_geoip/xt_geoip_dl |
76 |
%attr(0750, root, root) /usr/share/xt_geoip/update_base |