File parted.spec of Package parted.3440

# spec file for package parted
# Copyright (c) 2016 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

Name:           parted
Version:        3.1
Release:        0
Summary:        GNU partitioner
License:        GPL-3.0+
Group:          System/Filesystems
Source2:        parted.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:        fix-error-informing-the-kernel.patch
#PATCH-FEATURE-SUSE fix-dm-partition-name.patch bnc471440,447591
Patch13:        fix-dm-partition-name.patch
Patch14:        parted-fix-cciss-partition-naming.patch
Patch15:        libparted-fix-mmcblk-partition-name.patch
#PATCH-FEATURE-SUSE do-not-create-dm-nodes.patch bnc#501773
Patch16:        do-not-create-dm-nodes.patch
#PATCH-FEATURE-SUSE more-reliable-informing-the-kernel.patch bnc#657360
Patch17:        more-reliable-informing-the-kernel.patch
Patch19:        parted-gpt-mbr-sync.patch
Patch20:        libparted-ppc-prepboot-in-syncmbr.patch
Patch22:        dummy-bootcode-only-for-x86.patch
Patch23:        parted-type.patch
Patch24:        parted-mac.patch
Patch25:        parted-Add-Intel-Rapid-Start-Technology-partition.patch
Patch26:        parted-btrfs-support.patch
Patch27:        parted-GPT-add-support-for-PReP-GUID.patch
Patch28:        parted-resize-command.patch
Patch29:        libparted-dasd-do-not-use-first-tracks.patch
Patch30:        libparted-initialize-dasd-part-type.patch
Patch31:        libparted-use-BLKRRPART-for-DASD.patch.patch
Patch32:        libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch
Patch33:        Fix-help-text-for-disk_-set-toggle.patch
Patch34:        libparted-allow-bigger-snap-radius-if-cylinders-are-used.patch
Patch35:        libparted-add-support-for-implicit-FBA-DASD-partition.patch
Patch36:        libparted-add-support-for-EAV-DASD-partitions.patch
Patch37:        libparted-mklabel-to-support-EAV-DASD.patch
Patch38:        libparted-Avoid-dasd-as-default-disk-type-while-probe.patch
Patch39:        libparted-mklabel-to-support-EDEV-DASD.patch
Patch40:        libparted-make-BLKRRPART-more-robust.patch
Patch41:        libparted-make-sure-not-to-treat-percentages-and-cyls-as-exact.patch
Patch42:        libparted-dasd-implicit-partition-disk-flag.patch
Patch43:        parted-improve-fallback-logic-when-placing-partiton.patch
Patch44:        libparted-allow-even-bigger-snap-radius-if-cylinders-are-used.patch
Patch45:        libparted-handle-busy-extended-partition.patch
Patch46:        libparted-fix-md-partition-name.patch
Patch47:        parted-dont-snap-to-boundaries-of-freespace.patch
Patch48:        libparted-dont-warn-if-no-HDIO_GET_IDENTITY.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
%if %suse_version >= 1230
BuildRequires:  gpg-offline
PreReq:         %install_info_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# bug437293
%ifarch ppc64
Obsoletes:      parted-64bit

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

%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%{?gpg_verify: %gpg_verify %{S:1}}
%setup -a 4
%patch1 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch19 -p1
%patch20 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1
%patch26 -p1
%patch27 -p1
%patch28 -p1
%patch29 -p1
%patch30 -p1
%patch31 -p1
%patch32 -p1
%patch33 -p1
%patch34 -p1
%patch35 -p1
%patch36 -p1
%patch37 -p1
%patch38 -p1
%patch39 -p1
%patch40 -p1
%patch41 -p1
%patch42 -p1
%patch43 -p1
%patch44 -p1
%patch45 -p1
%patch46 -p1
%patch47 -p1
%patch48 -p1
%patch100 -p1

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		\
make %{?_smp_mflags}

rm %{buildroot}%{_libdir}/*.la
%find_lang %{name}

rm -rf %{buildroot}

%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%post -n libparted0

%postun -n libparted0

%doc %{_infodir}/*.info*

%files devel
%doc doc/API doc/FAT

%files -n libparted0

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by