File stuffit.spec of Package stuffit

#
# spec file for package stuffit
#
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
#
# 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:           stuffit
Version:        5.2.0.611
Release:        0
Group:          Productivity/Archiving/Compression
Summary:        Stuffit Archive Creator and Expander
License:        NonFree
URL:            https://stuffit.com/
Source:         http://my.smithmicro.com/downloads/files/stuffit520.611linux-i386.tar.gz
BuildRequires:  fdupes
ExclusiveArch:  %{ix86} x86_64

%description
Aladdin Software's StuffIt and StuffIt Expander.

Note:
StuffIt requires registration within 30 days but StuffIt Expander
is freeware.
The registration program is named '%{_bindir}/register-StuffIt'.

%prep
%setup -q -c
mv doc/stuff/LICENSE stuff.LICENSE
mv doc/unstuff/LICENSE unstuff.LICENSE
mv doc/stuff/README stuff.README
mv doc/unstuff/README unstuff.README

%build

%install
install -d %{buildroot}%{_bindir}
install -pm 0755 bin/stuff %{buildroot}%{_bindir}/stuff
install -pm 0755 bin/unstuff %{buildroot}%{_bindir}/unstuff
install -pm 0755 bin/register %{buildroot}%{_bindir}/register-StuffIt
install -d %{buildroot}%{_mandir}/man1
install -pm 0644 man/man1/stuff.1 %{buildroot}%{_mandir}/man1/stuff.1
install -pm 0644 man/man1/stuff.1 %{buildroot}%{_mandir}/man1/unstuff.1
%fdupes %{buildroot}%{_mandir}

%files
%license stuff.LICENSE unstuff.LICENSE 
%doc stuff.README unstuff.README doc/stuff/stuff.html doc/unstuff/unstuff.html
%{_bindir}/stuff
%{_bindir}/unstuff
%{_bindir}/register-StuffIt
%{_mandir}/man1/stuff.1%{?ext_man}
%{_mandir}/man1/unstuff.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by