]> git.pld-linux.org Git - packages/python-neovim-gui.git/commitdiff
new, version 0.1.3
authorElan Ruusamäe <glen@delfi.ee>
Sat, 17 Sep 2016 22:12:45 +0000 (01:12 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 17 Sep 2016 22:13:26 +0000 (01:13 +0300)
based on copr dperson/neovim package

https://copr-be.cloud.fedoraproject.org/results/dperson/neovim/fedora-rawhide-x86_64/00389778-python-neovim-gui/python-neovim-gui-0.1.3-3.fc25.src.rpm

python-neovim-gui.spec [new file with mode: 0644]

diff --git a/python-neovim-gui.spec b/python-neovim-gui.spec
new file mode 100644 (file)
index 0000000..6b3c967
--- /dev/null
@@ -0,0 +1,96 @@
+#
+# Conditional build:
+%bcond_without doc     # don't build doc
+%bcond_with    tests   # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define                module          neovim_gui
+%define                egg_name        neovim_gui
+Summary:       Python GTK GUI for neovim
+Name:          python-neovim-gui
+Version:       0.1.3
+Release:       1
+License:       Apache v2.0
+Group:         Libraries/Python
+Source0:       https://github.com/neovim/python-gui/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 99f03793e41150e71569c389a9256435
+URL:           https://github.com/neovim/python-gui
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules
+BuildRequires: python3-setuptools
+%endif
+Requires:      python-click
+Requires:      python-neovim
+Requires:      python-pygobject
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Simple nvim GUI implemented using GTK
+
+%package -n python3-neovim-gui
+Summary:       Python GTK GUI for neovim
+Group:         Libraries/Python
+Requires:      python3-click
+Requires:      python3-neovim
+Requires:      python3-pygobject
+
+%description -n python3-neovim-gui
+Simple nvim GUI implemented using GTK
+
+%prep
+%setup -q -n python-gui-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%py_postclean
+mv $RPM_BUILD_ROOT%{_bindir}/pynvim{,2}
+%endif
+
+%if %{with python3}
+%py3_install
+mv $RPM_BUILD_ROOT%{_bindir}/pynvim{,3}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/pynvim2
+%dir %{py_sitedir}/%{module}
+%{py_sitedir}/%{module}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/%{module}/screen.so
+%{py_sitedir}/%{egg_name}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-neovim-gui
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/pynvim3
+%dir %{py3_sitedir}/%{module}
+%{py3_sitedir}/%{module}/__pycache__
+%{py3_sitedir}/%{module}/*.py
+%attr(755,root,root) %{py3_sitedir}/%{module}/screen.*.so
+%{py3_sitedir}/%{egg_name}-%{version}-py*.egg-info
+%endif
This page took 0.141646 seconds and 4 git commands to generate.