| |
@@ -1,4 +1,5 @@
|
| |
%global srcname tmuxp
|
| |
+ %global forgeurl https://github.com/tmux-python/tmuxp
|
| |
|
| |
Name: python-%{srcname}
|
| |
Version: 1.9.2
|
| |
@@ -7,7 +8,7 @@
|
| |
|
| |
License: MIT
|
| |
URL: https://tmuxp.git-pull.com/
|
| |
- Source: %{pypi_source}
|
| |
+ Source: %{forgeurl}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
| |
|
| |
BuildArch: noarch
|
| |
|
| |
@@ -19,6 +20,7 @@
|
| |
%{?python_provide:%python_provide python3-%{srcname}}
|
| |
BuildRequires: python3-devel
|
| |
BuildRequires: pyproject-rpm-macros
|
| |
+ BuildRequires: make
|
| |
|
| |
%description -n python3-%{srcname}
|
| |
%{summary}.
|
| |
@@ -27,7 +29,7 @@
|
| |
%autosetup -n %{srcname}-%{version}
|
| |
|
| |
%generate_buildrequires
|
| |
- %pyproject_buildrequires
|
| |
+ %pyproject_buildrequires -t
|
| |
|
| |
%build
|
| |
%pyproject_wheel
|
| |
@@ -35,6 +37,9 @@
|
| |
%install
|
| |
%pyproject_install
|
| |
|
| |
+ %check
|
| |
+ %tox
|
| |
+
|
| |
%files -n python3-%{srcname}
|
| |
%license LICENSE
|
| |
%doc README.md CHANGES examples
|
| |
The PyPI tarball doesn't include the tox config, so switch to the GitHub one so we can use it.