From 7e4902820a14168a985bd3e880331b7516e4f066f58aa2791b58ea8979beb435 Mon Sep 17 00:00:00 2001 From: Petr Cervinka Date: Fri, 9 Nov 2018 12:06:02 +0000 Subject: [PATCH] Accepting request 647569 from home:czerw:branches:devel:languages:python - Removed copied link reference from spec file OBS-URL: https://build.opensuse.org/request/show/647569 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astor?expand=0&rev=3 --- python-astor.changes | 5 +++++ python-astor.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-astor.changes b/python-astor.changes index 6edd1f9..9224c04 100644 --- a/python-astor.changes +++ b/python-astor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 9 12:03:52 UTC 2018 - Petr Cervinka + +- Removed copied link reference from spec file + ------------------------------------------------------------------- Fri Nov 9 10:27:55 UTC 2018 - cgoll@suse.com diff --git a/python-astor.spec b/python-astor.spec index 68cbe67..b08b056 100644 --- a/python-astor.spec +++ b/python-astor.spec @@ -12,7 +12,8 @@ # 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-%{**}} @@ -20,14 +21,14 @@ Name: python-astor Version: 0.7.1 Release: 0 -License: BSD-3-Clause Summary: Read/rewrite/write Python ASTs -Url: https://github.com/berkerpeksag/astor +License: BSD-3-Clause Group: Development/Languages/Python +Url: https://github.com/berkerpeksag/astor Source: https://github.com/berkerpeksag/astor/archive/%{version}.tar.gz#/astor-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -35,7 +36,7 @@ BuildArch: noarch %description astor is designed to allow easy manipulation of Python source via the AST. There are some other similar libraries, but astor focuses on the following areas: -- Round-trip an AST back to Python [1]_: +- Round-trip an AST back to Python: - Modified AST doesn't need linenumbers, ctx, etc. or otherwise be directly compileable for the round-trip to work. - Easy to read generated code as, well, code @@ -60,6 +61,7 @@ There are some other similar libraries, but astor focuses on the following areas %setup -q -n astor-%{version} # ugly fix for the use of /usr/bin/env sed -i 's@env @@' astor/rtrip.py + %build %python_build