| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # spec file for package python-lz4
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2024-01-13 20:42:02 +00:00
										 |  |  | # Copyright (c) 2024 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42: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.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-25 12:46:18 +00:00
										 |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							| 
									
										
										
										
											2013-10-24 11:08:10 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-11 11:42:35 +00:00
										 |  |  | %{?sle15_python_module_pythons}
 | 
					
						
							| 
									
										
										
										
											2019-02-06 00:48:46 +00:00
										 |  |  | Name:           python-lz4
 | 
					
						
							| 
									
										
										
										
											2024-01-13 20:42:02 +00:00
										 |  |  | Version:        4.3.3
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | Release:        0
 | 
					
						
							|  |  |  | Summary:        LZ4 Bindings for Python
 | 
					
						
							| 
									
										
										
										
											2017-07-24 18:56:12 +00:00
										 |  |  | License:        BSD-3-Clause
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | Group:          Development/Languages/Python
 | 
					
						
							| 
									
										
										
										
											2018-07-20 10:34:25 +00:00
										 |  |  | URL:            https://github.com/python-lz4/python-lz4
 | 
					
						
							| 
									
										
										
										
											2019-02-06 00:48:46 +00:00
										 |  |  | Source:         https://files.pythonhosted.org/packages/source/l/lz4/lz4-%{version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:05:43 +00:00
										 |  |  | BuildRequires:  %{python_module devel >= 3.7}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module pip}
 | 
					
						
							| 
									
										
										
										
											2018-07-20 10:34:25 +00:00
										 |  |  | BuildRequires:  %{python_module pkgconfig}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module psutil}
 | 
					
						
							| 
									
										
										
										
											2019-06-17 12:01:43 +00:00
										 |  |  | BuildRequires:  %{python_module pytest}
 | 
					
						
							| 
									
										
										
										
											2019-02-06 00:48:46 +00:00
										 |  |  | BuildRequires:  %{python_module setuptools_scm}
 | 
					
						
							| 
									
										
										
										
											2019-06-17 12:01:43 +00:00
										 |  |  | BuildRequires:  %{python_module setuptools}
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:05:43 +00:00
										 |  |  | BuildRequires:  %{python_module wheel}
 | 
					
						
							| 
									
										
										
										
											2019-02-06 00:48:46 +00:00
										 |  |  | BuildRequires:  fdupes
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:05:43 +00:00
										 |  |  | BuildRequires:  liblz4-devel >= 1.7.5
 | 
					
						
							| 
									
										
										
										
											2017-07-07 13:03:07 +00:00
										 |  |  | BuildRequires:  python-rpm-macros
 | 
					
						
							|  |  |  | %python_subpackages
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							| 
									
										
										
										
											2019-02-06 00:48:46 +00:00
										 |  |  | This package provides python bindings for the lz4 compression library.
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							| 
									
										
										
										
											2019-02-06 00:48:46 +00:00
										 |  |  | %setup -q -n lz4-%{version}
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
										
										
											2020-04-15 11:01:48 +00:00
										 |  |  | # not neccessary, but ensure we use system lib
 | 
					
						
							|  |  |  | rm -r lz4libs
 | 
					
						
							| 
									
										
										
										
											2017-07-07 13:03:07 +00:00
										 |  |  | export CFLAGS="%{optflags}"
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:05:43 +00:00
										 |  |  | %pyproject_wheel
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:05:43 +00:00
										 |  |  | %pyproject_install
 | 
					
						
							| 
									
										
										
										
											2019-02-06 00:48:46 +00:00
										 |  |  | %python_expand %fdupes %{buildroot}%{$python_sitearch}
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-17 12:01:43 +00:00
										 |  |  | %check
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:05:43 +00:00
										 |  |  | # lz4.stream is not compiled by default: https://github.com/python-lz4/python-lz4/issues/240
 | 
					
						
							|  |  |  | ignoretest="--ignore tests/stream"
 | 
					
						
							|  |  |  | %pytest_arch $ignoretest
 | 
					
						
							| 
									
										
										
										
											2018-07-20 10:34:25 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-07 13:03:07 +00:00
										 |  |  | %files %{python_files}
 | 
					
						
							| 
									
										
										
										
											2018-07-20 10:34:25 +00:00
										 |  |  | %license LICENSE
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | %doc README.rst
 | 
					
						
							| 
									
										
										
										
											2019-02-06 00:48:46 +00:00
										 |  |  | %{python_sitearch}/lz4/
 | 
					
						
							| 
									
										
										
										
											2023-03-13 08:05:43 +00:00
										 |  |  | %{python_sitearch}/lz4-%{version}.dist-info
 | 
					
						
							| 
									
										
										
										
											2012-11-29 17:42:59 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-10-24 11:08:10 +00:00
										 |  |  | %changelog
 |