commit b1ca890ad9f78f19dfc5d612e5a13ffa29fac62634e17839b95b58f46ec38506 Author: Tomáš Chvátal Date: Mon Dec 18 10:45:31 2017 +0000 Accepting request 558059 from home:badshah400:Staging OBS-URL: https://build.opensuse.org/request/show/558059 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-limnoria?expand=0&rev=1 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/master-2017-10-25.tar.gz b/master-2017-10-25.tar.gz new file mode 100644 index 0000000..b5e3632 --- /dev/null +++ b/master-2017-10-25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cd4ab29d510fe7e84ed54bd8ba273acd2d2de2de5b133e679db54505f6c36b2 +size 957078 diff --git a/python-limnoria.changes b/python-limnoria.changes new file mode 100644 index 0000000..2f37d92 --- /dev/null +++ b/python-limnoria.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Mon Dec 18 08:48:19 UTC 2017 - badshah400@gmail.com + +- Update to master-2017-10-25: + * Aka: Escape the command in help strings, so they can be + copy-pasted into @aka add. +- Convert to python single-spec; disable python2 modules as + python2-SocksiPy is not available. +- Enable tests as part of %%check. + +------------------------------------------------------------------- +Fri Nov 25 01:23:30 UTC 2016 - badshah400@gmail.com + +- Initial package. + diff --git a/python-limnoria.spec b/python-limnoria.spec new file mode 100644 index 0000000..68a288d --- /dev/null +++ b/python-limnoria.spec @@ -0,0 +1,87 @@ +# +# spec file for package python-limnoria +# +# Copyright (c) 2016 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-%{**}} +%define skip_python2 1 # python2-SocksiPy not available +%define appname limnoria +%define srcver 2017-10-25 +Name: python-limnoria +Version: 2017.10.25 +Release: 0 +Summary: A modified version of Supybot (an IRC bot and framework) +License: BSD-3-Clause +Group: Development/Languages/Python +Url: https://github.com/ProgVal/Limnoria +Source: https://github.com/ProgVal/Limnoria/archive/master-%{srcver}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module SQLAlchemy} +BuildRequires: %{python_module SocksiPy} +BuildRequires: %{python_module chardet} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module ecdsa} +BuildRequires: %{python_module feedparser} +BuildRequires: %{python_module python-gnupg} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module python-dateutil} +BuildRequires: %{python_module pytz} +BuildRequires: %{python_module setuptools} +Requires: python-SQLAlchemy +Requires: python-SocksiPy +Requires: python-chardet +Requires: python-ecdsa +Requires: python-feedparser +Requires: python-gnupg +Requires: python-python-dateutil +Requires: python-pytz +Provides: Supybot = %{version} +Obsoletes: Supybot < 1.0 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%python_subpackages + +%description +Limnoria is a robust, full-featured Python IRC bot with a clean and flexible plugin API. It is equipped with a complete ACL system for specifying user permissions with as much as per-command granularity. Batteries are included in the form of numerous plugins already written. + +%prep +%setup -q -n Limnoria-master-%{srcver} +sed -i "1,4{/\/usr\/bin\/python/d}" plugins/Debug/plugin.py + +%build +%python_build + +%install +%python_install + +%python_expand %fdupes %{buildroot}%{$python_sitelib}/supybot/ + +%check +%{python_expand # +export PYTHONPATH=%{buildroot}%{python_sitelib}/ +%python_exec test/test.py +} + +%files %python_files +%defattr(-,root,root,-) +%doc LICENSE.md README.md CONTRIBUTING.md +%python3_only %{_bindir}/supybot +%python3_only %{_bindir}/supybot-* +%{python_sitelib}/* +%python3_only %{_mandir}/man1/supybot*%{ext_man} + +%changelog