LINUX.ORG.RU

Ответ на: комментарий от carter

вот пример спека (все лишнее поскипал) - вместо gajim, gajim-lang - собираем gajim-gtk3-0, gajim-gtk3-lang

%define _version 1.1
%define python3_sitelib /usr/lib/python3.7/site-packages
Name:           gajim
Version:        1.1.2
Release:        70.2
Summary:        XMPP client written in Python and Gtk3
License:        GPL-3.0-only
Group:          Productivity/Networking/Talk/Clients
URL:            https://gajim.org/
Source:         https://gajim.org/downloads/%{_version}/%{name}-%{version}.tar.bz2
BuildRequires:  ca-certificates-mozilla
...
%description 

%package -n gajim-gtk3-0
Group:          Productivity/Networking/Talk/Clients
Summary:        XMPP client written in Python and Gtk3
Requires:       ca-certificates-mozilla
...
Recommends:     %{name}-gtk3-lang
...

%description -n gajim-gtk3-0
Gajim is a Jabber/XMPP client. It works with MATE and GNOME, but does
require neither to run.

...

%package -n gajim-gtk3-lang
Summary: Languages for package gajim

%description -n gajim-gtk3-lang
Provides translations to the package gajim

%prep

%build
python3 setup.py build

%install
python3 setup.py install \
  --root=%{buildroot} --prefix=%{_prefix}
....
%postun

%files -n gajim-gtk3-0
%license COPYING
...

%files -n gajim-gtk3-lang -f %{name}.lang

но у меня зависает скрипт на последнем этапе.
хз, надо е**ться, в общем..

BMX ★★☆ ()