1
0
2024-07-17 02:13:55 +00:00
committed by Git OBS Bridge
commit a19079aa47
5 changed files with 166 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e13f43a3b9b68d18828df3066f46f2cb4d37f5c4129dd6ac879f64401a492995
size 11316

58
python-cmapfile.changes Normal file
View File

@@ -0,0 +1,58 @@
-------------------------------------------------------------------
Wed Jul 17 02:13:38 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Restrict numpy to < 2.
-------------------------------------------------------------------
Mon Apr 8 10:28:32 UTC 2024 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons
-------------------------------------------------------------------
Mon Sep 4 16:02:53 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2023.8.30:
* Drop support for Python 3.8 and numpy < 1.22 (NEP29).
-------------------------------------------------------------------
Thu Jan 26 22:55:59 UTC 2023 - Ben Greiner <code@bnavigator.de>
- Clean specfile
- Unify buildtime and runtime requirements: Use the setup.py
specification, not the loose recommendation from the README
-------------------------------------------------------------------
Fri Jan 13 09:42:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2022.9.29:
* Make subsampling compatible with ChimeraX (breaking).
* Fix deprecated import of scipy.ndimage.interpolation.zoom.
* Switch to Google style docstrings.
* Add type hints.
* Drop support for Python 3.7 and numpy < 1.19 (NEP29).
* Fix LSM conversion with tifffile >= 2021.2.26.
* Remove support for Python 3.6 (NEP 29).
-------------------------------------------------------------------
Fri Feb 12 22:10:27 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Skip python36 build. Due to NEP 29: TW python36-numpy -scipy and
-tifffile are no more
-------------------------------------------------------------------
Fri Jul 31 15:10:23 UTC 2020 - andy great <andythe_great@pm.me>
- Update spec file to use python alternative.
-------------------------------------------------------------------
Tue Jun 2 22:00:17 UTC 2020 - andy great <andythe_great@pm.me>
- Update to version 2020.1.1.
* Do not write name attribute. Remove support for Python 2.7 and
3.5. Update copyright.
- Clean spec file.
-------------------------------------------------------------------
Mon Mar 4 07:38:46 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v2019.1.1

81
python-cmapfile.spec Normal file
View File

@@ -0,0 +1,81 @@
#
# spec file for package python-cmapfile
#
# Copyright (c) 2024 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/
#
%{?sle15_python_module_pythons}
Name: python-cmapfile
Version: 2023.8.30
Release: 0
Summary: Write Chimera Map (CMAP) files
License: BSD-3-Clause
URL: https://github.com/cgohlke/cmapfile/
# SourceRepository: https://github.com/cgohlke/cmapfile
Source: https://github.com/cgohlke/cmapfile/archive/v%{version}.tar.gz#/cmapfile-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module h5py >= 3.1}
BuildRequires: %{python_module numpy >= 1.22 with %python-numpy < 2}
BuildRequires: %{python_module oiffile >= 2021.6.6}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module scipy >= 1.5}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tifffile >= 2021.11.2}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-h5py >= 3.1
Requires: python-oiffile >= 2021.6.6
Requires: python-scipy >= 1.5
Requires: python-tifffile >= 2021.11.2
Requires: (python-numpy >= 1.22 with python-numpy < 2)
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Create Chimera MAP files from various file formats containing volume data.
%prep
%setup -q -n cmapfile-%{version}
# Fix warning wrong-file-end-of-line-encoding
sed -i 's/\r//' README.rst
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/cmapfile
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative cmapfile
%postun
%python_uninstall_alternative cmapfile
%check
# No tests by upstream
%files %{python_files}
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/cmapfile
%{python_sitelib}/cmapfile
%{python_sitelib}/cmapfile-%{version}.dist-info
%changelog