From: "Vladimir D. Seleznev" <vseleznv@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] [SCM] m/mathomatic/mathomatic.spec
Date: Thu, 7 Nov 2019 21:21:56 +0300
Message-ID: <20191107182156.GA1803808@portlab> (raw)
In-Reply-To: <20191107155612.49CBD84402E3@gitery.altlinux.org>
On Thu, Nov 07, 2019 at 03:56:12PM +0000, SpecBot wrote:
> commit dfd8a9c7e63ec45e2b5c529875a9b60c8de9d90d
> Author: Andrey Bychkov <mrdrew@altlinux.org>
> Date: Thu Oct 31 15:00:00 2019 +0300
>
> 240032: mathomatic-16.0.5-alt3
>
> - python2 -> python3
>
> diff --git a/m/mathomatic/mathomatic.spec b/m/mathomatic/mathomatic.spec
> index 3d2c36d..50d144f 100644
> --- a/m/mathomatic/mathomatic.spec
> +++ b/m/mathomatic/mathomatic.spec
> @@ -1,6 +1,7 @@
> Name: mathomatic
> Version: 16.0.5
> -Release: alt2
> +Release: alt3
> +
> Summary: Small, portable symbolic math program
> License: LGPL
> Group: Sciences/Mathematics
> @@ -9,8 +10,9 @@ Url: http://www.mathomatic.org/
> Source: %name-%version.tar.bz2
> Patch: %name-16.0.1-m4.patch
>
> -# Automatically added by buildreq on Thu Jun 24 2010
> BuildRequires: libncurses-devel libreadline-devel
> +BuildRequires: python-tools-2to3
> +
>
> %description
> Mathomatic is a small, portable symbolic math program that can automatically
> @@ -21,10 +23,19 @@ Gesslein II and has been under development since 1986.
> %prep
> %setup
> %patch -p1
> +
> # Hack out 15.6.3 install -Cv
> sed -i 's/-Cv//' makefile
> sed -i 's/-Cv//' primes/makefile
>
> +# py2 -> py3
> +find -type f \( -name 'matho-mult' -o -name 'matho-sum' -o -name 'primorial' \
> + -o -name 'factorial' \) -exec 2to3 -w -n '{}' +
> +
^ Этот способ не работает.
george@ добавляет:
2to3 в большинстве случаев _не_ генерирует рабочий код. Это просто
вспомогательный инструмент для _ручного_ перевода, и после каждого
перевода их надо проверять.
Если хочется избавиться от проектов на Python2, лучше удалять пакеты, а
не делать их неработающими.
> +sed -i 's|#!/usr/bin/python|#!/usr/bin/python3|' \
> + $(find ./ -type f \( -name 'matho-mult' -o -name 'matho-sum' \
> + -o -name 'primorial' -o -name 'factorial' \))
> +
> %build
> %make_build READLINE=1 mathdocdir=%_defaultdocdir/%name-%version
> %make_build -C primes READLINE=1 mathdocdir=%_defaultdocdir/%name-%version
> @@ -48,7 +59,11 @@ make test
> %_niconsdir/%name.png
> %_desktopdir/%name.desktop
>
> +
> %changelog
> +* Thu Oct 31 2019 Andrey Bychkov <mrdrew@altlinux.org> 16.0.5-alt3
> +- python2 -> python3
> +
> * Tue Feb 05 2019 Fr. Br. George <george@altlinux.ru> 16.0.5-alt2
> - Rebuild with libreadline.so.7
--
С уважением,
Владимир Селезнев
next parent reply other threads:[~2019-11-07 18:21 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-07 18:21 ` Vladimir D. Seleznev [this message]
2019-11-07 20:17 ` Stanislav Levin
2019-11-08 6:18 ` Fr. Br. George
2019-11-08 7:12 ` Stanislav Levin
2019-11-08 18:24 ` [devel] [JT] " Fr. Br. George
2019-11-08 7:26 ` [devel] " Anton Farygin
2019-11-08 18:26 ` Fr. Br. George
2019-11-09 7:01 ` Anton Farygin
2019-11-15 23:04 ` [devel] О переводе модулей на python3 Dmitry V. Levin
2019-11-17 18:30 ` Anton Farygin
2019-11-17 18:30 ` Anton Farygin
2019-11-17 21:19 ` Andrey Savchenko
2019-11-18 3:52 ` Anton Farygin
2019-11-18 4:11 ` Andrey Savchenko
2019-11-18 6:33 ` Anton Farygin
2019-11-18 4:09 ` Anton Farygin
2019-11-18 4:52 ` Антон Мидюков
2019-11-18 6:39 ` Anton Farygin
2019-11-18 7:17 ` Антон Мидюков
2019-11-18 7:49 ` Denis Medvedev
2019-11-18 7:53 ` Anton Farygin
2019-11-18 11:18 ` Dmitry V. Levin
2019-11-18 11:30 ` Anton Farygin
2019-11-18 11:22 ` Dmitry V. Levin
2019-11-18 11:32 ` Anton Farygin
2019-11-18 12:25 ` Michael Shigorin
2019-11-18 12:40 ` Grigory Ustinov
2019-11-18 12:45 ` Andrey Bychkov
2019-11-18 16:06 ` Anton Farygin
2019-11-18 15:24 ` Vladimir D. Seleznev
2019-11-18 6:48 ` [devel] О переводе модулей на python3 (was: [SCM] m/mathomatic/mathomatic.spec) Stanislav Levin
2019-11-18 13:07 ` Andrey Savchenko
2019-11-18 13:14 ` [devel] qt3 Dmitry V. Levin
2019-11-18 16:03 ` [devel] О переводе модулей на python3 (was: [SCM] m/mathomatic/mathomatic.spec) Alexey V. Vissarionov
2019-11-18 16:08 ` [devel] О переводе модулей на python3 Anton Farygin
2019-11-08 18:48 ` [devel] [SCM] m/mathomatic/mathomatic.spec Fr. Br. George
2019-11-11 14:34 ` Fr. Br. George
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191107182156.GA1803808@portlab \
--to=vseleznv@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git