File mpack.spec of Package mpack

#
# spec file for package mpack
#
# Copyright (c) 2021 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:           mpack
Version:        1.6
Release:        0
Summary:        Pack/Unpack messages in MIME format
License:        CMU
Group:          Productivity/Networking/Email/Utilities
# original source is http://andrews.freeshell.org/urldec.tar
URL:            ftp://ftp.andrew.cmu.edu:pub/mpack/
Source:         %{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}.diff
Patch1:         %{name}-compile_fixes.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  make

%description
Mpack and munpack are utilities for encoding and decoding
(respectively) binary files in MIME (Multipurpose Internet Mail
Extensions) format mail messages.  For compatibility with older forms
of transferring binary files, the munpack program can also decode
messages in split-uuencoded format.  The Macintosh version can also
decode messages in split-BinHex format.

This MIME implementation is intended to be as simple and portable as
possible.  For a more sophisticated MIME implementation, MetaMail.

%prep
%autosetup -p1
autoupdate -f
autoreconf -f -i
./configure --prefix=%{_prefix} --mandir=%{_mandir}

%build
CFLAGS="%{optflags}" make

%install
%make_install

%files
%{_bindir}/m*pack
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by