1 |
%define name smeserver-xt_geoip |
2 |
%define version 1.0.1 |
3 |
%define release 04 |
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 |
* Sun Oct 29 2017 Michel Begue <mab974@gmail.com> |
27 |
- bug in crontab update job, |
28 |
- [1.0.1-4] |
29 |
|
30 |
* Mon Oct 16 2017 Michel Begue <mab974@gmail.com> |
31 |
- new message : inactive GeoIP, |
32 |
- value of country code added in message "country not found", |
33 |
- [1.0.1-3] |
34 |
|
35 |
* Sat Oct 08 2017 Michel Begue <mab974@gmail.com> |
36 |
- test kernel module presence in "/lib/modules/weak-updates" directory |
37 |
- [1.0.1-2] |
38 |
|
39 |
* Wed Sep 20 2017 Michel Begue <mab974@gmail.com> |
40 |
- panel added in server manager |
41 |
- [1.0.1-1] |
42 |
|
43 |
* Tue Sep 12 2017 Michel Begue <mab974@gmail.com> |
44 |
- initial release |
45 |
- [1.0.0-1] |
46 |
- xtables-addons v1.47.1 (v1.x required for kernel 2.6.32) |
47 |
|
48 |
%prep |
49 |
|
50 |
%setup |
51 |
%patch0 -p1 |
52 |
%patch1 -p1 |
53 |
%patch2 -p1 |
54 |
|
55 |
%build |
56 |
perl createlinks |
57 |
|
58 |
|
59 |
%install |
60 |
rm -rf $RPM_BUILD_ROOT |
61 |
|
62 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
63 |
rm -f %{name}-%{version}-filelist |
64 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
65 |
> %{name}-%{version}-filelist |
66 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
67 |
|
68 |
%clean |
69 |
cd .. |
70 |
rm -rf %{name}-%{version} |
71 |
|
72 |
%pre |
73 |
%preun |
74 |
|
75 |
%post |
76 |
|
77 |
%postun |
78 |
|
79 |
%files -f %{name}-%{version}-filelist |
80 |
%defattr(-,root,root) |
81 |
|