]>
Commit | Line | Data |
---|---|---|
f096a571 ER |
1 | # TODO |
2 | # - why disable shared? | |
793fa409 | 3 | Summary: HFS+ volume utils |
b8050d61 | 4 | Summary(pl.UTF-8): Narzędzia do woluminów HFS+ |
793fa409 | 5 | Name: hfsplusutils |
6 | Version: 1.0.4 | |
f096a571 | 7 | Release: 0.2 |
793fa409 | 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 | |
f096a571 ER |
16 | Patch4: memset.patch |
17 | URL: http://www.penguinppc.org/ | |
793fa409 | 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 | ||
8647cf15 JR |
26 | %description -l pl.UTF-8 |
27 | Narzędzia do woluminów HFS+. | |
793fa409 | 28 | |
29 | %prep | |
dea0175a | 30 | %setup -q -n hfsplus-%{version} |
793fa409 | 31 | %patch0 -p1 |
32 | %patch1 -p1 | |
33 | %patch2 -p1 | |
f096a571 | 34 | %patch3 -p1 |
793fa409 | 35 | |
36 | %build | |
37 | %{__libtoolize} | |
38 | %{__aclocal} | |
39 | %{__autoconf} | |
40 | %{__autoheader} | |
41 | %{__automake} | |
42 | ||
dea0175a | 43 | %configure \ |
44 | --disable-shared | |
793fa409 | 45 | %{__make} |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
f096a571 | 49 | install -d $RPM_BUILD_ROOT{/sbin,%{_mandir}/man1} |
793fa409 | 50 | |
dea0175a | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
793fa409 | 53 | |
f096a571 ER |
54 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfsp.la |
55 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfsp.a | |
793fa409 | 56 | |
f096a571 ER |
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 | |
793fa409 | 64 | done |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
f096a571 | 71 | %doc AUTHORS NEWS README |
793fa409 | 72 | %attr(755,root,root) /sbin/fsck.hfsplus |
f096a571 ER |
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/* |