diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..730e88b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/geomet-0.2.0-2.tar.gz diff --git a/python-geomet.spec b/python-geomet.spec new file mode 100644 index 0000000..16010b8 --- /dev/null +++ b/python-geomet.spec @@ -0,0 +1,58 @@ +%global srcname geomet + +Name: python-%{srcname} +Version: 0.2.0 +Release: 1.post2%{?dist} +Summary: GeoJSON <-> WKT/WKB conversion utilities + +License: ASL 2.0 +URL: https://github.com/geomet/geomet +Source0: %{url}/archive/%{version}-2/%{srcname}-%{version}-2.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(click) +BuildRequires: python3dist(six) +BuildRequires: python3dist(nose) + +%description +Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa. + + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa. + + +%prep +%autosetup -n %{srcname}-%{version}-2 + +# Remove bundled egg-info +rm -rf %{srcname}.egg-info + + +%build +%py3_build + + +%install +%py3_install + + +%check +%{__python3} setup.py test + + +%files -n python3-%{srcname} +%{_bindir}/geomet +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/%{srcname}-%{version}.post2-py?.?.egg-info + + +%changelog +* Fri Mar 15 2019 Elliott Sales de Andrade - 0.2.0-1.post2 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..a72c6dd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (geomet-0.2.0-2.tar.gz) = f1f51e7b6448567ba22d31f3cd7e0f7bd653040289bfcfe5b8ad316e5e8aba68a50ffa586fd1b219203589ff5f14ac4feb75c31583dafe6b616d5c2339029412