| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # spec file for package python-metaextract
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2019-03-07 11:11:23 +00:00
										 |  |  | # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | Name:           python-metaextract
 | 
					
						
							| 
									
										
										
										
											2018-11-09 16:58:16 +00:00
										 |  |  | Version:        1.0.5
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | Release:        0
 | 
					
						
							|  |  |  | Summary:        get 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
 | 
					
						
							| 
									
										
										
										
											2016-08-31 06:55:35 +00:00
										 |  |  | Url:            http://github.com/toabctl/metaextract
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | Source:         https://files.pythonhosted.org/packages/source/m/metaextract/metaextract-%{version}.tar.gz
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module setuptools}
 | 
					
						
							| 
									
										
										
										
											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
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module pytest-runner}
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | Requires:       python-setuptools
 | 
					
						
							|  |  |  | BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
					
						
							|  |  |  | BuildArch:      noarch
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | Requires(post):   update-alternatives
 | 
					
						
							|  |  |  | Requires(preun):  update-alternatives
 | 
					
						
							|  |  |  | %python_subpackages
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | metaextract is a tool to collect metadata about a python module. For example
 | 
					
						
							|  |  |  | you may have a sdist tarball from the `Python Package Index`_ and you want to
 | 
					
						
							|  |  |  | know it's dependencies. metaextract can collect theses dependencies.
 | 
					
						
							|  |  |  | The tool was first developed in `py2pack`_ but is now it's own module to be
 | 
					
						
							|  |  |  | useful for others, too.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							|  |  |  | %setup -q -n metaextract-%{version}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | %python_build
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							| 
									
										
										
										
											2017-04-27 17:53:02 +00:00
										 |  |  | %python_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
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %preun
 | 
					
						
							|  |  |  | %python_uninstall_alternative metaextract
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %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
 | 
					
						
							| 
									
										
										
										
											2016-08-29 11:01:43 +00:00
										 |  |  | %{python_sitelib}/*
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |