188 lines
4.9 KiB
RPMSpec
188 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package parted (Version 1.8.8)
|
|
#
|
|
# Copyright (c) 2009 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: parted
|
|
BuildRequires: device-mapper-devel
|
|
BuildRequires: e2fsprogs-devel
|
|
BuildRequires: libreiserfs-devel
|
|
BuildRequires: readline-devel
|
|
BuildRequires: libsepol-devel
|
|
BuildRequires: libselinux-devel
|
|
%define aclocaldir /usr/share/aclocal
|
|
License: GPL v2 or later
|
|
Group: System/Filesystems
|
|
Summary: GNU partitioner
|
|
Version: 1.8.8
|
|
Release: 107
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Patch: always-resize-part.dif
|
|
Patch1: parted-type.patch
|
|
Patch2: parted-mac.patch
|
|
Patch3: parted-wipeaix.patch
|
|
Patch4: disable_FAT_check.diff
|
|
Patch6: etherd_support.diff
|
|
Patch7: parted-1.8.3.dif
|
|
Patch8: fat16_hfs_fix.dif
|
|
Patch9: always_print_geom.diff
|
|
Patch10: 2TB_size_overflow.diff
|
|
Patch11: fix-function-def.patch
|
|
Patch12: gnulib.diff
|
|
Patch51: parted.tty.patch
|
|
Patch52: parted.no-O_DIRECT.patch
|
|
Patch54: parted-gpt-mbr-sync.patch
|
|
Patch55: parted-fdasd-compile-fixes
|
|
Patch56: parted-no-inttypes-include
|
|
Patch57: fix-improper-data-conversion.patch
|
|
Patch58: fix-corrupted-gpt-crash.patch
|
|
Patch59: fix-dvh-update.patch
|
|
Patch60: fix-dasd-probe.patch
|
|
Patch62: fix-error-informing-the-kernel.patch
|
|
Patch63: do-not-discard-bootcode-in-extended-partition.patch
|
|
Patch64: parted-cmd-arg-fix.patch
|
|
Patch65: dont-require-dvh-partition-name.patch
|
|
Patch66: do-not-automatically-correct-GPT.patch
|
|
#PATCH-FEATURE-OPENSUSE fix-dm-partition-name.patch bnc471440,447591 petr.uzel@suse.cz
|
|
Patch67: fix-dm-partition-name.patch
|
|
#PATCH-FIX-UPSTREAM fix-make-install-failure.patch -- fix installation failure with latest automake
|
|
Patch68: fix-make-install-failure.patch
|
|
#PATCH-FIX-UPSTREAM fix-array-overflow.patch -- fix array access overflow
|
|
Patch69: fix-array-overflow.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Url: http://www.gnu.org/software/parted/
|
|
PreReq: %install_info_prereq
|
|
# 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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Andrew Clausen <clausen@gnu.org>
|
|
|
|
%package devel
|
|
License: GPL v2 or later
|
|
Summary: Parted Include Files and Libraries necessary for Development
|
|
Group: Development/Libraries/C and C++
|
|
Requires: e2fsprogs-devel parted = %version device-mapper-devel 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.
|
|
|
|
|
|
|
|
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>
|
|
|
|
%lang_package
|
|
%prep
|
|
%setup -q
|
|
%patch
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4
|
|
%patch6 -p0
|
|
%patch7
|
|
%patch8 -p1
|
|
%patch9
|
|
%patch10 -p1
|
|
%patch11
|
|
%patch12
|
|
%patch51 -p1
|
|
%patch52 -p1
|
|
%patch54
|
|
%patch55 -p1
|
|
%patch56 -p1
|
|
%patch57 -p1
|
|
%patch58 -p1
|
|
%patch59 -p1
|
|
%patch60 -p1
|
|
%patch62 -p1
|
|
%patch63 -p1
|
|
%patch64 -p1
|
|
%patch65 -p1
|
|
%patch66 -p1
|
|
%patch67 -p1
|
|
%patch68 -p1
|
|
%patch69 -p1
|
|
|
|
%build
|
|
AUTOPOINT=true autoreconf --force --install
|
|
%configure --disable-static --with-pic \
|
|
--enable-device-mapper=yes \
|
|
--enable-dynamic-loading=no \
|
|
--enable-selinux \
|
|
--disable-Werror
|
|
make %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
%find_lang %{name}
|
|
|
|
%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
|
|
|
|
%files
|
|
%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/*
|
|
%{_libdir}/pkgconfig/libparted.pc
|
|
%{_libdir}/*.so
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|