File macutils.spec of Package macutils

#
# spec file for package macutils (Version 2.0b3)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

# norootforbuild


Name:           macutils
Summary:        Used to Unpack and Translate Mac Files to a *nix
Version:        2.0b3
Release:        194
License:        Other uncritical OpenSource License
Group:          Productivity/Archiving/Compression
Source:         ftp://sunsite.unc.edu/pub/Linux/utils/compress/%{name}.tar.gz
Source1:        macutils-rpmlintrc
Patch:          macutils.diff
Patch1:         gcc4.diff
Patch2:         macutils-implicit_decl.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This program can unpack PackIt, StuffIt, Diamond, Compactor/Compact
Pro, most StuffItClassic/ StuffItDeluxe, all Zoom and LHarc/MacLHa
archives, and archives created by later versions of DiskDoubler.  Also
it can decode files created by BinHex5.0, MacBinary, UMCP, Compress It,
ShrinkToFit, MacCompress, DiskDoubler, and AutoDoubler.

Install macutils if you need to manipulate files that are commonly used
by Macintosh machines.



Authors:
--------
    dik t. winter <dik at cwi dot nl>

%prep
%setup -q -n macutils
%patch -p1 -b .misc
%patch1 -p1
%patch2

%build
%{__make} CC=gcc CF="${RPM_OPT_FLAGS} -DTYPES_H -DDIRENT_H -DTERMIOS_H -DNODOT -DAPPLEDOUBLE -fno-strict-aliasing"

%install
mkdir -p \
	%{buildroot}%{_bindir} \
	%{buildroot}%{_mandir}/man1
make DESTDIR=%{buildroot} install
chmod -x README doc/*

%clean
rm -rf "${RPM_BUILD_ROOT}"

%files
%defattr(-,root,root)
%doc README doc
%{_bindir}/*
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by