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