- 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:
Jonathan Gibert 2014-02-14 15:14:15 +01:00 committed by Jonathan Gibert
parent b5f0eef0f5
commit 1069670d27

View File

@ -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