2 # - why disable shared?
3 Summary: HFS+ volume utils
4 Summary(pl.UTF-8): Narzędzia do woluminów HFS+
9 Group: Applications/System
10 Source0: ftp://ftp.penguinppc.org/users/hasi/hfsplus_%{version}.src.tar.bz2
11 # Source0-md5: 18fa1efb5432469357ffa6bfa7c08fcd
12 Patch0: %{name}-nullisnotachar.patch
13 Patch1: %{name}-errno.patch
14 Patch2: %{name}-includes.patch
15 Patch3: %{name}-gcc4.patch
17 URL: http://www.penguinppc.org/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: libtool
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %description -l pl.UTF-8
27 Narzędzia do woluminów HFS+.
30 %setup -q -n hfsplus-%{version}
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{/sbin,%{_mandir}/man1}
52 DESTDIR=$RPM_BUILD_ROOT
54 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfsp.la
55 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfsp.a
57 # move to /sbin to allow separate %{_prefix}
58 mv $RPM_BUILD_ROOT%{_bindir}/hpfsck $RPM_BUILD_ROOT/sbin/fsck.hfsplus
59 ln -s /sbin/fsck.hfsplus $RPM_BUILD_ROOT%{_bindir}/hpfsck
61 cp -p doc/man/hfsp.man $RPM_BUILD_ROOT%{_mandir}/man1/hfsp.1
62 for a in hpcd hpcopy hpfsck hpls hpmkdir hpmount hppwd hprm hpumount fsck.hfsplus; do
63 echo '.so hfsp.1' > $RPM_BUILD_ROOT%{_mandir}/man1/$a.1
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
71 %doc AUTHORS NEWS README
72 %attr(755,root,root) /sbin/fsck.hfsplus
73 %attr(755,root,root) %{_bindir}/hpcd
74 %attr(755,root,root) %{_bindir}/hpcopy
75 %attr(755,root,root) %{_bindir}/hpfsck
76 %attr(755,root,root) %{_bindir}/hpls
77 %attr(755,root,root) %{_bindir}/hpmkdir
78 %attr(755,root,root) %{_bindir}/hpmount
79 %attr(755,root,root) %{_bindir}/hppwd
80 %attr(755,root,root) %{_bindir}/hprm
81 %attr(755,root,root) %{_bindir}/hpumount