forked from pool/python-imagecodecs
		
	Accepting request 808757 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/808757 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-imagecodecs?expand=0&rev=7
This commit is contained in:
		
				
					committed by
					
						 Git OBS Bridge
						Git OBS Bridge
					
				
			
			
				
	
			
			
			
						parent
						
							acd53791aa
						
					
				
				
					commit
					1daf82d201
				
			| @@ -1,3 +1,8 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Mon May 25 10:59:24 UTC 2020 - Petr Gajdos <pgajdos@suse.com> | ||||
|  | ||||
| - %python3_only -> %python_alternative | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Thu Apr 23 10:58:48 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> | ||||
|  | ||||
|   | ||||
| @@ -54,6 +54,8 @@ BuildRequires:  pkgconfig(libwebp) | ||||
| BuildRequires:  pkgconfig(libzstd) | ||||
| BuildRequires:  pkgconfig(zlib) | ||||
| Requires:       python-numpy >= 1.11.3 | ||||
| Requires(post): update-alternatives | ||||
| Requires(postun): update-alternatives | ||||
| Recommends:     python-Pillow | ||||
| Recommends:     python-blosc | ||||
| Recommends:     python-lz4 | ||||
| @@ -83,6 +85,7 @@ export CFLAGS="%{optflags}" | ||||
|  | ||||
| %install | ||||
| %python_install | ||||
| %python_clone -a %{buildroot}%{_bindir}/imagecodecs | ||||
| %{python_expand rm -rf %{buildroot}%{$python_sitearch}/imagecodecs/licenses/ | ||||
| %fdupes %{buildroot}%{$python_sitearch} | ||||
| } | ||||
| @@ -94,10 +97,16 @@ mv imagecodecs __imagecodecs | ||||
| %pytest_arch tests | ||||
| mv __imagecodecs imagecodecs | ||||
|  | ||||
| %post | ||||
| %python_install_alternative imagecodecs | ||||
|  | ||||
| %postun | ||||
| %python_uninstall_alternative imagecodecs | ||||
|  | ||||
| %files %{python_files} | ||||
| %license LICENSE imagecodecs/licenses/* | ||||
| %doc README.rst | ||||
| %python3_only %{_bindir}/imagecodecs | ||||
| %python_alternative %{_bindir}/imagecodecs | ||||
| %{python_sitearch}/* | ||||
|  | ||||
| %changelog | ||||
|   | ||||
		Reference in New Issue
	
	Block a user