2019-12-27 16:45:11 +08:00
|
|
|
Name: hfsplus-tools
|
|
|
|
|
Version: 540.1.linux3
|
2021-06-16 10:06:47 +08:00
|
|
|
Release: 18
|
2019-12-27 16:45:11 +08:00
|
|
|
Summary: Tools to create/check Apple HFS+ filesystems
|
|
|
|
|
License: APSL 2.0
|
|
|
|
|
URL: http://gentoo-wiki.com/HOWTO_hfsplus
|
|
|
|
|
Source0: http://cavan.codon.org.uk/~mjg59/diskdev_cmds/diskdev_cmds-%{version}.tar.gz
|
|
|
|
|
Source1: http://www.opensource.org/licenses/apsl-2.0.txt
|
|
|
|
|
Patch0: hfsplus-tools-no-blocks.patch
|
|
|
|
|
Patch1: hfsplus-tools-learn-to-stdarg.patch
|
2021-06-16 10:06:47 +08:00
|
|
|
Patch2: hfsplus-tools-sysctl.patch
|
2019-12-27 16:45:11 +08:00
|
|
|
|
2021-06-16 10:06:47 +08:00
|
|
|
BuildRequires: openssl-devel, libuuid-devel, gcc
|
2019-12-27 16:45:11 +08:00
|
|
|
Conflicts: hfsplusutils
|
|
|
|
|
|
|
|
|
|
%define _exec_prefix /
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
HFS+, HFS Plus, or Mac OS Extended are names for a file system developed by Apple Computer to replace
|
|
|
|
|
their Hierarchical File System (HFS). In addition to being the default file system on modern Apple
|
|
|
|
|
computers, HFS+ is one of two formats, FAT being the other, that are supported by the iPod hard-disk
|
|
|
|
|
based music player. Unlike FAT, HFS+ supports UNIX style file permissions, which makes it useful for
|
|
|
|
|
serving and sharing files in a secured manner.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: man files for %{name}
|
|
|
|
|
Requires: man
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
This package includes man files for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n hfsplus-mkfs-%{version} -n diskdev_cmds-%{version} -p1
|
|
|
|
|
find . -type f -name '*.[ch]' -exec chmod -c -x {} +
|
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
%make_build -f Makefile
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
install -d $RPM_BUILD_ROOT/%{_sbindir}
|
|
|
|
|
cp newfs_hfs.tproj/newfs_hfs $RPM_BUILD_ROOT/%{_sbindir}/mkfs.hfsplus
|
|
|
|
|
cp fsck_hfs.tproj/fsck_hfs $RPM_BUILD_ROOT/%{_sbindir}/fsck.hfsplus
|
|
|
|
|
|
|
|
|
|
install -d $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
|
cat fsck_hfs.tproj/fsck_hfs.8 | sed -e 's/[F|f]sck_hfs/fsck.hfsplus/g' > $RPM_BUILD_ROOT/%{_mandir}/man8/fsck.hfsplus.8
|
|
|
|
|
cat newfs_hfs.tproj/newfs_hfs.8 | sed -e 's/[N|n]ewfs_hfs/mkfs.hfsplus/g' > $RPM_BUILD_ROOT/%{_mandir}/man8/mkfs.hfsplus.8
|
|
|
|
|
|
|
|
|
|
cd $RPM_BUILD_ROOT/%{_sbindir}
|
|
|
|
|
ln -s fsck.hfsplus fsck.hfs
|
|
|
|
|
cd $RPM_BUILD_ROOT/%{_mandir}/man8
|
|
|
|
|
ln -s fsck.hfsplus.8 fsck.hfs.8
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc apsl-2.0.txt
|
|
|
|
|
%{_sbindir}/mkfs.hfsplus
|
|
|
|
|
%{_sbindir}/fsck.hfsplus
|
|
|
|
|
%{_sbindir}/fsck.hfs
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-06-16 10:06:47 +08:00
|
|
|
* Mon Jun 7 2021 baizhonggui <baizhonggui@huawei.com> - 540.1.linux3-18
|
|
|
|
|
- Fix building error: make[1]: cc: No such file or directory
|
|
|
|
|
- Add gcc in BuildRequires
|
|
|
|
|
- Add hfsplus-tools-sysctl.patch
|
|
|
|
|
|
2019-12-27 16:45:11 +08:00
|
|
|
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 540.1.linux3-17
|
|
|
|
|
- Package init
|