File macutils.spec of Package macutils

#
# spec file for package macutils (Version 2.0b3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# 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:        153
License:        Other uncritical OpenSource License
Group:          Productivity/Archiving/Compression
Source:         ftp://sunsite.unc.edu/pub/Linux/utils/compress/%{name}.tar.gz
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
%patch0 -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
* Sat Mar 15 2008 crrodriguez@suse.de
- fix build
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Sep 23 2005 ro@suse.de
- fix some implicit declarations
* Wed Apr 27 2005 lmuelle@suse.de
- Add fix to allow compile with gcc 4.
* Wed May 19 2004 ro@suse.de
- fix some compiler warnings by adding includes
- added -fno-strict-aliasing (needed for dia.c)
* Thu Nov 06 2003 lmuelle@suse.de
- initial package for SUSE LINUX
openSUSE Build Service is sponsored by