David Roble 3d7bba6
%global srcname libtmux
David Roble 3d7bba6
David Roble 3d7bba6
Name:           python-%{srcname}
e757059
Version:        0.10.1
e757059
Release:        %autorelease
1123f19
Summary:        Scripting library for tmux
David Roble 3d7bba6
David Roble 3d7bba6
License:        BSD
5027de6
URL:            https://github.com/tmux-python/libtmux
d33a8b4
Source:         %{pypi_source}
David Roble 3d7bba6
BuildArch:      noarch
David Roble 3d7bba6
1123f19
%global _description %{expand:
1123f19
libtmux is the tool behind tmuxp, a tmux workspace manager in
1123f19
python.  It builds upon tmux's target and formats to create an object
1123f19
mapping to traverse, inspect and interact with live tmux sessions.}
1123f19
1123f19
%description %{_description}
David Roble 3d7bba6
David Roble 3d7bba6
%package -n python3-%{srcname}
1123f19
Summary:        %{summary}
1123f19
BuildRequires:  python3-devel
d33a8b4
BuildRequires:  pyproject-rpm-macros
5027de6
%{?python_provide:%python_provide python3-%{srcname}}
e757059
Requires:       tmux >= 1.8
e757059
David Roble 3d7bba6
1123f19
%description -n python3-%{srcname} %{_description}
David Roble 3d7bba6
David Roble 3d7bba6
%prep
David Roble 3d7bba6
%autosetup -n %{srcname}-%{version}
David Roble 3d7bba6
d33a8b4
%generate_buildrequires
d33a8b4
%pyproject_buildrequires
d33a8b4
David Roble 3d7bba6
%build
d33a8b4
%pyproject_wheel
1123f19
David Roble 3d7bba6
%install
d33a8b4
%pyproject_install
David Roble 3d7bba6
David Roble 3d7bba6
%files -n python3-%{srcname}
1123f19
%license LICENSE
e757059
%doc README.md CHANGES
d33a8b4
%{python3_sitelib}/%{srcname}-*.dist-info/
1123f19
%{python3_sitelib}/%{srcname}/
David Roble 3d7bba6
David Roble 3d7bba6
%changelog
e757059
%autochangelog