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