commit 8ecc0e08e39320226f453a2d86bf213d70a6463f5a6e80e2b3a19bf188e36e80 Author: Tomáš Chvátal Date: Tue May 12 08:25:24 2020 +0000 Accepting request 802790 from home:andythe_great - Remove not building for python2. - Add dependencies required for building with python 2. There seems to be an issue not recognizing python-blosc, could it be that it mrcz need higher version of blosc? OBS-URL: https://build.opensuse.org/request/show/802790 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mrcz?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-mrcz-0.5.6.tar.gz b/python-mrcz-0.5.6.tar.gz new file mode 100644 index 0000000..0f28d56 --- /dev/null +++ b/python-mrcz-0.5.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8568a9d9fbf3fa8d1097f4b00edd0ed7ab9dcfda97fe236e05076e67b62fae13 +size 56897 diff --git a/python-mrcz.changes b/python-mrcz.changes new file mode 100644 index 0000000..3751392 --- /dev/null +++ b/python-mrcz.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Mon May 11 16:19:40 UTC 2020 - andy great + +- Bring back build for python 2. +- Fix dependencies for building with python 2. + +------------------------------------------------------------------- +Sat May 9 15:21:11 UTC 2020 - andy great + +- Update to version 0.5.6 + * In 0.5.5 a for-loop was omitted which lead to every frame being + the zeroth frame in the stack. For this reason, upgrading from + 0.5.5 is _strongly_ recommended. +- Clean up spec file. + +------------------------------------------------------------------- +Tue Dec 10 16:30:58 UTC 2019 - Todd R + +- initial version diff --git a/python-mrcz.spec b/python-mrcz.spec new file mode 100644 index 0000000..bcc7a6b --- /dev/null +++ b/python-mrcz.spec @@ -0,0 +1,75 @@ +# +# spec file for package python-mrcz +# +# Copyright (c) 2020 SUSE LLC +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-mrcz +Version: 0.5.6 +Release: 0 +Summary: MRCZ meta-compressed image file-format library +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/em-MRCZ/python-mrcz +Source: https://github.com/em-MRCZ/python-mrcz/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: %{python_module blosc} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +%if 0%{?suse_version} <= 1510 +BuildRequires: python-enum34 +BuildRequires: python-futures +%endif +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python3-numpy +Requires: python3-blosc +%if 0%{?suse_version} <= 1510 +Requires: python-enum34 +Requires: python-futures +%endif +BuildArch: noarch +%python_subpackages + +%description +mrcz is a package designed to supplement the venerable MRC image file +format with a highly efficient compressed variant, using the blosc +meta-compressor library to shrink files on disk and greatly accelerate +file input/output for the era of "Big Data" in electron and optical +microscopy. + +%prep +%setup -q + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc AUTHORS.txt README.rst +%license LICENSE.txt +%dir %{python_sitelib}/mrcz/ +%pycache_only %{python_sitelib}/mrcz-%{version}-py%{python_version}.egg-info/ +%pycache_only %{python_sitelib}/mrcz/*.py +%pycache_only %{python_sitelib}/mrcz/__pycache__/ + +%changelog