forked from pool/python-pygn
- Clean up SPEC file, make rpmlint happy.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygn?expand=0&rev=3
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pygn
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,27 +12,26 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://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
|
||||
License: GPL-3.0-only
|
||||
Group: Productivity/Networking/News/Utilities
|
||||
URL: https://gitlab.com/mcepl/pyg
|
||||
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: %{python_module rply}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -55,7 +54,7 @@ will need it.
|
||||
It refers to rfc 822 (mail) and 850 (news).
|
||||
|
||||
%prep
|
||||
%setup -q -n pygn-%{version}
|
||||
%autosetup -p1 -n pygn-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -76,7 +75,13 @@ It refers to rfc 822 (mail) and 850 (news).
|
||||
%python_uninstall_alternative pygm2n pygn2m
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/mail2news.py
|
||||
%{python_sitelib}/news2mail.py
|
||||
%{python_sitelib}/whitelist.py
|
||||
%{python_sitelib}/wlp.py
|
||||
%{python_sitelib}/wlp_parser.py
|
||||
%{python_sitelib}/pygn-%{version}*-info
|
||||
%pycache_only %{python_sitelib}/__pycache__/*.pyc
|
||||
%python_alternative %{_bindir}/pygm2n
|
||||
%python_alternative %{_bindir}/pygn2m
|
||||
|
||||
|
Reference in New Issue
Block a user