]> git.pld-linux.org Git - packages/hfsplus-tools.git/blob - hfsplus-tools.spec
new, version 540.1.linux3
[packages/hfsplus-tools.git] / hfsplus-tools.spec
1 Summary:        Tools to create/check Apple HFS+ filesystems
2 Name:           hfsplus-tools
3 Version:        540.1.linux3
4 Release:        0.1
5 License:        APSL 2.0
6 Group:          Base
7 Source0:        http://cavan.codon.org.uk/~mjg59/diskdev_cmds/diskdev_cmds-%{version}.tar.gz
8 # Source0-md5:  0435afc389b919027b69616ad1b05709
9 URL:            http://gentoo-wiki.com/HOWTO_hfsplus
10 BuildRequires:  clang
11 BuildRequires:  libuuid-devel
12 BuildRequires:  openssl-devel
13 # those tools are outdated, given the rebuilt mkfs/fsck.hfsplus in this
14 # package.  However, I don't want to Obsolete that package yet, as some people
15 # may have a valid use for it on their systems.
16 Conflicts:      hfsplusutils
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 # we want this to end up with the other mkfs.*'s, in /sbin
20 %define         _exec_prefix    /
21
22 %description
23 HFS+, HFS Plus, or Mac OS Extended are names for a file system
24 developed by Apple Computer to replace their Hierarchical File System
25 (HFS). In addition to being the default file system on modern Apple
26 computers, HFS+ is one of two formats, FAT being the other, that are
27 supported by the iPod hard-disk based music player. Unlike FAT, HFS+
28 supports UNIX style file permissions, which makes it useful, for
29 serving and sharing files in a secured manner. As Apple Computer's
30 devices and systems become increasingly ubiquitous, it becomes
31 important that Linux fully support this format. This package provides
32 tools to create and check HFS+ filesystems under Linux.
33
34 The Linux kernel does not support writing to HFS+ journals, writing to
35 a hfsplus partition is recommended only after disabling journaling;
36 however, the kernel, as of version 2.6.16, supports case-sensitivity
37 (also known as HFSX) commit.
38
39 %prep
40 %setup -q -n diskdev_cmds-%{version}
41
42 # remove errant execute bits
43 find -type f -name '*.[ch]' -exec chmod -c a-x {} +
44
45 %build
46 export CFLAGS="%{rpmcflags}"
47 %{__make}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 # the actual install...
53 install -d $RPM_BUILD_ROOT%{_sbindir}
54 install -p newfs_hfs.tproj/newfs_hfs $RPM_BUILD_ROOT%{_sbindir}/mkfs.hfsplus
55 install -p fsck_hfs.tproj/fsck_hfs $RPM_BUILD_ROOT%{_sbindir}/fsck.hfsplus
56
57 # man pages -- a mildly non-invasive name change is in order
58 install -d $RPM_BUILD_ROOT%{_mandir}/man8
59 cat fsck_hfs.tproj/fsck_hfs.8 | sed -e 's/[F|f]sck_hfs/fsck.hfsplus/g' \
60     > $RPM_BUILD_ROOT%{_mandir}/man8/fsck.hfsplus.8
61 cat newfs_hfs.tproj/newfs_hfs.8 | sed -e 's/[N|n]ewfs_hfs/mkfs.hfsplus/g' \
62     > $RPM_BUILD_ROOT%{_mandir}/man8/mkfs.hfsplus.8
63
64 # and a utility symlink...
65 ln -s fsck.hfsplus $RPM_BUILD_ROOT%{_sbindir}/fsck.hfs
66 echo '.so man8/fsck.hfsplus.8' > $RPM_BUILD_ROOT%{_mandir}/man8/fsck.hfs.8
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_sbindir}/mkfs.hfsplus
74 %attr(755,root,root) %{_sbindir}/fsck.hfsplus
75 %attr(755,root,root) %{_sbindir}/fsck.hfs
76 %{_mandir}/man8/mkfs.hfsplus.8*
77 %{_mandir}/man8/fsck.hfsplus.8*
78 %{_mandir}/man8/fsck.hfs.8*
This page took 0.069059 seconds and 3 git commands to generate.