File ripmime.spec of Package ripmime

#
# spec file for package ripmime
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2008 Exata T.I., Maringa, PR, Brasil.
#
# 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 http://bugs.opensuse.org/
#


Name:           ripmime
Version:        1.4.0.10
Release:        0
Summary:        Extract attached files out of a MIME package
License:        BSD-3-Clause
Group:          Productivity/Networking/Other
Url:            http://www.pldaniels.com/ripmime
Source0:        http://www.pldaniels.com/ripmime/%{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
Obsoletes:      %{name}-toaster < %{version}
Provides:       %{name}-toaster = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
ripMIME has a single sole pupose, to extract the attached files out of a
MIME package.

Author:
--------
    Paul L Daniels

%prep
%setup -q

%build
%{__make} %{?jobs:-j%jobs} CFLAGS="%{optflags}"

%install
# install directories
#------------------------------------------------------------------------------------
%{__install} -d %{buildroot}%{_bindir}
%{__install} -d %{buildroot}%{_mandir}/man1

# install files
#------------------------------------------------------------------------------------
%{__install} -m 755 %{name} %{buildroot}%{_bindir}
%{__install} -m 644 %{name}.1 %{buildroot}%{_mandir}/man1

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc CHANGELOG CONTRIBUTORS INSTALL LICENSE README TODO
%attr(0755,root,root) %{_bindir}/ripmime
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by