Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 39875a6ea84b60bff839382de32491a6 > files > 6

pdisk-0.8-6mdk.src.rpm

%define version 0.8
%define release 6mdk
%define diskdev_cmds diskdev_cmds-208.11

Summary:		A partitioning tool for Apple Macintosh-style partitioned disks
Name:			pdisk
Version:		%{version}
Release:		%{release}
License:		Apple Public Source License
Group:			System/Base

Source:			ftp://cfcl.com/pub/ev/pdisk.20000516.src.tar.bz2
Source1:		http://www.opensource.apple.com/darwinsource/tarballs/apsl/diskdev_cmds-208.11.tar.bz2
Patch0:			pdisk-changetype.patch.bz2
Patch1:			http://www.ardistech.com/hfsplus/diskdev_cmds.diff.bz2
Patch2:			pdisk-gcc-4.0.patch.bz2
URL:			http://cantaforda.com/cfcl/eryk/linux/pdisk/index.html
BuildRoot:		%{_tmppath}/%{name}-buildroot

%description
pdisk enables you to view and modify Apple Macintosh-style partition maps.
Normally, it is used to create Mandriva Linux partitions on your disk,
however, it can create partitions of any type, including HFS (except
it would be up to MacOS or some other tool to actually create the HFS
filesystem in that HFS partition).  pdisk won't put MacOS disk drivers
onto your disk.

%prep
%setup -q -a 1 -n pdisk
%patch0 -p1
pushd %{diskdev_cmds}
%patch1 -p1 -b .hfsplus
popd
%patch2 -p1 -b .gcc40

%build
%make
cd %{diskdev_cmds}
%make -f Makefile.lnx

%install
mkdir -p $RPM_BUILD_ROOT/sbin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
install -m755 pdisk $RPM_BUILD_ROOT/sbin/pdisk
install -m444 pdisk.8 $RPM_BUILD_ROOT%{_mandir}/man8
install -m755 %{diskdev_cmds}/fsck_hfs.tproj/fsck_hfs $RPM_BUILD_ROOT/sbin
install -m755 %{diskdev_cmds}/newfs_hfs.tproj/newfs_hfs $RPM_BUILD_ROOT/sbin
install -m444 %{diskdev_cmds}/newfs_hfs.tproj/newfs_hfs.8 $RPM_BUILD_ROOT%{_mandir}/man8
chmod 0444 README pdisk.html

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-,root,root)
%doc README pdisk.html
/sbin/pdisk
/sbin/newfs_hfs
/sbin/fsck_hfs

%{_mandir}/man8/pdisk.8.bz2
%{_mandir}/man8/newfs_hfs.8.bz2

%changelog
* Mon May 16 2005 Stew Benedict <sbenedict@mandriva.com> 0.8-6mdk
- rebuild, patch for gcc-4.0 (P2)

* Fri Apr  2 2004 Stew Benedict <sbenedict@mandrakesoft.com> 0.8-5mdk
- add fsck_hfs, newfs_hfs from the Apple source
- add Roman Zippel's patches for hfsplus support
- (suggestions from J.A. Magallon)
- perms on executables (rpmlint)
 
* Fri Feb  6 2004 Stew Benedict <sbenedict@mandrakesoft.com> 0.8-4mdk
- rebuild
- add t command to change type of partition (Christiaan Welvaart)

* Thu Jan  2 2003 Stew Benedict <sbenedict@mandrakesoft.com> 0.8-3mdk
- fix URL - Yura Gusev

* Fri Dec 27 2002 Stew Benedict <sbenedict@mandrakesoft.com> 0.8-2mdk
- rebuild for new glibc/rpm

* Wed Oct  9 2002 Stew Benedict <sbenedict@mandrakesoft.com> 0.8-1mdk
- new version, quiet setup, rpmlint fixes

* Sun Sep 16 2001 Stew Benedict <sbenedict@mandrakesoft.com> 0.7-4mdk
- rebuild s/Copyright/License/

* Sun Sep 17 2000 David BAUDENS <baudens@mandrakesoft.com> 0.7-3mdk
- Fix Chmou's typos

* Fri Jul  7 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.7-2mdk
- Rewrite specs.

* Sat Feb 26 2000 John Buswell <johnb@mandrakesoft.com>
- First Mandrake release

* Fri Mar 06 1998 Gilbert Coville <coville@apple.com>
- Initial version - some bits ripped off from Mark Hatle's old pfdisk
  spec file.