# # spec file for package python-genfire # # Copyright (c) 2022 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/ # %define packagename genfire Name: python-genfire Version: 1.1.11 Release: 0 Summary: GENeralized Fourier Iterative REconstruction License: GPL-3.0-only URL: https://github.com/genfire-em/GENFIRE-Python Source: https://files.pythonhosted.org/packages/source/g/%{packagename}/%{packagename}-%{version}.tar.gz BuildRequires: %{python_module Pillow >= 4.1.1} BuildRequires: %{python_module PyQt5 >= 5.5.0} BuildRequires: %{python_module matplotlib >= 2.0.2} BuildRequires: %{python_module numpy >= 1.12.1} BuildRequires: %{python_module pyFFTW} BuildRequires: %{python_module pyparsing >= 2.2.0} BuildRequires: %{python_module scipy >= 0.19.0} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Pillow >= 4.1.1 Requires: python-PyQt5 >= 5.5.0 Requires: python-numpy >= 1.12.1 Requires: python-pyFFTW Requires: python-pyparsing >= 2.2.0 Requires: python-scipy >= 0.19.0 Requires: python-setuptools BuildArch: noarch Requires(post): update-alternatives Requires(postun):update-alternatives %python_subpackages %description GENeralized Fourier Iterative REconstruction (GENFIRE) is a python package for 3D reconstruction from arbitrarily oriented projection images %prep %setup -q -n %{packagename}-%{version} %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/genfire %check # No test given %post %python_install_alternative genfire %postun %python_uninstall_alternative genfire %files %{python_files} %doc README.md %python_alternative %{_bindir}/genfire %{python_sitelib}/genfire %{python_sitelib}/genfire-%{version}*-info %changelog