File pflogsumm.spec of Package pflogsumm
#
# spec file for package pflogsumm
#
# Copyright © 2025 Ákos Szőts <szotsaki@gmail.com>
# Copyright © 2018-08-25 Sven Uebelacker, merging pflogsumm from home:danci1973
# (1.1.5 with date patch) with home:rusjako (1.1.3)
# Copyright © 2008 Agenda OpenSystems d.o.o., Maribor, Slovenia
# Copyright © Danilo Godec <danilo.godec@agenda.si>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: pflogsumm
Version: 1.1.12
Release: 0
Summary: Log summarizer/analyzer for the Postfix MTA
License: GPL-2.0-or-later
Group: Productivity/Networking/Email/Utilities
URL: https://jimsun.linxnet.com/postfix_contrib.html
Source0: https://jimsun.linxnet.com/downloads/pflogsumm-%{version}.tar.gz
Requires: perl-base >= 5.10
Requires: perl(Date::Calc)
Requires: perl(Date::Parse)
Requires: perl(Getopt::Long)
Requires: perl(Getopt::Std)
Requires: perl(List::Util)
Requires: perl(TimeDate)
Requires: perl(locale)
Supplements: postfix >= 2.0.0
BuildArch: noarch
%description
Pflogsumm is a log analyzer/summarizer for the Postfix MTA. It
generates summaries of Postfix activity and, in some cases, detailed
reports of mail server traffic volumes, rejected and bounced email,
and server warnings, errors and panics.
%prep
%autosetup
%build
%install
install -Dm755 %{name} %{buildroot}/%{_bindir}/%{name}
install -Dm755 pffrombyto %{buildroot}/%{_bindir}/pffrombyto
install -Dm755 pftobyfrom %{buildroot}/%{_bindir}/pftobyfrom
install -Dm644 %{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1
install -Dm644 pffrombyto.1 %{buildroot}/%{_mandir}/man1/pffrombyto.1
install -Dm644 pftobyfrom.1 %{buildroot}/%{_mandir}/man1/pftobyfrom.1
install -d %{buildroot}/%{_docdir}/%{name}/
install -m644 ChangeLog pflogsumm-faq.txt %{buildroot}/%{_docdir}/%{name}/
%files
%{_bindir}/%{name}
%{_bindir}/pffrombyto
%{_bindir}/pftobyfrom
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/pffrombyto.1%{?ext_man}
%{_mandir}/man1/pftobyfrom.1%{?ext_man}
%doc ChangeLog README ToDo pflogsumm-faq.txt
%changelog