Skip to content

Commit

Permalink
(a) Fixing build dependencies.
Browse files Browse the repository at this point in the history
(b) Renaming folders/files to remove version specific string. Adding sub-package in spec file.
(c) SPEC cleanup.
  • Loading branch information
Sumynwa committed Jul 19, 2022
1 parent 9126753 commit 9990a4c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Name: python3-geomet
%global srcname geomet
%global debug_package %{nil}

Name: python-%{srcname}
Version: 0.2.1
Release: 1%{?dist}
Summary: GeoJSON <-> WKT/WKB conversion utilities
Expand All @@ -7,20 +10,28 @@ Vendor: Microsoft Corporation
Distribution: Mariner
Group: Development/Languages/Python
Url: https://github.com/geomet
Source0: https://github.com/geomet/geomet/archive/refs/tags/%{version}.tar.gz#/geomet-%{version}.tar.gz
BuildRequires: python3
BuildRequires: python3-libs
Source0: https://github.com/geomet/geomet/archive/refs/tags/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
BuildArch: noarch

BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with_check}
BuildRequires: python3-pip
%endif

%global _description \
Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa.

%description %_description

%package -n python3-%{srcname}
Summary: %{summary}
Requires: python3
Requires: python3-libs
Requires: python3-six
Requires: python3-click
Requires: python3-setuptools

BuildArch: noarch

%description
Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa.
%description -n python3-%{srcname} %{_description}

%prep
%autosetup -n geomet-%{version}
Expand All @@ -36,15 +47,15 @@ rm -f %{buildroot}/%{_exec_prefix}/LICENSE
%check
%python3 setup.py test

%files
%files -n python3-%{srcname}
%defattr(-,root,root,-)
%license LICENSE
%{_bindir}/geomet
%{python3_sitelib}/*

%changelog
* Wed Jun 22 2022 Sumedh Sharma <[email protected]> - 0.2.1-1
- Initial CBL-Mariner import from PhotonOS (license: ASL 2.0)
- Initial CBL-Mariner import from Photon (license: Apache2).
- Bumping version to 0.2.1
- Adding as run dependency for python-cassandra-driver needed by cassandra-medusa.
- License Verified.
Expand Down

0 comments on commit 9990a4c

Please sign in to comment.