f50ab5f517
- drop stuff that we don't need to test this - use macros where possible - use explicit test command when testing stuff - make sure dist-info is a directory
39 lines
725 B
RPMSpec
39 lines
725 B
RPMSpec
Name: tldr
|
|
Version: 0.4.4
|
|
Release: 1%{?dist}
|
|
Summary: Simplified and community-driven man pages
|
|
|
|
License: MIT
|
|
URL: https://github.com/tldr-pages/tldr-python-client
|
|
Source0: %{pypi_source}
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: pyproject-rpm-macros
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version}
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%check
|
|
test ! -d %{buildroot}%{_bindir}/__pycache__
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/%{name}.py
|
|
%{python3_sitelib}/%{name}.py
|
|
%{python3_sitelib}/__pycache__/*.pyc
|
|
%{python3_sitelib}/%{name}-%{version}.dist-info/
|