From 8be538856a838456fbae72ca1bb4e58241df66a68ffc0381d4251e29cdd727bf Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 7 Jun 2018 18:22:44 +0000 Subject: [PATCH] Accepting request 615044 from devel:languages:python:misc a functional programming language that compiles to Python OBS-URL: https://build.opensuse.org/request/show/615044 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coconut?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + coconut-1.3.1.tar.gz | 3 ++ python-coconut.changes | 10 ++++ python-coconut.spec | 114 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 151 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 coconut-1.3.1.tar.gz create mode 100644 python-coconut.changes create mode 100644 python-coconut.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/coconut-1.3.1.tar.gz b/coconut-1.3.1.tar.gz new file mode 100644 index 0000000..f9b5ee0 --- /dev/null +++ b/coconut-1.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:311e5cbf8179a234a53abe748b4e2fa7c2d7ae658661075741d02f2cc21ba832 +size 132342 diff --git a/python-coconut.changes b/python-coconut.changes new file mode 100644 index 0000000..cccd37b --- /dev/null +++ b/python-coconut.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Thu May 24 17:29:32 UTC 2018 - toddrme2178@gmail.com + +- Fix dependencies + +------------------------------------------------------------------- +Thu Dec 7 19:55:07 UTC 2017 - sleep_walker@opensuse.org + +- take package from home:geewass:python +- rewrite to cleanup, use singlespec diff --git a/python-coconut.spec b/python-coconut.spec new file mode 100644 index 0000000..e6bfa3f --- /dev/null +++ b/python-coconut.spec @@ -0,0 +1,114 @@ +# +# spec file for package python-coconut +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-coconut +Version: 1.3.1 +Release: 0 +Summary: Coconut is a functional programming language that compiles to Python +License: MIT +Group: Development/Languages/Python +URL: https://github.com/evhub/coconut +Source: https://files.pythonhosted.org/packages/source/c/coconut/coconut-%{version}.tar.gz +BuildRequires: %{python_module Pygments >= 2.2} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module prompt_toolkit >= 1} +BuildRequires: %{python_module pyparsing >= 2.2} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: python2-futures >= 3.1 +# SECTION test requirements +BuildRequires: %{python_module cPyparsing >= 2.2.0.1.1} +BuildRequires: %{python_module jupyter >= 1} +BuildRequires: %{python_module jupyter_console >= 5.2} +BuildRequires: %{python_module jupyter_ipykernel >= 4.6} +BuildRequires: %{python_module jupyter_ipython >= 5.4} +BuildRequires: %{python_module psutil >= 5} +BuildRequires: %{python_module pytest >= 3} +BuildRequires: %{python_module requests >= 2} +BuildRequires: %{python_module watchdog >= 0.8} +BuildRequires: python3-mypy >= 0.540 +# /SECTION +Requires: python-Pygments >= 2.2 +Requires: python-prompt_toolkit >= 1 +Requires: python-pyparsing >= 2.2 +Requires: python-six +Recommends: python-cPyparsing >= 2.2.0.1.1 +Recommends: python-jupyter >= 1 +Recommends: python-jupyter_console >= 5.2 +Recommends: python-jupyter_ipykernel >= 4.6 +Recommends: python-jupyter_ipython >= 5.4 +Recommends: python-mypy >= 0.540 +Recommends: python-psutil >= 5 +Recommends: python-requests >= 2 +Recommends: python-watchdog >= 0.8 +%ifpython2 +Requires: python-futures >= 3.1 +%endif +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +Coconut is a functional programming language that compiles to +Python. Since all valid Python is valid Coconut, using Coconut will +only extend and enhance what you're already capable of in Python. + +Why use Coconut? Coconut is built to be useful. Coconut enhances the +repertoire of Python programmers to include the tools of modern +functional programming, in such a way that those tools are easy to use +and immensely powerful; that is, Coconut does to functional +programming what Python did to imperative programming. And Coconut +code runs the same on any Python version, making the Python 2/3 split +a thing of the past. + +%prep +%setup -q -n coconut-%{version} +find . -type f -exec sed -i 's/\r$//' {} \; +find . -name '*.py' -exec sed -i -e '/^#!\//, 1d' {} \; + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}/%{python_sitelib}/ +%python_clone -a %{buildroot}%{_bindir}/coconut + +%post +%python_install_alternative coconut + +%postun +%python_uninstall_alternative coconut + +%files %{python_files} +%doc README.rst CONTRIBUTING.md DOCS.md FAQ.md HELP.md +%license LICENSE.txt +%python2_only %{_bindir}/coconut-py2* +%python3_only %{_bindir}/coconut-py3* +%python_alternative %{_bindir}/coconut +%python3_only %{_bindir}/coconut-v1* +%python3_only %{_bindir}/coconut-release* +%python3_only %{_bindir}/coconut-run +%{python_sitelib}/coconut/ +%{python_sitelib}/coconut-%{version}-py*.egg-info + +%changelog