File MHonArc.spec of Package MHonArc
#
# spec file for package MHonArc
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2010 Andreas Schneider
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: MHonArc
Version: 2.6.19
Release: 0
Summary: An e-mail-to-HTML converter
License: GPL-2.0-or-later
Group: Productivity/Networking/Email/Mailinglists
URL: https://www.mhonarc.org/
Source: http://www.mhonarc.org/release/MHonArc/tar/%{name}-%{version}.tar.bz2
Patch0: MHonArc-2.6.19-fix-perl.patch
BuildArch: noarch
%if 0%{?suse_version} >= 01120
Requires: perl(Fcntl)
Requires: perl(File::Basename)
Requires: perl(Getopt::Long)
Requires: perl(Symbol)
Requires: perl(Time::Local)
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
MHonArc is a Perl program for converting mail or news messages into
HTML archives. It can also be used to convert individual messages
into HTML documents. Other capabilities include robust MIME support
and powerful user customization features.
%prep
%autosetup -p1
%build
%install
perl install.me -batch -nodoc \
-root %{buildroot} \
-perl "%{_bindir}/perl" \
-libpath %{_datadir}/%{name} \
-binpath %{_bindir} \
-manpath %{_mandir}
perl -pi -e \
"s|%{buildroot}\b||g ; s|%{_prefix}/local/bin/perl\b|%{_bindir}/perl|g" \
%{buildroot}%{_bindir}/* examples/mha*
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc ACKNOWLG CHANGES README.txt RELNOTES
%license COPYING
%doc doc/ examples/ logo/
%{_bindir}/mhonarc
%{_bindir}/mha-dbedit
%{_bindir}/mha-dbrecover
%{_bindir}/mha-decode
%{_datadir}/%{name}
%{_mandir}/man1/mhonarc.1%{?ext_man}
%{_mandir}/man1/mha-dbedit.1%{?ext_man}
%{_mandir}/man1/mha-dbrecover.1%{?ext_man}
%{_mandir}/man1/mha-decode.1%{?ext_man}
%changelog