LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File hfsutils.spec of Package hfsutils (Project openSUSE:Factory)

#
# spec file for package hfsutils
#
# Copyright (c) 2011 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/
#

Name:           hfsutils
BuildRequires:  automake
BuildRequires:  tk-devel
BuildRequires:  xorg-x11-devel
License:        GPL-2.0+
Group:          System/Filesystems
Version:        3.2.6
Release:        0
Summary:        Tools Used for the Macintosh's Hierarchical File System
Url:            http://www.mars.org/home/rob/proj/hfs/
Source:         hfsutils-%{version}.tar.bz2
Patch:          hfsutils-%{version}.dif
Patch1:         hfsutils-%{version}-ia64.dif
Patch2:         hfsutils-%{version}-seek.dif
Patch3:         hfsutils-%{version}-conf.dif
Patch4:         hfsutils-%{version}-errno.dif
Patch5:         hfsutils-exclusive-open.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
HFS is the Hierarchical File System used on modern Macintosh computers.
With this package, you can read and write Macintosh-formatted media,
such as floppy disks, CD-ROMs, and SCSI hard disks on most UNIX
platforms. You can also format raw media into an HFS volume.



Authors:
--------
    Robert Leslie <rob@mars.org>

%package -n xhfsutil
Version:        3.2.6
Release:        0
Summary:        Tcl/Tk Front-End for hfsutils
Requires:       hfsutils

%description -n xhfsutil
A Tcl interface for scriptable access to volumes and  Tk-based
front-end for browsing and copying files through a variety of transfer
modes (MacBinary, BinHex, text, etc.) for hfsutils.



Authors:
--------
    Robert Leslie <rob@mars.org>

%prep
%setup
%patch
%patch1
%patch2
%patch3
%patch4
%patch5 -p1

%build
%{suse_update_config -f}
autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" \
./configure --prefix=/usr --mandir=%{_mandir} \
	    --with-tcl=%{_libdir} --with-tk=%{_libdir}
make

%install
rm -rf $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT/usr/bin
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README TODO CHANGES BLURB COPYING COPYRIGHT CREDITS
/usr/bin/hattrib
/usr/bin/hcd
/usr/bin/hcopy
/usr/bin/hdel
/usr/bin/hdir
/usr/bin/hformat
/usr/bin/hls
/usr/bin/hmkdir
/usr/bin/hmount
/usr/bin/hpwd
/usr/bin/hrename
/usr/bin/hrmdir
/usr/bin/humount
/usr/bin/hvol
%doc %{_mandir}/man1/hattrib.1.gz
%doc %{_mandir}/man1/hcd.1.gz
%doc %{_mandir}/man1/hcopy.1.gz
%doc %{_mandir}/man1/hdel.1.gz
%doc %{_mandir}/man1/hdir.1.gz
%doc %{_mandir}/man1/hformat.1.gz
%doc %{_mandir}/man1/hls.1.gz
%doc %{_mandir}/man1/hmkdir.1.gz
%doc %{_mandir}/man1/hmount.1.gz
%doc %{_mandir}/man1/hpwd.1.gz
%doc %{_mandir}/man1/hrename.1.gz
%doc %{_mandir}/man1/hrmdir.1.gz
%doc %{_mandir}/man1/humount.1.gz
%doc %{_mandir}/man1/hvol.1.gz
%doc %{_mandir}/man1/hfsutils.1.gz

%files -n xhfsutil
%defattr(-,root,root)
/usr/bin/hfssh
/usr/bin/hfs
/usr/bin/xhfs
%doc %{_mandir}/man1/hfssh.1.gz
%doc %{_mandir}/man1/hfs.1.gz
%doc %{_mandir}/man1/xhfs.1.gz

%changelog