# # spec file for package parted (Version 1.9.0) # # Copyright (c) 2010 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: GPLv3+ Group: System/Filesystems Requires: /sbin/udevadm Summary: GNU partitioner Version: 1.9.0 Release: 4 Source0: %{name}-%{version}.tar.bz2 Source1: baselibs.conf Patch0: always-resize-part.dif Patch1: parted-type.patch Patch2: parted-mac.patch Patch3: parted-wipeaix.patch 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 #PATCH-FEATURE-OPENSUSE fix-dm-partition-name.patch bnc471440,447591 petr.uzel@suse.cz Patch15: fix-dm-partition-name.patch #PATCH-FEATURE-OPENSUSE fix-tests.sh petr.uzel@suse.cz Patch16: fix-tests.sh #PATCH-FEATURE-OPENSUSE do-not-create-dm-nodes.patch bnc#501773 petr.uzel@suse.cz Patch17: do-not-create-dm-nodes.patch #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 #PATCH-FIX-UPSTREAM retry-blkpg-ioctl.patch bnc#539521 petr.uzel@suse.cz Patch21: retry-blkpg-ioctl.patch #PATCH-FIX-UPSTREAM use-ext-range.patch bnc#567652 petr.uzel@suse.cz Patch22: use-ext-range.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 %package devel License: GPLv2+ 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 Lennert Buytenhek Matthew Wilson Masahiro Sakai Ben Collins Matt Domsch %lang_package %prep %setup -q %patch0 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p0 %patch5 %patch6 -p1 %patch7 %patch8 %patch9 -p1 %patch10 -p1 %patch11 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 %patch21 -p1 %patch22 -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