| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2015-06-23 06:26:32 +00:00
										 |  |  | # spec file for package python-parted
 | 
					
						
							| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2022-01-11 10:12:51 +00:00
										 |  |  | # Copyright (c) 2022 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # 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.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-02 12:08:32 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-23 06:26:32 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | %define srcname pyparted
 | 
					
						
							| 
									
										
										
										
											2018-05-24 15:42:35 +00:00
										 |  |  | %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
					
						
							|  |  |  | Name:           python-parted
 | 
					
						
							| 
									
										
										
										
											2022-05-30 09:55:56 +00:00
										 |  |  | Version:        3.12.0
 | 
					
						
							| 
									
										
										
										
											2015-06-23 06:26:32 +00:00
										 |  |  | Release:        0
 | 
					
						
							| 
									
										
										
										
											2018-05-24 15:42:35 +00:00
										 |  |  | Summary:        Python module for GNU parted
 | 
					
						
							|  |  |  | License:        GPL-2.0-or-later
 | 
					
						
							|  |  |  | URL:            https://github.com/dcantrell/pyparted/
 | 
					
						
							| 
									
										
										
										
											2022-01-11 10:12:51 +00:00
										 |  |  | Source0:        https://github.com/dcantrell/pyparted/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | # catch exception for unknown 'disk flag', kkaempf@suse.de
 | 
					
						
							| 
									
										
										
										
											2018-05-24 15:42:35 +00:00
										 |  |  | Patch0:         pyparted-3.10.patch
 | 
					
						
							|  |  |  | Patch3:         python-parted-parted-binary.patch
 | 
					
						
							|  |  |  | Patch4:         python-parted-featurestest.patch
 | 
					
						
							| 
									
										
										
										
											2022-05-30 09:55:56 +00:00
										 |  |  | Patch5:         more-features-exposed.patch
 | 
					
						
							| 
									
										
										
										
											2018-05-24 15:42:35 +00:00
										 |  |  | BuildRequires:  %{python_module devel}
 | 
					
						
							| 
									
										
										
										
											2022-05-30 09:55:56 +00:00
										 |  |  | BuildRequires:  %{python_module setuptools}
 | 
					
						
							| 
									
										
										
										
											2018-05-24 15:42:35 +00:00
										 |  |  | BuildRequires:  %{python_module six}
 | 
					
						
							|  |  |  | # tests requires
 | 
					
						
							|  |  |  | BuildRequires:  e2fsprogs
 | 
					
						
							|  |  |  | BuildRequires:  parted
 | 
					
						
							|  |  |  | Requires:       parted
 | 
					
						
							| 
									
										
										
										
											2017-04-04 08:11:09 +00:00
										 |  |  | BuildRequires:  fdupes
 | 
					
						
							| 
									
										
										
										
											2015-06-23 06:26:32 +00:00
										 |  |  | BuildRequires:  parted-devel
 | 
					
						
							|  |  |  | BuildRequires:  pkgconfig
 | 
					
						
							| 
									
										
										
										
											2018-05-24 15:42:35 +00:00
										 |  |  | BuildRequires:  python-rpm-macros
 | 
					
						
							|  |  |  | %python_subpackages
 | 
					
						
							| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | Python module for the parted library.  It is used for manipulating
 | 
					
						
							|  |  |  | partition tables.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2022-05-30 09:55:56 +00:00
										 |  |  | %autosetup -p1 -n %{srcname}-%{version}
 | 
					
						
							| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2018-05-24 15:42:35 +00:00
										 |  |  | %python_build
 | 
					
						
							| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							| 
									
										
										
										
											2018-05-24 15:42:35 +00:00
										 |  |  | %python_install
 | 
					
						
							|  |  |  | %python_expand %fdupes %{buildroot}%{$python_sitearch}
 | 
					
						
							| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-24 15:42:35 +00:00
										 |  |  | %check
 | 
					
						
							|  |  |  | %python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover -v
 | 
					
						
							| 
									
										
										
										
											2017-04-04 08:11:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-24 15:42:35 +00:00
										 |  |  | %files %{python_files}
 | 
					
						
							|  |  |  | %license COPYING
 | 
					
						
							|  |  |  | %doc AUTHORS NEWS README TODO
 | 
					
						
							|  |  |  | %{python_sitearch}/_ped*.so
 | 
					
						
							| 
									
										
										
										
											2014-11-23 12:46:40 +00:00
										 |  |  | %{python_sitearch}/parted
 | 
					
						
							|  |  |  | %{python_sitearch}/%{srcname}-%{version}-*.egg-info
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |