1 |
%define name smeserver-xt_geoip |
2 |
%define version 1.0.1 |
3 |
%define release 5 |
4 |
Summary: smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GNU GPL version 2 |
9 |
URL: http://wiki.contribs.org/Main_Page |
10 |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
12 |
Patch0: smeserver-xt_geoip-1.0.1-2-weakupd.patch |
13 |
Patch1: smeserver-xt_geoip-1.0.1-3-messag.patch |
14 |
Patch2: smeserver-xt_geoip-1.0.1-4-crontab.patch |
15 |
BuildArchitectures: noarch |
16 |
BuildRoot: /var/tmp/%{name}-%{version} |
17 |
BuildRequires: e-smith-devtools |
18 |
Requires: e-smith-release >= 9.0 |
19 |
Requires: xtables-addons = 1.47.1 |
20 |
AutoReqProv: no |
21 |
|
22 |
%description |
23 |
smserver rpm to setup database, update and configuration for xt_geoip module with a panel. |
24 |
|
25 |
%changelog |
26 |
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.1-5.sme |
27 |
- first import to SME buildsys |
28 |
|
29 |
* Sun Oct 29 2017 Michel Begue <mab974@gmail.com> |
30 |
- bug in crontab update job, |
31 |
- [1.0.1-4] |
32 |
|
33 |
* Mon Oct 16 2017 Michel Begue <mab974@gmail.com> |
34 |
- new message : inactive GeoIP, |
35 |
- value of country code added in message "country not found", |
36 |
- [1.0.1-3] |
37 |
|
38 |
* Sat Oct 08 2017 Michel Begue <mab974@gmail.com> |
39 |
- test kernel module presence in "/lib/modules/weak-updates" directory |
40 |
- [1.0.1-2] |
41 |
|
42 |
* Wed Sep 20 2017 Michel Begue <mab974@gmail.com> |
43 |
- panel added in server manager |
44 |
- [1.0.1-1] |
45 |
|
46 |
* Tue Sep 12 2017 Michel Begue <mab974@gmail.com> |
47 |
- initial release |
48 |
- [1.0.0-1] |
49 |
- xtables-addons v1.47.1 (v1.x required for kernel 2.6.32) |
50 |
|
51 |
%prep |
52 |
|
53 |
%setup |
54 |
%patch0 -p1 |
55 |
%patch1 -p1 |
56 |
%patch2 -p1 |
57 |
|
58 |
%build |
59 |
perl createlinks |
60 |
|
61 |
|
62 |
%install |
63 |
rm -rf $RPM_BUILD_ROOT |
64 |
|
65 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
66 |
rm -f %{name}-%{version}-filelist |
67 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
68 |
> %{name}-%{version}-filelist |
69 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
70 |
|
71 |
%clean |
72 |
cd .. |
73 |
rm -rf %{name}-%{version} |
74 |
|
75 |
%pre |
76 |
%preun |
77 |
|
78 |
%post |
79 |
|
80 |
%postun |
81 |
|
82 |
%files -f %{name}-%{version}-filelist |
83 |
%defattr(-,root,root) |
84 |
|