Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37559316
en ru br
Репозитории ALT

Группа :: Архивирование/Сжатие
Пакет: hfsutils

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

%global optflags_lto %optflags_lto -ffat-lto-objects

Summary: Tools for reading and writing Macintosh HFS volumes
Name: hfsutils
Version: 3.2.6
Release: alt2
License: GPLv2+
Group: Archiving/Compression
Source: ftp://ftp.mars.org/pub/hfs/%name-%version.tar.gz
Patch0: hfsutils-3.2.6-errno.patch
Patch1: hfsutils-3.2.6-largefile.patch
Url: http://www.mars.org/home/rob/proj/hfs/
# Automatically added by buildreq on Thu Feb 20 2020
# optimized out: fontconfig glibc-kernheaders-generic glibc-kernheaders-x86 libX11-devel python2-base sh4 tcl-devel xorg-proto-devel
BuildRequires: tk-devel

BuildRequires: libXft-devel tcl-devel tk-devel gcc

%package devel
Summary: A C library for reading and writing Macintosh HFS volumes
Provides: %name-static = %EVR
Group: Development/C

%package x11
Summary: A Tk-based front end for browsing and copying files
Group: Archiving/Compression

%description
HFS (Hierarchical File System) is the native volume format found on
modern Macintosh computers.  Hfsutils provides utilities for accessing
HFS volumes from Linux and UNIX systems.  Hfsutils contains several
command-line programs which are comparable to mtools.

%description -n hfsutils-devel
The hfsutils-devel package provides a C library for low-level access
to Macintosh volumes. HFS (Hierarchical File System) is the native
volume format found on modern Macintosh computers.  The C library can
be linked with other programs to allow them to manipulate Macintosh
files in their native format.  Other HFS accessing utilities, which
are comparable to mtools, are included in the hfsutils package.

%description -n hfsutils-x11
The hfsutils-x11 package includes a Tk-based front end for browsing
and copying files, and a Tcl package and interface for scriptable access
to volumes.  A C library for low-level access to volumes is included in the
hfsutils-devel package.

%prep
%setup
%patch0 -p1
%patch1 -p1

%build
CFLAGS="%optflags -D_FILE_OFFSET_BITS=64 -DUSE_INTERP_RESULT"
%configure --with-tcl=%_libdir  --with-tk=%_libdir
make
make hfsck/hfsck

%install
mkdir -p $RPM_BUILD_ROOT%_bindir
mkdir -p $RPM_BUILD_ROOT%_mandir/man1
mkdir -p $RPM_BUILD_ROOT%_includedir
mkdir -p $RPM_BUILD_ROOT%_libdir
make BINDEST=$RPM_BUILD_ROOT%_bindir \
LIBDEST=$RPM_BUILD_ROOT%_libdir \
INCDEST=$RPM_BUILD_ROOT%_includedir \
MANDEST=$RPM_BUILD_ROOT%_mandir \
INSTALL="install -p" \
install install_lib
install -p -m 0755 hfsck/hfsck $RPM_BUILD_ROOT/%_bindir
ln -sf hfsck $RPM_BUILD_ROOT/%_bindir/fsck.hfs

%files
%doc CHANGES CREDITS README TODO
%_bindir/hattrib
%_bindir/hcd
%_bindir/hcopy
%_bindir/hdel
%_bindir/hdir
%_bindir/hformat
%_bindir/hfs
%_bindir/hfssh
%_bindir/hls
%_bindir/hmkdir
%_bindir/hmount
%_bindir/hpwd
%_bindir/hrename
%_bindir/hrmdir
%_bindir/humount
%_bindir/hvol
%_bindir/hfsck
%_bindir/fsck.hfs
%_mandir/man1/hattrib.1.*
%_mandir/man1/hcd.1.*
%_mandir/man1/hcopy.1.*
%_mandir/man1/hdel.1.*
%_mandir/man1/hdir.1.*
%_mandir/man1/hformat.1.*
%_mandir/man1/hfs.1.*
%_mandir/man1/hfssh.1.*
%_mandir/man1/hfsutils.1.*
%_mandir/man1/hls.1.*
%_mandir/man1/hmkdir.1.*
%_mandir/man1/hmount.1.*
%_mandir/man1/hpwd.1.*
%_mandir/man1/hrename.1.*
%_mandir/man1/hrmdir.1.*
%_mandir/man1/humount.1.*
%_mandir/man1/hvol.1.*

%files -n hfsutils-x11
%_bindir/xhfs
%_mandir/man1/xhfs.1.*

%files -n hfsutils-devel
%_libdir/libhfs.a
%_libdir/librsrc.a
%_includedir/hfs.h
%_includedir/rsrc.h

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin