forked from pool/python-parted
Accepting request 262318 from home:cbosdonnat
Runtime dependency for kimchi Changed: Get it to build on 13.1, the libparted-devel version constraint was too strict OBS-URL: https://build.opensuse.org/request/show/262318 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parted?expand=0&rev=1
This commit is contained in:
57
python-parted.spec
Normal file
57
python-parted.spec
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# spec file for package parted
|
||||
#
|
||||
# Copyright (c) 2014 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/
|
||||
#
|
||||
|
||||
Summary: Python module for GNU parted
|
||||
Name: python-parted
|
||||
%define srcname pyparted
|
||||
Version: 3.10
|
||||
Release: 0
|
||||
License: GPL-2.0+
|
||||
Group: Developement/Languages/Python
|
||||
URL: http://fedorahosted.org/pyparted
|
||||
|
||||
Source0: http://fedorahosted.org/releases/p/y/%{srcname}/%{srcname}-%{version}.tar.gz
|
||||
# catch exception for unknown 'disk flag', kkaempf@suse.de
|
||||
Patch: pyparted-3.10.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n)
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: parted-devel
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
%description
|
||||
Python module for the parted library. It is used for manipulating
|
||||
partition tables.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{srcname}-%{version}
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO
|
||||
%{python_sitearch}/_ped.so
|
||||
%{python_sitearch}/parted
|
||||
%{python_sitearch}/%{srcname}-%{version}-*.egg-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user