Upgrade to pyparted-3.10.0

- Add python3 subpackage (#985308)
This commit is contained in:
David Cantrell 2014-09-24 16:41:14 -04:00
parent 0f3c802e6c
commit 43eff19178
3 changed files with 56 additions and 8 deletions

5
.gitignore vendored
View File

@ -1,4 +1 @@
pyparted-3.9.2.tar.gz
/pyparted-3.9.3.tar.gz
/pyparted-3.9.4.tar.gz
/pyparted-3.9.5.tar.gz
/pyparted-3.10.0.tar.gz

View File

@ -1,8 +1,10 @@
%define with_python3 1
Summary: Python module for GNU parted
Name: pyparted
Epoch: 1
Version: 3.9.5
Release: 2%{?dist}
Version: 3.10.0
Release: 1%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://fedorahosted.org/pyparted
@ -11,6 +13,9 @@ Source0: http://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
BuildRequires: python-devel
%if 0%{?with_python3}
BuildRequires: python3-devel
%endif
BuildRequires: parted-devel >= 3.1-14
BuildRequires: pkgconfig
BuildRequires: e2fsprogs
@ -19,30 +24,76 @@ BuildRequires: e2fsprogs
Python module for the parted library. It is used for manipulating
partition tables.
%if 0%{?with_python3}
%package -n python3-pyparted
Summary: Python 3 module for GNU parted
Group: System Environment/Libraries
%description -n python3-pyparted
Python module for the parted library. It is used for manipulating
partition tables. This package provides Python 3 bindings for parted.
%endif
%prep
%setup -q
%if 0%{?with_python3}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif
%build
make %{?_smp_mflags}
%if 0%{?with_python3}
pushd %{py3dir}
PYTHON=python3 make %{?_smp_mflags}
popd
%endif
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%if 0%{?with_python3}
pushd %{py3dir}
PYTHON=python3 make install DESTDIR=%{buildroot}
popd
%endif
%check
make test
%if 0%{?with_python3}
pushd %{py3dir}
PYTHON=python3 make test
popd
%endif
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO
%{python_sitearch}/_pedmodule.so
%{python_sitearch}/_ped.so
%{python_sitearch}/parted
%{python_sitearch}/%{name}-%{version}-*.egg-info
%if 0%{?with_python3}
%files -n python3-pyparted
%defattr(-,root,root,-)
%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO
%{python3_sitearch}/_ped.*.so
%{python3_sitearch}/parted
%{python3_sitearch}/%{name}-%{version}-*.egg-info
%endif
%changelog
* Wed Sep 24 2014 David Cantrell <dcantrell@redhat.com> - 3.10.0a-1
- Upgrade to pyparted-3.10.0
- Add python3 subpackage (#985308)
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.9.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

View File

@ -1 +1 @@
9cf098ec38b9fe0af98782671027c5d6 pyparted-3.9.5.tar.gz
a07185bbf7aaf63d5214fcbcc832781e pyparted-3.10.0.tar.gz