2007-01-15 15:29:14 +01:00
|
|
|
#
|
2009-08-06 22:06:27 +02:00
|
|
|
# spec file for package parted (Version 1.9.0)
|
2007-01-15 15:29:14 +01:00
|
|
|
#
|
2009-01-09 01:44:02 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 15:29:14 +01:00
|
|
|
#
|
2008-08-11 23:37:59 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-15 15:29:14 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-16 19:57:27 +01:00
|
|
|
|
2007-01-15 15:29:14 +01:00
|
|
|
Name: parted
|
2009-07-08 20:15:29 +02:00
|
|
|
BuildRequires: device-mapper-devel
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: libreiserfs-devel
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: libsepol-devel
|
2008-08-26 02:18:02 +02:00
|
|
|
BuildRequires: libselinux-devel
|
2007-01-15 15:29:14 +01:00
|
|
|
%define aclocaldir /usr/share/aclocal
|
2010-01-26 10:03:05 +01:00
|
|
|
License: GPLv3+
|
2007-01-15 15:29:14 +01:00
|
|
|
Group: System/Filesystems
|
2010-01-26 10:03:05 +01:00
|
|
|
Requires: /sbin/udevadm
|
2007-01-15 15:29:14 +01:00
|
|
|
Summary: GNU partitioner
|
2009-08-06 22:06:27 +02:00
|
|
|
Version: 1.9.0
|
2010-01-26 10:03:05 +01:00
|
|
|
Release: 3
|
2007-01-15 15:29:14 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2009-08-06 22:06:27 +02:00
|
|
|
Patch0: always-resize-part.dif
|
2007-01-15 15:29:14 +01:00
|
|
|
Patch1: parted-type.patch
|
|
|
|
Patch2: parted-mac.patch
|
|
|
|
Patch3: parted-wipeaix.patch
|
2009-08-06 22:06:27 +02:00
|
|
|
Patch4: etherd_support.diff
|
|
|
|
Patch5: parted-1.8.3.dif
|
|
|
|
Patch6: hfs_fix.dif
|
|
|
|
Patch7: always_print_geom.diff
|
|
|
|
Patch8: fix-function-def.patch
|
|
|
|
Patch9: parted.tty.patch
|
|
|
|
Patch10: parted.no-O_DIRECT.patch
|
|
|
|
Patch11: parted-gpt-mbr-sync.patch
|
|
|
|
Patch12: parted-no-inttypes-include
|
|
|
|
Patch13: fix-error-informing-the-kernel.patch
|
|
|
|
Patch14: do-not-discard-bootcode-in-extended-partition.patch
|
2009-03-11 16:57:59 +01:00
|
|
|
#PATCH-FEATURE-OPENSUSE fix-dm-partition-name.patch bnc471440,447591 petr.uzel@suse.cz
|
2009-08-06 22:06:27 +02:00
|
|
|
Patch15: fix-dm-partition-name.patch
|
|
|
|
#PATCH-FEATURE-OPENSUSE fix-tests.sh petr.uzel@suse.cz
|
|
|
|
Patch16: fix-tests.sh
|
2009-10-12 15:15:58 +02:00
|
|
|
#PATCH-FEATURE-OPENSUSE do-not-create-dm-nodes.patch bnc#501773 petr.uzel@suse.cz
|
|
|
|
Patch17: do-not-create-dm-nodes.patch
|
2010-01-26 10:03:05 +01:00
|
|
|
#PATCH-FIX-UPSTREAM avoid-unnecessary-open-close.patch bnc#539521 petr.uzel@suse.cz
|
|
|
|
Patch18: avoid-unnecessary-open-close.patch
|
|
|
|
#PATCH-FIX-UPSTREAM do-not-unnecessarily-open-part-dev.patch bnc#539521 petr.uzel@suse.cz
|
|
|
|
Patch19: do-not-unnecessarily-open-part-dev.patch
|
|
|
|
#PATCH-FIX-UPSTREAM fix-race-call-udevadm-settle.patch bnc#539521 petr.uzel@suse.cz
|
|
|
|
Patch20: fix-race-call-udevadm-settle.patch
|
2007-01-15 15:29:14 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-12-11 00:32:46 +01:00
|
|
|
Url: http://www.gnu.org/software/parted/
|
2007-01-15 15:29:14 +01:00
|
|
|
PreReq: %install_info_prereq
|
2009-01-09 01:44:02 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: parted-64bit
|
|
|
|
%endif
|
2007-01-15 15:29:14 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
GNU Parted is a program for creating, destroying, resizing, checking,
|
|
|
|
and copying partitions, and the file systems on them.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andrew Clausen <clausen@gnu.org>
|
|
|
|
|
|
|
|
%package devel
|
2010-01-26 10:03:05 +01:00
|
|
|
License: GPLv2+
|
2008-08-29 13:51:20 +02:00
|
|
|
Summary: Parted Include Files and Libraries necessary for Development
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-03-26 16:27:05 +01:00
|
|
|
Requires: e2fsprogs-devel parted = %version device-mapper-devel libreiserfs-devel
|
2009-01-09 01:44:02 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: parted-devel-64bit
|
|
|
|
%endif
|
2007-01-15 15:29:14 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to develop applications that require these.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andrew Clausen <clausen@gnu.org>
|
|
|
|
Lennert Buytenhek <buytenh@gnu.org>
|
|
|
|
Matthew Wilson <msw@redhat.com>
|
|
|
|
Masahiro Sakai <ZVM01052@nifty.ne.jp>
|
|
|
|
Ben Collins <vincent.stelhe@free.fr>
|
|
|
|
Matt Domsch <Matt_Domsch@dell.com>
|
|
|
|
|
2009-06-20 00:10:12 +02:00
|
|
|
%lang_package
|
2007-01-15 15:29:14 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-08-06 22:06:27 +02:00
|
|
|
%patch0
|
2007-01-15 15:29:14 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2009-08-06 22:06:27 +02:00
|
|
|
%patch4 -p0
|
|
|
|
%patch5
|
|
|
|
%patch6 -p1
|
2007-03-22 21:00:14 +01:00
|
|
|
%patch7
|
2009-08-06 22:06:27 +02:00
|
|
|
%patch8
|
|
|
|
%patch9 -p1
|
2008-01-18 00:07:36 +01:00
|
|
|
%patch10 -p1
|
2008-03-21 04:14:56 +01:00
|
|
|
%patch11
|
2009-08-06 22:06:27 +02:00
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
2009-10-12 15:15:58 +02:00
|
|
|
%patch17 -p1
|
2010-01-26 10:03:05 +01:00
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
|
|
|
%patch20 -p1
|
2007-01-15 15:29:14 +01:00
|
|
|
|
|
|
|
%build
|
2008-05-10 00:56:36 +02:00
|
|
|
AUTOPOINT=true autoreconf --force --install
|
2009-08-06 22:06:27 +02:00
|
|
|
%configure --disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--enable-device-mapper=yes \
|
|
|
|
--enable-dynamic-loading=no \
|
|
|
|
--enable-selinux \
|
|
|
|
--disable-Werror
|
2007-01-15 15:29:14 +01:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
2009-04-18 14:02:59 +02:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
2008-03-16 19:57:27 +01:00
|
|
|
%find_lang %{name}
|
2007-01-15 15:29:14 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2009-06-20 00:10:12 +02:00
|
|
|
%files
|
2007-01-15 15:29:14 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_mandir}/man8/part*.8.gz
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%doc %{_infodir}/*.info*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc/API doc/FAT
|
|
|
|
%{_prefix}/include/*
|
2007-03-22 21:00:14 +01:00
|
|
|
%{_libdir}/pkgconfig/libparted.pc
|
2007-01-15 15:29:14 +01:00
|
|
|
%{_libdir}/*.so
|
|
|
|
|
2009-06-20 00:10:12 +02:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
2007-02-25 23:33:28 +01:00
|
|
|
%changelog
|