| 
									
										
										
										
											2013-09-30 15:38:30 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # spec file for package python-mockito
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2021-04-22 06:01:52 +00:00
										 |  |  | # Copyright (c) 2021 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2013-09-30 15:38:30 +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.
 | 
					
						
							| 
									
										
										
										
											2013-10-24 11:08:53 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-04 13:40:33 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							| 
									
										
										
										
											2013-09-30 15:38:30 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-12 08:14:10 +00:00
										 |  |  | %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
					
						
							| 
									
										
										
										
											2021-04-22 06:01:52 +00:00
										 |  |  | %define skip_python36 1
 | 
					
						
							| 
									
										
										
										
											2017-12-12 08:14:10 +00:00
										 |  |  | Name:           python-mockito
 | 
					
						
							| 
									
										
										
										
											2021-04-22 06:01:52 +00:00
										 |  |  | Version:        1.2.2
 | 
					
						
							| 
									
										
										
										
											2013-09-30 15:38:30 +00:00
										 |  |  | Release:        0
 | 
					
						
							|  |  |  | Summary:        Spying framework
 | 
					
						
							|  |  |  | License:        MIT
 | 
					
						
							| 
									
										
										
										
											2019-04-05 12:42:08 +00:00
										 |  |  | URL:            https://github.com/kaste/mockito-python
 | 
					
						
							| 
									
										
										
										
											2020-04-01 08:03:51 +00:00
										 |  |  | # https://github.com/kaste/mockito-python/issues/36
 | 
					
						
							|  |  |  | Source:         https://github.com/kaste/mockito-python/archive/%{version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2019-04-05 12:42:08 +00:00
										 |  |  | BuildRequires:  %{python_module numpy}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module pytest}
 | 
					
						
							| 
									
										
										
										
											2017-12-12 08:14:10 +00:00
										 |  |  | BuildRequires:  %{python_module setuptools}
 | 
					
						
							|  |  |  | BuildRequires:  fdupes
 | 
					
						
							|  |  |  | BuildRequires:  python-rpm-macros
 | 
					
						
							| 
									
										
										
										
											2017-12-12 08:22:17 +00:00
										 |  |  | BuildArch:      noarch
 | 
					
						
							| 
									
										
										
										
											2017-12-12 08:14:10 +00:00
										 |  |  | %ifpython2
 | 
					
						
							|  |  |  | Requires:       python2-funcsigs
 | 
					
						
							| 
									
										
										
										
											2013-09-30 15:38:30 +00:00
										 |  |  | %endif
 | 
					
						
							| 
									
										
										
										
											2017-12-12 08:14:10 +00:00
										 |  |  | %python_subpackages
 | 
					
						
							| 
									
										
										
										
											2013-09-30 15:38:30 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							| 
									
										
										
										
											2017-12-12 08:14:10 +00:00
										 |  |  | Mockito is a spying framework originally based on the Java library with the same name.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-09-30 15:38:30 +00:00
										 |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2020-04-01 08:03:51 +00:00
										 |  |  | %setup -q -n mockito-python-%{version}
 | 
					
						
							| 
									
										
										
										
											2013-09-30 15:38:30 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2017-12-12 08:14:10 +00:00
										 |  |  | %python_build
 | 
					
						
							| 
									
										
										
										
											2013-09-30 15:38:30 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							| 
									
										
										
										
											2017-12-12 08:14:10 +00:00
										 |  |  | %python_install
 | 
					
						
							|  |  |  | %python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
					
						
							| 
									
										
										
										
											2013-09-30 15:38:30 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-05 12:42:08 +00:00
										 |  |  | %check
 | 
					
						
							|  |  |  | %pytest
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-12 08:14:10 +00:00
										 |  |  | %files %{python_files}
 | 
					
						
							|  |  |  | %doc AUTHORS CHANGES.txt README.rst
 | 
					
						
							|  |  |  | %license LICENSE
 | 
					
						
							| 
									
										
										
										
											2013-09-30 15:38:30 +00:00
										 |  |  | %{python_sitelib}/*
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |