### AUTOUPDATE-OFF: 2 %define pyb_ver 0.11.2 %define with_python_binding 1 %define libname lib%{name} Name: parted Version: 3.4 Release: 1mamba Summary: Tools for creating, destroying, resizing, checking and copying partitions Group: System/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.gnu.org/software/parted/ Source0: http://ftp.gnu.org/gnu/parted/parted-%{version}.tar.xz %if %{with_python_binding} Source1: http://archive.ubuntu.com/ubuntu/pool/main/p/python-parted/python-parted_%{pyb_ver}.tar.gz Patch0: %{name}-1.6.21-python_parted_0.11.2.patch %endif Patch1: %{name}-1.8.6-disk_dos.patch Patch2: %{name}-1.8.8-readline.patch Patch3: %{name}-1.8.6-disk_sun_raid.patch Patch4: %{name}-2.4-kernel-3.0.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: bash BuildRequires: glibc-devel BuildRequires: libdevmapper-devel BuildRequires: libe2fs-devel BuildRequires: libncurses-devel BuildRequires: libreadline-devel %if "%{stage1}" != "1" BuildRequires: libselinux-devel %endif BuildRequires: libsepol-devel BuildRequires: texinfo ## AUTOBUILDREQ-END BuildRequires: libreiserfs-devel >= 0.3.0.4 BuildRequires: gettext-devel BuildRequires: libcheck-devel Requires(post):%{__install_info} Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description GNU Parted is a program for creating, destroying, resizing, checking and copying partitions, and the filesystems on them. This is useful for creating space for new operating systems, reorganising disk usage, copying data between hard disks, and disk imaging. %package -n %{libname} Group: System/Libraries Summary: Dinamic libraries for parted %description -n %{libname} GNU Parted is a program for creating, destroying, resizing, checking and copying partitions, and the filesystems on them. This is useful for creating space for new operating systems, reorganising disk usage, copying data between hard disks, and disk imaging. This package contains the dynamic libraries. %package -n %{libname}-devel Group: Development/Libraries Summary: Static libraries and header for parted Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} %description -n %{libname}-devel GNU Parted is a program for creating, destroying, resizing, checking and copying partitions, and the filesystems on them. This is useful for creating space for new operating systems, reorganising disk usage, copying data between hard disks, and disk imaging. This package contains static libraries and header files need for development. %if %{with_python_binding} %package python Group: Development/Libraries/Python Summary: Python bindings for GNU parted Requires: python >= %{pyver} Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} %description python GNU Parted is a program for creating, destroying, resizing, checking and copying partitions, and the filesystems on them. This is useful for creating space for new operating systems, reorganising disk usage, copying data between hard disks, and disk imaging. This module contains Python bindings for the library. %endif %prep %setup -q %patch1 -p1 #%patch2 -p1 #%patch3 -p1 #%patch4 -p1 %if %{with_python_binding} gzip -cd %{S:1} | tar xf - %patch0 -p1 %endif %build #autoconf %configure \ --enable-device-mapper \ %if "%{stage1}" != "1" --enable-selinux \ %endif --disable-Werror %make %if %{with_python_binding} pushd python-%{name}-%{pyb_ver} CFLAGS="-L../lib%{name}/.libs -I../include" %{__python} setup.py build popd %endif %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall rm -f %{buildroot}%{_bindir}/label %find_lang %{name} %if %{with_python_binding} pushd python-%{name}-%{pyb_ver} %{__python} setup.py install \ --root=%{buildroot} \ --install-headers=%{_includedir}/python \ --install-lib=%{python_sitearch} chmod 644 {AUTHORS,README,TODO} popd %endif %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post %install_info %{name}.info %preun %uninstall_info %{name}.info %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) #%{_bindir}/disk %{_sbindir}/%{name} %{_sbindir}/partprobe %{_infodir}/* %{_mandir}/man8/* %doc AUTHORS BUGS ChangeLog COPYING NEWS README THANKS TODO %files -n %{libname} %defattr(-,root,root) %{_libdir}/%{libname}*.so.* %files -n %{libname}-devel %defattr(-,root,root) %{_includedir}/%{name}/* %{_libdir}/%{libname}*.a %{_libdir}/%{libname}*.la %{_libdir}/%{libname}*.so %{_libdir}/pkgconfig/%{libname}*.pc %if %{with_python_binding} %files python %defattr(-,root,root) %{python_sitearch}/_%{name}module.so %{python_sitearch}/%{name}.py %{python_sitearch}/%{name}.pyc %{python_sitearch}/python_parted-*-py*.egg-info %doc python-%{name}-%{pyb_ver}/{AUTHORS,README,TODO} %endif %changelog * Thu Jan 28 2021 Automatic Build System 3.4-1mamba - automatic version update by autodist * Sun Oct 27 2019 Automatic Build System 3.3-1mamba - automatic version update by autodist * Tue Jul 29 2014 Automatic Build System 3.2-1mamba - automatic version update by autodist * Mon Mar 12 2012 Automatic Build System 3.1-1mamba - update to 3.1 * Mon Mar 12 2012 Automatic Build System 3.0-1mamba - automatic version update by autodist * Mon Sep 26 2011 Silvan Calarco 2.4-2mamba - added a patch to prevent a crash with kernel 3.0 * Thu May 19 2011 Automatic Build System 2.4-1mamba - automatic update by autodist * Sat May 29 2010 Automatic Build System 2.3-1mamba - automatic update to 2.3 by autodist * Fri Mar 12 2010 Automatic Build System 2.2-1mamba - automatic update to 2.2 by autodist * Wed Jan 13 2010 Automatic Build System 2.1-1mamba - automatic update to 2.1 by autodist * Sat Jul 25 2009 Automatic Build System 1.9.0-1mamba - update to 1.9.0 * Tue Feb 12 2008 Silvan Calarco 1.8.8-1mamba - update to 1.8.8 * Fri May 04 2007 Stefano Cotta Ramusino 1.8.6-1mamba - update to 1.8.6 * Mon Jul 24 2006 Silvan Calarco 1.7.1-1qilnx - update to version 1.7.1 by autospec * Mon Jul 24 2006 Silvan Calarco 1.7.0-1qilnx - update to version 1.7.0 by autospec * Wed Apr 12 2006 Silvan Calarco 1.7.0rc4-1qilnx - update to version 1.7.0rc4 by autospec * Wed Apr 12 2006 Silvan Calarco 1.6.25.1-3qilnx - add patch to set the proper GUID on HFS/HFS+ partitions * Fri Mar 03 2006 Stefano Cotta Ramusino 1.6.25.1-2qilnx - specfile fixed and updated - fixed building without python binding * Thu Nov 17 2005 Davide Madrisan 1.6.25.1-1qilnx - update to version 1.6.25.1 by autospec * Wed Nov 09 2005 Davide Madrisan 1.6.25-2qilnx - build requires libreiserfs-devel * Wed Nov 09 2005 Davide Madrisan 1.6.25-1qilnx - update to version 1.6.25 by autospec * Sat Aug 13 2005 Silvan Calarco 1.6.24-1qilnx - update to version 1.6.24 by autospec - fix python binding build dir library linking * Tue Apr 19 2005 Davide Madrisan 1.6.22-3qilnx - fixed permissions in python-parted documentation * Mon Apr 18 2005 Davide Madrisan 1.6.22-2qilnx - parted-python requires python * Wed Apr 13 2005 Davide Madrisan 1.6.22-1qilnx - update to version 1.6.22 by autospec - added %%post and %%postun scripts to install/uninstall info files * Thu Mar 17 2005 Davide Madrisan 1.6.21-3qilnx - fixed some typos errors in the specfile - python package made conditionally enabled/disabled * Mon Mar 14 2005 Davide Madrisan 1.6.21-2qilnx - added python bindings * Mon Mar 14 2005 Davide Madrisan 1.6.21-1qilnx - update to version 1.6.21 by autospec - added missing build requirements: ncurses-devel * Mon Nov 22 2004 Davide Madrisan 1.6.18-1qilnx - update to version 1.6.18 by autospec * Fri Sep 24 2004 Silvan Calarco 1.6.15-1qilnx - update to version 1.6.15 by autospec * Wed Jul 28 2004 Davide Madrisan 1.6.11-1qilnx - update to 1.6.11 * Thu Mar 25 2004 Davide Madrisan 1.6.6-1qilnx - first build