nmh/nmh.spec
Dirk Mueller f2da48f1be Accepting request 1179635 from home:dimstar:Factory
- Update nmh.keyring, basedon key published on savanna:
  gpg: Signature made Sa 18 Feb 2023 15:58:05 CET
  gpg:        using EDDSA key CF8FA47FD50BCC46CE4933D0F9DCD55451BEEF5A
  gpg: Good signature from "David Levine <levinedl@acm.org>" [unknown]

OBS-URL: https://build.opensuse.org/request/show/1179635
OBS-URL: https://build.opensuse.org/package/show/server:mail/nmh?expand=0&rev=13
2024-06-11 07:46:54 +00:00

79 lines
2.5 KiB
RPMSpec

#
# spec file for package nmh
#
# Copyright (c) 2024 SUSE LLC
#
# 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: nmh
BuildRequires: gdbm-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: postfix
Requires: less
Requires: smtp_daemon
Provides: mh
Obsoletes: mh <= 6.8.4
Version: 1.8
Release: 0
Summary: Unix Mail Handler
License: BSD-3-Clause
Group: Productivity/Networking/Email/Clients
URL: https://www.nongnu.org/nmh/
Source0: https://download.savannah.nongnu.org/releases/nmh/%{name}-%{version}.tar.gz
Source1: https://download.savannah.nongnu.org/releases/nmh/%{name}-%{version}.tar.gz.sig
Source2: %{name}.keyring
# PATCH-FIX-UPSTREAM bmwiedemann https://savannah.nongnu.org/support/?109535
Patch0: reproducible.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
nmh (new MH) is a powerful electronic mail handling system. It was
originally based on version 6.8.3 of the MH message system developed by
the RAND Corporation and the University of California. It is intended
to be a (mostly) compatible drop-in replacement for MH.
nmh consists of a collection of fairly simple single-purpose programs
to send, receive, save, retrieve, and manipulate e-mail messages.
Because nmh is a suite rather than a single monolithic program, you may
freely intersperse nmh commands with other commands at your shell
prompt or write custom scripts that use these commands in flexible
ways.
%prep
%autosetup -p0
%build
export HOSTNAME=OBS # for boo#1084909
%configure --libdir=%{_libexecdir}/%name \
--docdir=%_defaultdocdir/%name \
--sysconfdir=%{_sysconfdir}/nmh \
--enable-pop \
--with-pager=/usr/bin/less
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%files
%defattr(-,root,root)
%{_bindir}/*
%{_libexecdir}/%name
%dir %{_sysconfdir}/nmh
%config %{_sysconfdir}/nmh/*
%{_mandir}/man*/*
%_defaultdocdir/%name
%changelog