53 lines
1.2 KiB
RPMSpec
53 lines
1.2 KiB
RPMSpec
|
|
%global pypi_name hypothesmith
|
||
|
|
|
||
|
|
%global common_description %{expand:
|
||
|
|
Hypothesis strategies for generating Python programs, something like CSmith.}
|
||
|
|
|
||
|
|
Name: python-%{pypi_name}
|
||
|
|
Version: 0.2.3
|
||
|
|
Release: 1
|
||
|
|
Summary: Hypothesis strategies for generating Python programs
|
||
|
|
License: MPLv2.0
|
||
|
|
URL: https://github.com/Zac-HD/hypothesmith
|
||
|
|
Source0: %{pypi_source %{pypi_name}}
|
||
|
|
BuildArch: noarch
|
||
|
|
|
||
|
|
BuildRequires: python3-devel
|
||
|
|
BuildRequires: python3-pip
|
||
|
|
BuildRequires: python3-wheel
|
||
|
|
BuildRequires: python3-editables
|
||
|
|
BuildRequires: python3-hatch-vcs
|
||
|
|
BuildRequires: python3-hatchling
|
||
|
|
BuildRequires: python3.10dist(hypothesis) >= 6.58.1
|
||
|
|
BuildRequires: python3.10dist(libcst) >= 0.4
|
||
|
|
|
||
|
|
%description
|
||
|
|
%{common_description}
|
||
|
|
|
||
|
|
|
||
|
|
%package -n python3-%{pypi_name}
|
||
|
|
Summary: %{summary}
|
||
|
|
|
||
|
|
%description -n python3-%{pypi_name}
|
||
|
|
%{common_description}
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n %{pypi_name}-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%pyproject_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
%pyproject_install
|
||
|
|
|
||
|
|
%files -n python3-%{pypi_name}
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%license LICENSE
|
||
|
|
%{python3_sitelib}/%{pypi_name}/
|
||
|
|
%{python3_sitelib}/%{pypi_name}*.dist-info/
|
||
|
|
%doc README.md CHANGELOG.md
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Thu Jun 8 2023 chaozhangm <chaozhangm@isoftstone.com> - 0.2.3-1
|
||
|
|
- Initial package.
|