1 |
%define name awstats |
2 |
%define version 7.7 |
3 |
%define release 1 |
4 |
|
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
Summary: AWStats is a free powerful and featureful server logfile analyzer. |
9 |
|
10 |
License: GPL |
11 |
Packager: Laurent Destailleur (Eldy) <eldy@users.sourceforge.net> |
12 |
Vendor: Laurent Destailleur |
13 |
|
14 |
URL: http://%{name}.sourceforge.net |
15 |
Source: %{name}-%{version}.tar.gz |
16 |
|
17 |
Group: SMEserver/addon |
18 |
|
19 |
#Patch1: smeserver-awstats |
20 |
|
21 |
BuildArch: noarch |
22 |
BuildArchitectures: noarch |
23 |
BuildRoot: /var/tmp/%{name}-%{version} |
24 |
Icon: awstats_logo1.gif |
25 |
|
26 |
BuildRequires: e-smith-devtools |
27 |
Requires: e-smith-release >= 9.2 |
28 |
#Provides: config(awstats) = 7.1-1.el6.rf |
29 |
#Provides: awstats = 7.1-1.el6.rf |
30 |
Requires: /bin/bash |
31 |
Requires: /usr/bin/perl |
32 |
#Requires: config(awstats) = 7.1-1.el6.rf |
33 |
Requires: perl >= 0:5.007 |
34 |
Requires: perl(Digest::MD5) |
35 |
Requires: perl(Encode) |
36 |
Requires: perl(Geo::IP) |
37 |
Requires: perl(LWP::UserAgent) |
38 |
Requires: perl(POSIX) |
39 |
Requires: perl(Socket) |
40 |
Requires: perl(Time::Local) |
41 |
Requires: perl(strict) |
42 |
Requires: perl(vars) |
43 |
#Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 |
44 |
#Requires: rpmlib(FileDigests) <= 4.6.0-1 |
45 |
#Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 |
46 |
#Requires: rpmlib(PayloadIsXz) <= 5.2-1 |
47 |
AutoReqProv: no |
48 |
|
49 |
%description |
50 |
AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically |
51 |
|
52 |
%changelog |
53 |
* Thu Jul 19 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 7.7-1.sme |
54 |
- New build for Koozali SME v9 from git source |
55 |
- https://github.com/eldy/awstats/commit/1c1f9dd466f684461250c8dd3a2bc4081747a761 |
56 |
|
57 |
|
58 |
%prep |
59 |
|
60 |
%setup |
61 |
#%patch1 -p1 |
62 |
|
63 |
%build |
64 |
#perl createlinks |
65 |
|
66 |
%install |
67 |
rm -rf $RPM_BUILD_ROOT |
68 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
69 |
rm -f %{name}-%{version}-filelist |
70 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
71 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
72 |
|
73 |
|
74 |
%clean |
75 |
cd .. |
76 |
rm -rf %{name}-%{version} |
77 |
|
78 |
%files -f %{name}-%{version}-filelist |
79 |
%defattr(-,root,root) |
80 |
|
81 |
%pre |
82 |
%preun |
83 |
%post |
84 |
|
85 |
echo "see https://wiki.contribs.org/AWStats" |
86 |
|
87 |
%postun |