| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # spec file for package python-osc-tiny
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2022-01-20 11:12:43 +00:00
										 |  |  | # Copyright (c) 2022 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +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.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:11:52 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
					
						
							| 
									
										
										
										
											2021-01-07 11:37:34 +00:00
										 |  |  | %define skip_python2 1
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | Name:           python-osc-tiny
 | 
					
						
							| 
									
										
										
										
											2022-08-17 12:39:41 +00:00
										 |  |  | Version:        0.7.1
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | Release:        0
 | 
					
						
							|  |  |  | Summary:        Client API for openSUSE BuildService
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:11:52 +00:00
										 |  |  | License:        MIT
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | Group:          Development/Languages/Python
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:11:52 +00:00
										 |  |  | URL:            https://github.com/crazyscientist/osc-tiny
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | Source:         https://files.pythonhosted.org/packages/source/o/osc-tiny/osc-tiny-%{version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2021-01-07 11:37:34 +00:00
										 |  |  | BuildRequires:  %{python_module PyYAML}
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | BuildRequires:  %{python_module lxml}
 | 
					
						
							| 
									
										
										
										
											2020-03-27 13:53:56 +00:00
										 |  |  | BuildRequires:  %{python_module pytest}
 | 
					
						
							| 
									
										
										
										
											2020-01-13 12:03:45 +00:00
										 |  |  | BuildRequires:  %{python_module python-dateutil}
 | 
					
						
							| 
									
										
										
										
											2020-01-02 08:56:37 +00:00
										 |  |  | BuildRequires:  %{python_module pytz}
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | BuildRequires:  %{python_module requests}
 | 
					
						
							| 
									
										
										
										
											2022-08-02 08:23:11 +00:00
										 |  |  | BuildRequires:  %{python_module responses}
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:11:52 +00:00
										 |  |  | BuildRequires:  %{python_module setuptools}
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | BuildRequires:  fdupes
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:11:52 +00:00
										 |  |  | BuildRequires:  python-rpm-macros
 | 
					
						
							| 
									
										
										
										
											2022-08-02 15:45:54 +00:00
										 |  |  | Requires:       python-PyYAML
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | Requires:       python-lxml
 | 
					
						
							| 
									
										
										
										
											2020-01-13 12:03:45 +00:00
										 |  |  | Requires:       python-python-dateutil
 | 
					
						
							| 
									
										
										
										
											2020-01-02 08:56:37 +00:00
										 |  |  | Requires:       python-pytz
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | Requires:       python-requests
 | 
					
						
							| 
									
										
										
										
											2022-06-09 15:20:24 +00:00
										 |  |  | Suggests:       openssh
 | 
					
						
							| 
									
										
										
										
											2020-01-13 12:04:20 +00:00
										 |  |  | BuildArch:      noarch
 | 
					
						
							| 
									
										
										
										
											2022-08-03 12:49:07 +00:00
										 |  |  | # Using 'if' instead of 'with' because the latter requires rpm >= 4.14
 | 
					
						
							| 
									
										
										
										
											2022-08-06 15:05:13 +00:00
										 |  |  | %if 0%{?suse_version} >= 1550
 | 
					
						
							| 
									
										
										
										
											2022-08-03 12:50:45 +00:00
										 |  |  | BuildRequires:  %{python_module cached-property if %python-base < 3.8}
 | 
					
						
							| 
									
										
										
										
											2022-08-06 15:05:13 +00:00
										 |  |  | %else
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module cached-property}
 | 
					
						
							|  |  |  | %endif
 | 
					
						
							| 
									
										
										
										
											2022-08-03 12:49:07 +00:00
										 |  |  | Requires:       (python-cached-property if python-base < 3.8)
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | %python_subpackages
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:11:52 +00:00
										 |  |  | OSC Tiny provides a minimalistic, transparent and class based client for
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | accessing the OpenBuildService API.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | For further details see:
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-02 08:22:03 +00:00
										 |  |  |  * https://osc-tiny.readthedocs.io/en/latest/
 | 
					
						
							|  |  |  |  * https://openbuildservice.org/
 | 
					
						
							|  |  |  |  * https://build.opensuse.org/apidocs/index
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							|  |  |  | %setup -q -n osc-tiny-%{version}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							|  |  |  | %python_build
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							|  |  |  | %python_install
 | 
					
						
							|  |  |  | %python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-02 08:22:03 +00:00
										 |  |  | %check
 | 
					
						
							|  |  |  | %pytest
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-03 12:10:50 +00:00
										 |  |  | %files %{python_files}
 | 
					
						
							|  |  |  | %doc README.md
 | 
					
						
							|  |  |  | %license LICENSE
 | 
					
						
							|  |  |  | %{python_sitelib}/*
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |