!3 Update version to 2023.10.1 and fix package metadata
From: @desert-sailor Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
9ddedec901
@ -2,35 +2,40 @@
|
|||||||
%global pypi_name xyzservices
|
%global pypi_name xyzservices
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 2023.7.0
|
Version: 2023.10.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Xyzservices is a lightweight library providing a repository of available XYZ services offering raster basemap tiles.
|
Summary: Xyzservices is a lightweight library providing a repository of available XYZ services offering raster basemap tiles.
|
||||||
|
License: BSD-3-Clause
|
||||||
|
|
||||||
License: BSD
|
|
||||||
URL: https://github.com/geopandas/xyzservices
|
URL: https://github.com/geopandas/xyzservices
|
||||||
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-wheel
|
||||||
BuildRequires: python3-hatchling
|
BuildRequires: python3-hatchling
|
||||||
BuildRequires: python3-virtualenv
|
BuildRequires: python3-virtualenv
|
||||||
BuildRequires: python3-poetry-core
|
BuildRequires: python3-poetry-core
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Xyzservices is a lightweight library providing a repository of available XYZ services offering raster basemap tiles.
|
Xyzservices is a lightweight library providing a repository of available XYZ services offering raster basemap tiles.
|
||||||
|
|
||||||
%package -n python3-%{pypi_name}
|
%package -n python3-%{pypi_name}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
Provides: python-%{pypi_name}
|
||||||
%description -n python3-%{pypi_name}
|
%description -n python3-%{pypi_name}
|
||||||
Xyzservices is a lightweight library providing a repository of available XYZ services offering raster basemap tiles.
|
Xyzservices is a lightweight library providing a repository of available XYZ services offering raster basemap tiles.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Development documents and examples for %{pypi_name}.
|
||||||
|
Provides: python3-%{pypi_name}-doc
|
||||||
|
%description help
|
||||||
|
Development documents and examples for %{pypi_name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{pypi_name}-%{version}
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||||
|
sed -i '/name/a\version="%{version}",' setup.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_build
|
%pyproject_build
|
||||||
@ -38,14 +43,33 @@ Xyzservices is a lightweight library providing a repository of available XYZ ser
|
|||||||
%install
|
%install
|
||||||
%pyproject_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}
|
%files -n python3-%{pypi_name}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python3_sitelib}/xyzservices*.dist-info/
|
%{python3_sitelib}/xyzservices*.dist-info/
|
||||||
%{python3_sitelib}/xyzservices
|
%{python3_sitelib}/xyzservices
|
||||||
%{_datadir}/%{pypi_name}/
|
%{_datadir}/xyzservices/
|
||||||
|
|
||||||
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 28 2023 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 2023.10.1-1
|
||||||
|
- Update version to 2023.10.1 and fix package metadata
|
||||||
|
|
||||||
* Fri Aug 18 2023 zoujiancang<jczou@isoftstone.com> - 2023.7.0-1
|
* Fri Aug 18 2023 zoujiancang<jczou@isoftstone.com> - 2023.7.0-1
|
||||||
- Initial package
|
- Initial package
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user