Init package with version 1.9.1

This commit is contained in:
desert-sailor 2023-11-29 15:19:51 +08:00
parent 9bc6f84b4b
commit ba5f48e92e
2 changed files with 72 additions and 0 deletions

72
python-userpath.spec Normal file
View File

@ -0,0 +1,72 @@
%global _empty_manifest_terminate_build 0
Name: python-userpath
Version: 1.9.1
Release: 1
Summary: Cross-platform tool for adding locations to the user PATH.
License: MIT
URL: https://github.com/ofek/userpath
Source0: https://files.pythonhosted.org/packages/4d/13/b8c47191994abd86cbdb256146dbd7bbabcaaa991984b720f68ccc857bfc/userpath-1.9.1.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description
Cross-platform tool for adding locations to the user PATH.
%package -n python3-userpath
Summary: Cross-platform tool for adding locations to the user PATH.
Provides: python-userpath
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-hatchling
%description -n python3-userpath
Cross-platform tool for adding locations to the user PATH.
%package help
Summary: Development documents and examples for userpath
Provides: python3-userpath-doc
%description help
Development documents and examples for userpath.
%prep
%autosetup -n userpath-%{version}
sed -i 's/\~=/\>=/g' pyproject.toml
%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-userpath
%doc README.md HISTORY.rst
%license LICENSE.txt
%{_bindir}/userpath
%{python3_sitelib}/userpath
%{python3_sitelib}/userpath*.dist-info/
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Wed Nov 29 2023 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.9.1-1
- Init package

BIN
userpath-1.9.1.tar.gz Normal file

Binary file not shown.