mirror of
https://github.com/darold/squidanalyzer.git
synced 2025-08-14 06:28:14 +02:00
- remove %mkrel macro (mdv specific)
- add BuildRoot macro for compatibility with RHEL - remove perl special files (perllocal.pod and packlist) not packaged
This commit is contained in:
parent
b5f0eef0f5
commit
1069670d27
@ -3,7 +3,7 @@
|
||||
Summary: Squid proxy log analyzer and report generator
|
||||
Name: squidanalyzer
|
||||
Version: 5.3
|
||||
Release: %mkrel 1
|
||||
Release: 1
|
||||
License: GPLv3
|
||||
Group: Monitoring
|
||||
URL: http://%{name}.darold.net/
|
||||
@ -11,6 +11,8 @@ Source: http://prdownloads.sourceforge.net/squid-report/%{name}-%{version}.tar.
|
||||
BuildRequires: perl
|
||||
BuildArch: noarch
|
||||
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%description
|
||||
Squid proxy native log analyzer and reports generator with full
|
||||
statistics about times, hits, bytes, users, networks, top URLs and
|
||||
@ -30,6 +32,9 @@ or more often with heavy proxy usage.
|
||||
%build
|
||||
perl Makefile.PL DESTDIR=%{buildroot} LOGFILE=%{_logdir}/squid/access.log BINDIR=%{_sbindir} HTMLDIR=%{contentdir}/html/%{name} BASEURL=/%{name} MANDIR=%{_mandir}/man3 QUIET=yes
|
||||
|
||||
# remove special files
|
||||
find %{buildroot} -name "perllocal.pod" -o -name ".packlist" |xargs -i rm -f {}
|
||||
|
||||
make
|
||||
|
||||
%install
|
||||
|
Loading…
x
Reference in New Issue
Block a user