]> git.pld-linux.org Git - packages/hfsplusutils.git/blob - hfsplusutils.spec
add memset patch from fedora, formatting cosmetics
[packages/hfsplusutils.git] / hfsplusutils.spec
1 # TODO
2 # - why disable shared?
3 Summary:        HFS+ volume utils
4 Summary(pl.UTF-8):      Narzędzia do woluminów HFS+
5 Name:           hfsplusutils
6 Version:        1.0.4
7 Release:        0.2
8 License:        GPL
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
16 Patch4:         memset.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)
22
23 %description
24 HFS+ volume utils.
25
26 %description -l pl.UTF-8
27 Narzędzia do woluminów HFS+.
28
29 %prep
30 %setup -q -n hfsplus-%{version}
31 %patch0 -p1
32 %patch1 -p1
33 %patch2 -p1
34 %patch3 -p1
35
36 %build
37 %{__libtoolize}
38 %{__aclocal}
39 %{__autoconf}
40 %{__autoheader}
41 %{__automake}
42
43 %configure \
44         --disable-shared
45 %{__make}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{/sbin,%{_mandir}/man1}
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfsp.la
55 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfsp.a
56
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
60
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
64 done
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
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
82 %{_mandir}/man1/*
This page took 0.096555 seconds and 3 git commands to generate.