diff --git a/duty-1.0.0.tar.gz b/duty-1.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..385734b13cfbca9d47137c08766be2b2ef21a786 Binary files /dev/null and b/duty-1.0.0.tar.gz differ diff --git a/python-duty.spec b/python-duty.spec new file mode 100644 index 0000000000000000000000000000000000000000..dd5a8011ffc5090343c19ffdb0915bcb2fb1c4fa --- /dev/null +++ b/python-duty.spec @@ -0,0 +1,71 @@ +%global pypi_name duty + +Name: python-%{pypi_name} +Version: 1.0.0 +Release: 1 +Summary: A simple task runner. + +License: ISC +URL: https://pawamoy.github.io/duty/ +Source0: https://files.pythonhosted.org/packages/73/7c/b57d2069735ba334832a8d3bd28209ac63465307abb01a0d2d89269a8b54/duty-1.0.0.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-pdm-pep517 +BuildRequires: python3-pdm-backend +BuildRequires: python3-failprint + + +%description +A simple task runner. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} +%description -n python3-%{pypi_name} +A simple task runner. + +%package help +Summary: %{summary} +Provides: python3-%{pypi_name}-doc +%description help +A simple task runner. + + +%prep +%autosetup -n %{pypi_name}-%{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 +pushd %{buildroot} +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/doclist.lst . + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/duty* +%{_bindir}/duty + +%files help +%{_docdir}/* + +%changelog +* Wed Aug 30 2023 luolu12 - 1.0.0-1 +- Initial package.