diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b6677a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +visvis-*.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 30facb6..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-visvis - -The python-visvis package \ No newline at end of file diff --git a/python-visvis.spec b/python-visvis.spec new file mode 100644 index 0000000..458ca4b --- /dev/null +++ b/python-visvis.spec @@ -0,0 +1,76 @@ +%global srcname visvis +Name: python-%{srcname} +Version: 1.11.1 +Release: 3%{?dist} +Summary: Python library for visualization of 1D to 4D data in an object oriented way +License: BSD +URL: https://github.com/almarklein/%{srcname} +Source0: %{url}/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz +BuildArch: noarch + +%global _description\ +Visvis is a pure Python library for visualization of 1D to 4D data in an\ +object oriented way. Essentially, visvis is an object oriented layer of\ +Python on top of OpenGl, thereby combining the power of OpenGl with the\ +usability of Python. A Matlab/Matplotlib-like interface in the form of a\ +set of functions allows easy creation of objects (e.g. plot(), imshow(),\ +volshow(), surf()). + +%description +%{_description} + +%package -n python2-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{srcname}} + +BuildRequires: python2-devel, python2-setuptools +Requires: python2-numpy, python2-pyopengl +Recommends: PyQt4, python2-wxpython4, python-pyside +Recommends: python2-gobject + +%description -n python2-%{srcname} +%{_description} + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: python3-devel, python3-setuptools +Requires: python3-numpy, python3-pyopengl +Recommends: python3-PyQt4, python3-wxpython4 +Recommends: python3-gobject + +%description -n python3-%{srcname} +%{_description} + +%prep +%setup -n %{srcname}-%{version} + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%files -n python2-%{srcname} +%license license.txt +%doc README.md +%{python2_sitelib}/%{srcname} +%{python2_sitelib}/%{srcname}-%{version}-*.egg-info + +%files -n python3-%{srcname} +%license license.txt +%doc README.md +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/%{srcname}-%{version}-*.egg-info + +%changelog +* Fri Jun 15 2018 Jaroslav Škarvada - 1.11.1-3 +- Simplified source URL + +* Fri Jun 15 2018 Jaroslav Škarvada - 1.11.1-2 +- Simplified the spec + +* Thu Jun 7 2018 Jaroslav Škarvada - 1.11.1-1 +- Initial release diff --git a/sources b/sources new file mode 100644 index 0000000..dd00b2e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (visvis-1.11.1.tar.gz) = 923a7081b41cd6d4676b88afeb72b5031ba8321cf04fd0c79f34b772e4bbe80fe098861e478e93cf9b779e8670a8ae5c51172b31548f39d85d5186696c8ced87