2021-07-13 17:40:42 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
2022-10-10 18:27:12 +08:00
|
|
|
Name: python-geomet
|
2022-12-16 15:31:46 +08:00
|
|
|
Version: 1.0.0
|
2022-10-10 18:27:12 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: GeoJSON <-> WKT/WKB conversion utilities
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://github.com/geomet/geomet
|
2022-12-16 15:31:46 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/7a/27/f6fc66e0629cfdcd301ebcb737b55041c238742420dce7728f208d75731c/geomet-1.0.0.tar.gz
|
2022-10-10 18:27:12 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
Requires: python3-click
|
|
|
|
|
Requires: python3-six
|
|
|
|
|
|
2021-07-13 17:40:42 +08:00
|
|
|
%description
|
|
|
|
|
Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa.
|
|
|
|
|
|
|
|
|
|
%package -n python3-geomet
|
2022-10-10 18:27:12 +08:00
|
|
|
Summary: GeoJSON <-> WKT/WKB conversion utilities
|
2022-12-16 15:31:46 +08:00
|
|
|
Provides: python-geomet = %{version}-%{release}
|
2022-10-10 18:27:12 +08:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-pbr
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
|
|
|
|
BuildRequires: python3-click
|
|
|
|
|
BuildRequires: python3-six
|
2021-07-13 17:40:42 +08:00
|
|
|
%description -n python3-geomet
|
|
|
|
|
Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa.
|
|
|
|
|
|
|
|
|
|
%package help
|
2022-10-10 18:27:12 +08:00
|
|
|
Summary: Development documents and examples for geomet
|
|
|
|
|
Provides: python3-geomet-doc
|
2021-07-13 17:40:42 +08:00
|
|
|
%description help
|
|
|
|
|
Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-10-10 18:27:12 +08:00
|
|
|
%autosetup -n geomet-%{version}
|
2021-07-13 17:40:42 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_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}
|
|
|
|
|
if [ -d usr/lib ]; then
|
2022-10-10 18:27:12 +08:00
|
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-13 17:40:42 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/lib64 ]; then
|
2022-10-10 18:27:12 +08:00
|
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-13 17:40:42 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/bin ]; then
|
2022-10-10 18:27:12 +08:00
|
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-13 17:40:42 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/sbin ]; then
|
2022-10-10 18:27:12 +08:00
|
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-13 17:40:42 +08:00
|
|
|
fi
|
|
|
|
|
touch doclist.lst
|
|
|
|
|
if [ -d usr/share/man ]; then
|
2022-10-10 18:27:12 +08:00
|
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
2021-07-13 17:40:42 +08:00
|
|
|
fi
|
|
|
|
|
popd
|
|
|
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
%files -n python3-geomet -f filelist.lst
|
|
|
|
|
%dir %{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%files help -f doclist.lst
|
|
|
|
|
%{_docdir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-12-16 15:31:46 +08:00
|
|
|
* Fri Dec 16 2022 liqiuyu <liqiuyu@kylinos.cn> - 1.0.0-1
|
|
|
|
|
- Update package to version 1.0.0
|
|
|
|
|
|
2022-10-10 18:27:12 +08:00
|
|
|
* Mon Oct 10 2022 guozhengxin <guozhengxin@kylinos.cn> - 0.3.0-1
|
|
|
|
|
- Upgrade package to version 0.3.0
|
|
|
|
|
|
2021-07-30 23:22:52 +08:00
|
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.2.1.post1-2
|
|
|
|
|
- DESC: delete -S git from %autosetup
|
|
|
|
|
|
2021-07-13 17:40:42 +08:00
|
|
|
* Tue Jul 13 2021 OpenStack_SIG <openstack@openeuler.org> - 0.2.1.post1-1
|
|
|
|
|
- Package Spec generate
|