1 |
%define name awstats |
2 |
%define version 7.7 |
3 |
%define release 3 |
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 |
* Tue Nov 03 2020 Brian Read <brianr@bjsystems.co.uk> 7.7-3.sme |
54 |
- Initial import to SME10 [SME: 11045] |
55 |
|
56 |
* Mon Dec 17 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 7.7-2.sme |
57 |
- attempt to fix import/build errors |
58 |
- update to latest git https://github.com/eldy/awstats/commit/0dd9142dcd16c74648979d84750ce6aaade5a09c |
59 |
|
60 |
* Thu Jul 19 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 7.7-1.sme |
61 |
- New build for Koozali SME v9 from git source |
62 |
- https://github.com/eldy/awstats/commit/1c1f9dd466f684461250c8dd3a2bc4081747a761 |
63 |
|
64 |
|
65 |
%prep |
66 |
|
67 |
%setup |
68 |
#%patch1 -p1 |
69 |
|
70 |
%build |
71 |
#perl createlinks |
72 |
|
73 |
%install |
74 |
rm -rf $RPM_BUILD_ROOT |
75 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
76 |
rm -f %{name}-%{version}-filelist |
77 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
78 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
79 |
|
80 |
|
81 |
%clean |
82 |
cd .. |
83 |
rm -rf %{name}-%{version} |
84 |
|
85 |
%files -f %{name}-%{version}-filelist |
86 |
%defattr(-,root,root) |
87 |
|
88 |
%pre |
89 |
%preun |
90 |
%post |
91 |
|
92 |
echo "see https://wiki.contribs.org/AWStats" |
93 |
|
94 |
%postun |