Skip to content

Commit c971f4c

Browse files
committed
Updating package control files.
1 parent 7b3422e commit c971f4c

2 files changed

Lines changed: 20 additions & 36 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ install = ['--tags=python']
88

99
[project]
1010
name = 'pytn3270'
11-
version = '1.2.8'
11+
version = '5.5.0'
1212
description = 'Python bindings for lib3270/pw3270'
1313
readme = 'README.md'
1414
requires-python = '>=3.8'

rpm/python-tn3270.spec

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717

1818
%define skip_python2 1
1919

20-
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
21-
2220
Summary: Python bindings for lib3270/pw3270
2321
Name: python-tn3270
24-
Version: 5.5.0
22+
Version: 5.5
2523
Release: 0
2624
License: GPL-2.0
2725
Source: %{name}-%{version}.tar.xz
@@ -30,56 +28,42 @@ Group: Development/Libraries/Python
3028

3129
BuildRoot: /var/tmp/%{name}-%{version}
3230

33-
BuildRequires: autoconf >= 2.61
34-
BuildRequires: automake
35-
BuildRequires: binutils
36-
BuildRequires: coreutils
31+
BuildRequires: meson
3732
BuildRequires: gcc-c++
38-
BuildRequires: m4
39-
BuildRequires: pkgconfig
40-
BuildRequires: fdupes
41-
BuildRequires: %{pythons}
42-
BuildRequires: libtool
43-
44-
BuildRequires: python-rpm-macros
33+
BuildRequires: pkgconfig(dbus-1)
34+
BuildRequires: %{python_module devel}
4535

46-
BuildRequires: pkgconfig(libipc3270) >= 5.5
47-
BuildRequires: pkgconfig(python3)
36+
# https://en.opensuse.org/openSUSE:Packaging_Python
37+
BuildRequires: python-rpm-macros
38+
BuildRequires: %{python_module packaging}
39+
BuildRequires: %{python_module pip}
40+
BuildRequires: %{python_module wheel}
41+
BuildRequires: %{python_module meson-python}
42+
BuildRequires: fdupes
4843

49-
BuildRequires: %{python_module devel}
50-
BuildRequires: %{python_module setuptools}
44+
BuildRequires: pkgconfig(libipc3270) >= 5.5.0
5145

5246
Recommends: pw3270-plugin-ipc
5347

54-
%python_subpackages
55-
5648
%description
5749
This is an extension allowing tn3270 access for python applications
5850
using lib3270 directly or ipc calls to an enabled pw3270 window.
5951

60-
%prep
61-
62-
%setup
63-
64-
NOCONFIGURE=1 ./autogen.sh
52+
%python_subpackages
6553

66-
%configure --with-python-sitelib=%{python_sitelib}
54+
%prep
55+
%autosetup
6756

6857
%build
69-
%python_build
58+
%pyproject_wheel
7059

7160
%install
72-
%python_install
61+
%pyproject_install
62+
%python_expand %fdupes %{buildroot}%{python_sitearch}
7363

7464
%clean
7565

7666
%files %python_files
77-
%defattr(-,root,root)
78-
79-
# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros
80-
%doc AUTHORS README.md
81-
%license LICENSE
82-
83-
%{python_sitearch}/*
67+
%{python_sitearch}/pytn3270*
8468

8569
%changelog

0 commit comments

Comments
 (0)