- Update to parted-3.2; Notable changes: - Added new partition type flag, esp, to set the type to 0xEF on MS-DOS. Also aliased to boot on GPT to set the UEFI ESP GUID. - You can now choose to ignore errors about partitions that overlap, or are longer than the disk. This allows you to use parted to repair the problem. - When attempting to manipulate a mounted partition, parted now issues a warning that you can choose to ignore, instead of an error. - When creating a loop label, it automatically comes with a partition using the whole disk. - parted -l no longer lists device-mapper devices other than dmraid whole disks. - Added new Linux-specific partition GUID type code (0FC63DAF-8483-4772-8E79-3D69D8477DE4) for Linux filesystem data on GPT disks. This type code is now assigned as the default partition type code for new partitions holding Linux filesystems. - Added new "msftdata" flag to identify partitions holding NTFS or FAT filesystems on GPT disks. This flag corresponds to a GPT type code of EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 ("Microsoft Basic Data"). Since Linux filesystem partitions formerly used this type code, this flag may optionally be set on Linux partitions to make the partition table type codes match former configurations in case the new Linux filesystem type code causes problems with some utility. Note that this flag cannot be removed from NTFS or FAT partitions within parted except by setting a competing flag, such as "boot" (which sets the type code used by EFI System partitions) or "msftres" (which sets the "Microsoft Reserved" type code). OBS-URL: https://build.opensuse.org/request/show/303792 OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=109
187 lines
5.4 KiB
RPMSpec
187 lines
5.4 KiB
RPMSpec
#
|
|
# spec file for package parted
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
#
|
|
|
|
|
|
Name: parted
|
|
Version: 3.2
|
|
Release: 0
|
|
Summary: GNU partitioner
|
|
License: GPL-3.0+
|
|
Group: System/Filesystems
|
|
Url: http://www.gnu.org/software/parted/
|
|
Source0: ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz
|
|
Source1: ftp://ftp.gnu.org/gnu/parted/%{name}-%{version}.tar.xz.sig
|
|
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=parted&download=1#/%{name}.keyring
|
|
Source3: baselibs.conf
|
|
Source4: fatresize-0.1.tar.bz2
|
|
# Build patches
|
|
Patch1: parted-2.4-ncursesw6.patch
|
|
|
|
# Other patches
|
|
Patch10: hfs_fix.dif
|
|
Patch11: parted-wipeaix.patch
|
|
Patch12: libparted-partition-naming.patch
|
|
#PATCH-FEATURE-SUSE more-reliable-informing-the-kernel.patch bnc#657360 petr.uzel@suse.cz
|
|
Patch13: more-reliable-informing-the-kernel.patch
|
|
Patch14: parted-gpt-mbr-sync.patch
|
|
Patch15: libparted-ppc-prepboot-in-syncmbr.patch
|
|
Patch16: parted-workaround-windows7-gpt-implementation.patch
|
|
Patch17: dummy-bootcode-only-for-x86.patch
|
|
Patch18: parted-type.patch
|
|
Patch19: parted-mac.patch
|
|
Patch20: libparted-dasd-do-not-use-first-tracks.patch
|
|
Patch21: libparted-use-BLKRRPART-for-DASD.patch.patch
|
|
Patch22: libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch
|
|
Patch23: libparted-make-BLKRRPART-more-robust.patch
|
|
Patch24: libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch
|
|
Patch25: libparted-dasd-implicit-partition-disk-flag.patch
|
|
Patch26: lib-fs-resize-prevent-crash-resizing-FAT16.patch
|
|
Patch27: parted-dont-crash-in-disk_set-when-disk-label-not-found.patch
|
|
Patch28: libparted-device-mapper-uses-512b-sectors.patch
|
|
Patch29: parted-resize-alias-to-resizepart.patch
|
|
Patch30: libparted-avoid-libdevice-mapper-warnings.patch
|
|
Patch100: parted-fatresize-autoconf.patch
|
|
Requires: /sbin/udevadm
|
|
BuildRequires: check-devel
|
|
BuildRequires: device-mapper-devel >= 1.02.33
|
|
BuildRequires: e2fsprogs-devel
|
|
BuildRequires: libblkid-devel >= 2.17
|
|
BuildRequires: libreiserfs-devel
|
|
BuildRequires: libselinux-devel
|
|
BuildRequires: libsepol-devel
|
|
BuildRequires: libtool
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: makeinfo
|
|
BuildRequires: pkg-config
|
|
BuildRequires: readline-devel
|
|
PreReq: %install_info_prereq
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: parted-64bit
|
|
%endif
|
|
|
|
%description
|
|
GNU Parted is a program for creating, destroying, resizing, checking,
|
|
and copying partitions, and the file systems on them.
|
|
|
|
%package -n libparted0
|
|
Summary: Library for manipulating partitions
|
|
Group: System/Filesystems
|
|
|
|
%description -n libparted0
|
|
Libparted is a library for creating, destroying, resizing, checking
|
|
and copying partitions and the file systems on them.
|
|
|
|
%package devel
|
|
Summary: Parted Include Files and Libraries necessary for Development
|
|
Group: Development/Libraries/C and C++
|
|
Requires: device-mapper-devel >= 1.02.33
|
|
Requires: e2fsprogs-devel
|
|
Requires: libparted0 = %version
|
|
Requires: libreiserfs-devel
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: parted-devel-64bit
|
|
%endif
|
|
|
|
%description devel
|
|
This package contains all necessary include files and libraries needed
|
|
to develop applications that require these.
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -a 4
|
|
%patch1 -p1
|
|
%patch10 -p1
|
|
%patch11 -p1
|
|
%patch12 -p1
|
|
%patch13 -p1
|
|
%patch14 -p1
|
|
%patch15 -p1
|
|
%patch16 -p1
|
|
%patch17 -p1
|
|
%patch18 -p1
|
|
%patch19 -p1
|
|
%patch20 -p1
|
|
%patch21 -p1
|
|
%patch22 -p1
|
|
%patch23 -p1
|
|
%patch24 -p1
|
|
%patch25 -p1
|
|
%patch26 -p1
|
|
%patch27 -p1
|
|
%patch28 -p1
|
|
%patch29 -p1
|
|
%patch30 -p1
|
|
%patch100 -p1
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} `ncursesw6-config --cflags`"
|
|
export LDFLAGS="`ncursesw6-config --libs`"
|
|
AUTOPOINT=true autoreconf --force --install
|
|
%configure --disable-static \
|
|
--with-pic \
|
|
--enable-device-mapper=yes \
|
|
--enable-dynamic-loading=no \
|
|
--enable-selinux \
|
|
--disable-Werror \
|
|
--disable-silent-rules
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%makeinstall
|
|
rm %{buildroot}%{_libdir}/*.la
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%postun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%post -n libparted0
|
|
/sbin/ldconfig
|
|
|
|
%postun -n libparted0
|
|
/sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
|
|
%{_sbindir}/*
|
|
%{_mandir}/man8/part*.8.gz
|
|
%doc %{_infodir}/*.info*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc doc/API doc/FAT
|
|
%{_includedir}/*
|
|
%{_libdir}/pkgconfig/libparted.pc
|
|
%{_libdir}/*.so
|
|
|
|
%files -n libparted0
|
|
%defattr(-,root,root)
|
|
%{_libdir}/*.so.*
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|