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 http://bugs.opensuse.org/
#

# 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
Url:            http://www.cfcl.com/~eryk/linux/pdisk/
#Ftp: ftp://cfcl.com/pub/ev/
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

%description
This tool allows you to edit Mac partition tables.



Authors:
--------
    Eryk Vershen <eryk@apple.com>

%prep
%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

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

%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
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

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/sbin/pdisk
%{_mandir}/man8/pdisk.8.gz
%doc README pdisk.html

%changelog
* Wed Oct 15 2008 ro@suse.de
- added ExclusiveArch
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Oct 21 2005 olh@suse.de
- fix compile warnings
* Fri Sep 09 2005 schwab@suse.de
- Fix last change.
* Thu Sep 08 2005 olh@suse.de
- do not pass NULL to strlen
* Sun Jun 05 2005 olh@suse.de
- 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 olh@suse.de
- remove some bogus casts
* Mon Jun 23 2003 olh@suse.de
- use doc macro
* Mon Nov 18 2002 schwab@suse.de
- Enable LFS.
* Tue Apr 10 2001 uli@suse.de
- fixed Group tag
* Tue Aug 22 2000 olh@suse.de
- delete the special char ' in MacOS volume name, needed for YaST2
* Thu Jul 06 2000 olh@suse.de
- update to 0.8a
* Thu Jul 06 2000 olh@suse.de
- add patch from YaST2 to have only one pdisk around, add Url
* Wed May 24 2000 uli@suse.de
- moved docs to %%{_docdir}
* Thu Apr 06 2000 olh@suse.de
- chmod a+rx,go-w /sbin/pdisk
* Thu Mar 02 2000 olh@suse.de
- use %%{_mandir}
* Mon Dec 13 1999 uli@suse.de
- inital version