python-time-machine/python-time-machine.spec
2023-06-18 16:29:55 +08:00

53 lines
1.3 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
%global pypi_name time-machine
%global source_name time_machine
Name: python-%{pypi_name}
Version: 2.10.0
Release: 1
Summary: Travel through time in your tests.
License: MIT
URL: https://github.com/adamchainz/time-machine
Source0: https://files.pythonhosted.org/packages/ac/60/0793032eef5b1dcab2aee60deb5cf3e42fc6437cfa7428a87e2745f5d640/time_machine-2.10.0.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-editables
BuildRequires: python3-hatch-vcs
BuildRequires: python3-hatchling
BuildRequires: python3-virtualenv
%description
Travel through time in your tests.
%package -n python3-%{pypi_name}
Summary: %{summary}
%description -n python3-%{pypi_name}
Travel through time in your tests.
%prep
%autosetup -p1 -n %{source_name}-%{version}
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitearch}/_time_machine*.so
%{python3_sitearch}/time_machine-*.dist-info/
%{python3_sitearch}/time_machine
%changelog
* Sun Jun 18 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.10.0-1
- Initial package 2.10.0 for isort test