2007-01-15 15:29:14 +01:00
|
|
|
#
|
2010-07-19 20:20:25 +02:00
|
|
|
# spec file for package parted (Version 2.3)
|
2007-01-15 15:29:14 +01:00
|
|
|
#
|
2010-01-27 17:34:39 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
2010-04-03 00:14:43 +02:00
|
|
|
|
|
|
|
|
2007-01-15 15:29:14 +01:00
|
|
|
Name: parted
|
2010-07-19 20:20:25 +02:00
|
|
|
Version: 2.3
|
|
|
|
Release: 1
|
2010-04-03 00:14:43 +02:00
|
|
|
License: GPLv3+
|
2007-01-15 15:29:14 +01:00
|
|
|
Summary: GNU partitioner
|
2010-04-02 13:35:12 +02:00
|
|
|
Url: http://www.gnu.org/software/parted/
|
|
|
|
Group: System/Filesystems
|
2007-01-15 15:29:14 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2010-03-19 00:06:15 +01:00
|
|
|
Source1: baselibs.conf
|
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
|
2010-04-02 13:35:12 +02:00
|
|
|
Patch2: parted-mac.patch
|
2007-01-15 15:29:14 +01:00
|
|
|
Patch3: parted-wipeaix.patch
|
2010-04-02 13:35:12 +02:00
|
|
|
Patch5: hfs_fix.dif
|
|
|
|
Patch6: always_print_geom.diff
|
|
|
|
Patch7: fix-function-def.patch
|
|
|
|
Patch8: parted-gpt-mbr-sync.patch
|
2009-03-11 16:57:59 +01:00
|
|
|
#PATCH-FEATURE-OPENSUSE fix-dm-partition-name.patch bnc471440,447591 petr.uzel@suse.cz
|
2010-04-02 13:35:12 +02:00
|
|
|
Patch10: fix-dm-partition-name.patch
|
2009-10-12 15:15:58 +02:00
|
|
|
#PATCH-FEATURE-OPENSUSE do-not-create-dm-nodes.patch bnc#501773 petr.uzel@suse.cz
|
2010-04-02 13:35:12 +02:00
|
|
|
Patch11: do-not-create-dm-nodes.patch
|
|
|
|
|
|
|
|
Requires: /sbin/udevadm
|
|
|
|
BuildRequires: check-devel
|
|
|
|
BuildRequires: device-mapper-devel >= 1.02.33
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: libreiserfs-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libsepol-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: readline-devel
|
2010-04-02 14:50:56 +02:00
|
|
|
PreReq: %install_info_prereq
|
2007-01-15 15:29:14 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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.
|
|
|
|
|
|
|
|
%package devel
|
2010-04-03 00:14:43 +02:00
|
|
|
License: GPLv3+
|
2008-08-29 13:51:20 +02:00
|
|
|
Summary: Parted Include Files and Libraries necessary for Development
|
|
|
|
Group: Development/Libraries/C and C++
|
2010-04-02 13:35:12 +02:00
|
|
|
Requires: device-mapper-devel >= 1.02.33
|
|
|
|
Requires: e2fsprogs-devel
|
|
|
|
Requires: libreiserfs-devel
|
|
|
|
Requires: parted = %version
|
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.
|
|
|
|
|
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
|
2010-04-02 13:35:12 +02:00
|
|
|
%patch5 -p1
|
|
|
|
%patch6
|
2007-03-22 21:00:14 +01:00
|
|
|
%patch7
|
2009-08-06 22:06:27 +02:00
|
|
|
%patch8
|
2008-01-18 00:07:36 +01:00
|
|
|
%patch10 -p1
|
2010-04-02 13:35:12 +02:00
|
|
|
%patch11 -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 \
|
2010-07-19 20:20:25 +02:00
|
|
|
--with-pic \
|
|
|
|
--enable-device-mapper=yes \
|
|
|
|
--enable-dynamic-loading=no \
|
|
|
|
--enable-selinux \
|
|
|
|
--disable-Werror
|
2010-06-28 23:24:54 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 15:29:14 +01:00
|
|
|
|
|
|
|
%install
|
2010-04-02 13:35:12 +02:00
|
|
|
%makeinstall
|
|
|
|
rm %{buildroot}%{_libdir}/*.la
|
2008-03-16 19:57:27 +01:00
|
|
|
%find_lang %{name}
|
2007-01-15 15:29:14 +01:00
|
|
|
|
|
|
|
%clean
|
2010-04-02 13:35:12 +02:00
|
|
|
rm -rf %{buildroot}
|
2007-01-15 15:29:14 +01:00
|
|
|
|
|
|
|
%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
|
2010-04-02 13:35:12 +02:00
|
|
|
%{_includedir}/*
|
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
|