From 03d20818fea78fa3b7f6964bdea310e4b3cb9d49029ad269bd6649376416eabf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 24 May 2020 07:54:13 +0000 Subject: [PATCH] Accepting request 808318 from home:andythe_great Fix python Requires tag. OBS-URL: https://build.opensuse.org/request/show/808318 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-genfire?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + genfire-1.1.11.tar.gz | 3 ++ python-genfire.changes | 19 ++++++++++ python-genfire.spec | 81 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 127 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 genfire-1.1.11.tar.gz create mode 100644 python-genfire.changes create mode 100644 python-genfire.spec 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/genfire-1.1.11.tar.gz b/genfire-1.1.11.tar.gz new file mode 100644 index 0000000..27d9e2e --- /dev/null +++ b/genfire-1.1.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d1e3a0e54ab526d3ae7394f1e96d7aa1ce8ce40302422bbadf76e0e18a74114 +size 192839 diff --git a/python-genfire.changes b/python-genfire.changes new file mode 100644 index 0000000..371266d --- /dev/null +++ b/python-genfire.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Sat May 23 02:18:34 UTC 2020 - andy great + +- Fix python Requires tag. + +------------------------------------------------------------------- +Fri May 15 23:51:39 UTC 2020 - andy great + +- Cleanup spec file. Fix dependencies. + +------------------------------------------------------------------- +Fri May 15 01:49:59 UTC 2020 - andy great + +- Fix build for python 2. + +------------------------------------------------------------------- +Mon Apr 13 15:27:17 UTC 2020 - andy great + +- Initial package release. diff --git a/python-genfire.spec b/python-genfire.spec new file mode 100644 index 0000000..822fff6 --- /dev/null +++ b/python-genfire.spec @@ -0,0 +1,81 @@ +# +# spec file for package python3-genfire +# +# 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/ +# + + +%define packagename genfire +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-genfire +Version: 1.1.11 +Release: 0 +Summary: GENeralized Fourier Iterative REconstruction +License: GPL-3.0-only +Group: Development/Languages/Python +URL: https://github.com/genfire-em/GENFIRE-Python +Source: https://files.pythonhosted.org/packages/1e/e3/bb80c9e9f9b0255f70b230baf05609122a317945fa623eee8aba8f9ec8ec/%{packagename}-%{version}.tar.gz +BuildRequires: fdupes +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 pyparsing >= 2.2.0} +BuildRequires: %{python_module scipy >= 0.19.0} +BuildRequires: %{python_module six >= 1.10.0} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pyFFTW} +Requires: python-Pillow >= 4.1.1 +Requires: python-PyQt5 >= 5.5.0 +Requires: python-numpy >= 1.12.1 +Requires: python-pyparsing >= 2.2.0 +Requires: python-scipy >= 0.19.0 +Requires: python-six >= 1.10.0 +Requires: python-setuptools +Requires: python-pyFFTW +BuildArch: noarch +%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} + +%check +# No test given + +%files %{python_files} +%doc README.md +%{_bindir}/genfire +%dir %{python_sitelib}/genfire/ +%dir %{python_sitelib}/genfire/gui/ +%dir %{python_sitelib}/genfire-1.1.11-py%{python_version}.egg-info/ +%{python_sitelib}/genfire/*.py* +%{python_sitelib}/genfire/gui/*.py* +%{python_sitelib}/genfire-1.1.11-py%{python_version}.egg-info/* +%pycache_only %{python_sitelib}/genfire/__pycache__ +%pycache_only %{python_sitelib}/genfire/gui/__pycache__ + + +%changelog