commit 4d0eec970f273cda20d6d12dc5c3679b2ef0502005511f055a8ce82c0435c877 Author: Matej Cepl Date: Wed Jul 1 14:30:18 2020 +0000 Accepting request 818135 from home:mcepl:work New package for Factory. OBS-URL: https://build.opensuse.org/request/show/818135 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygn?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/pygn-0.10.2.tar.gz b/pygn-0.10.2.tar.gz new file mode 100644 index 0000000..5d2f9ad --- /dev/null +++ b/pygn-0.10.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79f6415fd917758df00234d817aa7b02e5880d478c1bf03330fab2b377d3dda7 +size 12788 diff --git a/python-pygn.changes b/python-pygn.changes new file mode 100644 index 0000000..0ce1632 --- /dev/null +++ b/python-pygn.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Wed Jul 1 14:23:32 UTC 2020 - Matej Cepl + +- Update to 0.10.2: + - Fix packaging, switch off failing tests for now. + +------------------------------------------------------------------- +Wed Jul 1 10:28:22 UTC 2020 - Matej Cepl + +- Initial packaging effort diff --git a/python-pygn.spec b/python-pygn.spec new file mode 100644 index 0000000..badaf90 --- /dev/null +++ b/python-pygn.spec @@ -0,0 +1,83 @@ +# +# spec file for package python-pygn +# +# Copyright (c) 2020 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-pygn +Version: 0.10.2 +Release: 0 +License: GPL-3.0 +Summary: The Python Gateway Script: news2mail mail2news gateway +Url: https://gitlab.com/mcepl/pyg +Group: Productivity/Networking/News/Utilities +Source: https://files.pythonhosted.org/packages/source/p/pygn/pygn-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module rply} +BuildRequires: %{python_module pytest} +BuildRequires: fdupes +BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives + +%python_subpackages + +%description +Python Gateway Script from news to mail and vice versa. + +It is intended to be a full SMTP/NNTP rfc compliant gateway +with whitelist manager. + +You will probably have to install a mail-transport-agent and/or +news-transport-system package to manage SMTP/NNTP traffic. + +MTA is needed for mail2news service, since mail have to be +processed on a box where pyg is installed. You can use a remote +smtpserver for news2mail. + +News system is useful but not needed, since you can send articles to a +remote SMTP server (ie: moderated NG) where is installed pyg, otherwise you +will need it. + +It refers to rfc 822 (mail) and 850 (news). + +%prep +%setup -q -n pygn-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/pygm2n +%python_clone -a %{buildroot}%{_bindir}/pygn2m +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%post +%python_install_alternative pygm2n pygn2m + +%postun +%python_uninstall_alternative pygm2n pygn2m + +%files %{python_files} +%{python_sitelib}/* +%python_alternative %{_bindir}/pygm2n +%python_alternative %{_bindir}/pygn2m + +%changelog