65 lines
1.7 KiB
RPMSpec
65 lines
1.7 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
Name: python-isoduration
|
|
Version: 20.11.0
|
|
Release: 1
|
|
Summary: Operations with ISO 8601 durations.
|
|
License: ISC
|
|
URL: https://github.com/bolsote/isoduration
|
|
Source0: https://files.pythonhosted.org/packages/7c/1a/3c8edc664e06e6bd06cce40c6b22da5f1429aa4224d0c590f3be21c91ead/isoduration-20.11.0.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-hatchling
|
|
|
|
%description
|
|
Operations with ISO 8601 durations.
|
|
|
|
|
|
%package -n python3-isoduration
|
|
Summary: Operations with ISO 8601 durations.
|
|
Provides: python-isoduration
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-hatchling
|
|
%description -n python3-isoduration
|
|
Operations with ISO 8601 durations.
|
|
|
|
%package help
|
|
Summary: Development documents and examples for isoduration
|
|
Provides: python3-isoduration-doc
|
|
|
|
%description help
|
|
Development documents and examples for isoduration.
|
|
|
|
%prep
|
|
%autosetup -n isoduration-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
%files -n python3-isoduration
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python3_sitelib}/isoduration
|
|
%{python3_sitelib}/isoduration*.dist-info/
|
|
|
|
|
|
%files help
|
|
%{_docdir}/*
|
|
|
|
%changelog
|
|
* Wed Nov 8 2023 Dongxing Wang <dxwangk@isoftstone.com> - 20.11.0-1
|
|
- Init package
|