File pdisk.spec of Package pdisk

# spec file for package pdisk (Version 0.8a)
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           pdisk
Summary:        Partitioning tool for PPC Macs
Version:        0.8a
Release:        557
License:        X11/MIT
Group:          System/Base
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         pdisk.tar.gz
Patch1:         pdisk.makefile-gcc.patch
Patch2:         pdisk.makefile-deps.patch
Patch3:         pdisk.llseek.patch
Patch4:         pdisk.sys_errlist.patch
Patch5:         pdisk.edit-map-segfault.patch
Patch6:         pdisk.compute_block_size.patch
Patch7:         pdisk.default-type.patch
Patch8:         pdisk.linux-fs_h.patch
Patch9:         pdisk.type-punning.patch
Patch10:        pdisk.hfs-dump-format.patch
Patch11:        pdisk-strlen-check.patch
Patch12:        pdisk-dump_block-typepunning.patch
Patch13:        pdisk-write_partition_map-unused-result.patch
Patch14:        pdisk-print_range_list-unused-string.patch
ExclusiveArch:  ppc ppc64

This tool allows you to edit Mac partition tables.

    Eryk Vershen <>

%setup -q -n pdisk
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1

make CFLAGS="$RPM_OPT_FLAGS -Wall -D_FILE_OFFSET_BITS=64" %{?jobs:-j%jobs}

mkdir $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/pdisk.8


%doc README pdisk.html

* Wed Oct 15 2008
- added ExclusiveArch
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Fri Oct 21 2005
- fix compile warnings
* Fri Sep 09 2005
- Fix last change.
* Thu Sep 08 2005
- do not pass NULL to strlen
* Sun Jun 05 2005
- fix mac partition label creation
  default partition type is now 'Linux'
  remove redefinition of lseek function
  remove sys_errlist usage
  fix segfault when leaving pdisk
* Fri Aug 13 2004
- remove some bogus casts
* Mon Jun 23 2003
- use doc macro
* Mon Nov 18 2002
- Enable LFS.
* Tue Apr 10 2001
- fixed Group tag
* Tue Aug 22 2000
- delete the special char ' in MacOS volume name, needed for YaST2
* Thu Jul 06 2000
- update to 0.8a
* Thu Jul 06 2000
- add patch from YaST2 to have only one pdisk around, add Url
* Wed May 24 2000
- moved docs to %%{_docdir}
* Thu Apr 06 2000
- chmod a+rx,go-w /sbin/pdisk
* Thu Mar 02 2000
- use %%{_mandir}
* Mon Dec 13 1999
- inital version