| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # spec file for package python-metaextract
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2024-10-02 11:18:00 +00:00
										 |  |  | # Copyright (c) 2024 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +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.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-09 16:58:16 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							| 
									
										
										
										
											2016-08-31 06:55:35 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-21 21:30:46 +00:00
										 |  |  | %{?sle15_python_module_pythons}
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | Name:           python-metaextract
 | 
					
						
							| 
									
										
										
										
											2022-10-14 05:38:18 +00:00
										 |  |  | Version:        1.0.9
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | Release:        0
 | 
					
						
							| 
									
										
										
										
											2019-08-27 07:38:13 +00:00
										 |  |  | Summary:        Module to collect metadata for Python modules
 | 
					
						
							| 
									
										
										
										
											2016-08-31 06:55:35 +00:00
										 |  |  | License:        Apache-2.0
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | Group:          Development/Languages/Python
 | 
					
						
							| 
									
										
										
										
											2020-03-29 05:34:55 +00:00
										 |  |  | URL:            http://github.com/toabctl/metaextract
 | 
					
						
							| 
									
										
										
										
											2019-06-24 10:34:56 +00:00
										 |  |  | Source:         https://github.com/toabctl/metaextract/archive/%{version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2024-10-02 11:18:00 +00:00
										 |  |  | # PATCH-FIX-UPSTREAM tests-tests_require.patch gh#toabctl/metaextract#20 mcepl@suse.com
 | 
					
						
							|  |  |  | # Fix failing tests
 | 
					
						
							|  |  |  | Patch0:         tests-tests_require.patch
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module pip}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module wheel}
 | 
					
						
							| 
									
										
										
										
											2017-09-18 13:24:03 +00:00
										 |  |  | BuildRequires:  fdupes
 | 
					
						
							|  |  |  | BuildRequires:  python-rpm-macros
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | # Needed even though no tests are present
 | 
					
						
							| 
									
										
										
										
											2019-06-24 10:34:56 +00:00
										 |  |  | BuildRequires:  %{python_module pbr}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module pytest}
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | Requires:       python-setuptools
 | 
					
						
							|  |  |  | BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
					
						
							|  |  |  | BuildArch:      noarch
 | 
					
						
							| 
									
										
										
										
											2021-12-09 00:26:57 +00:00
										 |  |  | Requires(post): update-alternatives
 | 
					
						
							| 
									
										
										
										
											2024-10-02 11:18:00 +00:00
										 |  |  | Requires(postun): update-alternatives
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | %python_subpackages
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							| 
									
										
										
										
											2019-08-27 07:38:13 +00:00
										 |  |  | metaextract is a tool to collect metadata about a python module. For
 | 
					
						
							|  |  |  | example, it can determine and collect the dependencies of a sdist
 | 
					
						
							|  |  |  | tarball that was retrieved from the Python Package Index.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The tool was first developed in py2pack but is now its own module.
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2024-10-02 11:18:00 +00:00
										 |  |  | %autosetup -p1 -n metaextract-%{version}
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2024-10-02 11:18:00 +00:00
										 |  |  | %pyproject_wheel
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							| 
									
										
										
										
											2024-10-02 11:18:00 +00:00
										 |  |  | %pyproject_install
 | 
					
						
							| 
									
										
										
										
											2019-03-07 11:11:23 +00:00
										 |  |  | %python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | %python_clone -a %{buildroot}%{_bindir}/metaextract
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %post
 | 
					
						
							|  |  |  | %python_install_alternative metaextract
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-14 05:43:55 +00:00
										 |  |  | %postun
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | %python_uninstall_alternative metaextract
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-24 10:34:56 +00:00
										 |  |  | %check
 | 
					
						
							|  |  |  | %pytest
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | %files %{python_files}
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | %defattr(-,root,root,-)
 | 
					
						
							| 
									
										
										
										
											2018-06-09 13:34:08 +00:00
										 |  |  | %doc README.rst
 | 
					
						
							|  |  |  | %license LICENSE
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | %python_alternative %{_bindir}/metaextract
 | 
					
						
							| 
									
										
										
										
											2022-10-14 05:43:55 +00:00
										 |  |  | %{python_sitelib}/metaextract
 | 
					
						
							|  |  |  | %{python_sitelib}/metaextract-%{version}*-info
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |