| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # spec file for package python-zstandard
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2022-01-31 23:16:49 +00:00
										 |  |  | # Copyright (c) 2022 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +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-05-24 13:42:31 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-02 01:10:37 +00:00
										 |  |  | %define skip_python2 1
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | Name:           python-zstandard
 | 
					
						
							| 
									
										
										
										
											2022-11-20 18:28:21 +00:00
										 |  |  | Version:        0.19.0
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | Release:        0
 | 
					
						
							|  |  |  | Summary:        Zstandard bindings for Python
 | 
					
						
							| 
									
										
										
										
											2019-05-24 13:42:31 +00:00
										 |  |  | License:        BSD-3-Clause
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | Group:          Development/Languages/Python
 | 
					
						
							| 
									
										
										
										
											2019-05-24 13:42:31 +00:00
										 |  |  | URL:            https://github.com/indygreg/python-zstandard
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | Source:         https://files.pythonhosted.org/packages/source/z/zstandard/zstandard-%{version}.tar.gz
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module devel}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module setuptools}
 | 
					
						
							|  |  |  | BuildRequires:  fdupes
 | 
					
						
							| 
									
										
										
										
											2019-05-24 13:42:31 +00:00
										 |  |  | BuildRequires:  libzstd-devel
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | BuildRequires:  python-rpm-macros
 | 
					
						
							|  |  |  | BuildRequires:  zstd
 | 
					
						
							| 
									
										
										
										
											2019-05-24 13:42:31 +00:00
										 |  |  | Requires:       python-cffi >= 1.11
 | 
					
						
							|  |  |  | Requires:       zstd
 | 
					
						
							|  |  |  | Conflicts:      python-zstd
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | # SECTION test requirements
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module cffi >= 1.11}
 | 
					
						
							| 
									
										
										
										
											2022-01-31 23:16:49 +00:00
										 |  |  | BuildRequires:  %{python_module hypothesis}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module pytest-xdist}
 | 
					
						
							| 
									
										
										
										
											2019-09-20 12:11:44 +00:00
										 |  |  | BuildRequires:  %{python_module pytest}
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | # /SECTION
 | 
					
						
							|  |  |  | %python_subpackages
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | Zstandard bindings for Python
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							|  |  |  | %setup -q -n zstandard-%{version}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							|  |  |  | export CFLAGS="%{optflags}"
 | 
					
						
							|  |  |  | %python_build
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							|  |  |  | %python_install
 | 
					
						
							|  |  |  | %python_expand %fdupes %{buildroot}%{$python_sitearch}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %check
 | 
					
						
							| 
									
										
										
										
											2022-02-02 01:10:37 +00:00
										 |  |  | # remove srcdir for tests collection of installed lib
 | 
					
						
							|  |  |  | mv zstandard zstandard.moved
 | 
					
						
							| 
									
										
										
										
											2019-09-20 12:11:44 +00:00
										 |  |  | %pytest_arch
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %files %{python_files}
 | 
					
						
							| 
									
										
										
										
											2022-01-31 23:16:49 +00:00
										 |  |  | %doc README.rst
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | %license LICENSE
 | 
					
						
							| 
									
										
										
										
											2022-02-02 01:10:37 +00:00
										 |  |  | %{python_sitearch}/zstandard
 | 
					
						
							|  |  |  | %{python_sitearch}/zstandard-%{version}*-info
 | 
					
						
							| 
									
										
										
										
											2019-04-30 20:09:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |