File golang-github-omniscale-imposm3.spec of Package golang-github-omniscale-imposm3

#
# spec file for package imposm3
#
# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global provider        github
%global provider_tld    com
%global project         omniscale
%global repo            imposm3
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

Name:           golang-%{provider}-%{project}-%{repo}
Version:        0.5.0
Release:        0
Url:            https://%{provider_prefix}
Summary:        A Go based OpenStreetMap importer for PostGIS
License:        Apache-2.0
Group:          Development/Languages/Go
Source:         https://github.com/omniscale/imposm3/archive/v%{version}.tar.gz#/imposm3-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  geos-devel >= 3.2
BuildRequires:  go >= 1.6
BuildRequires:  golang-packaging
BuildRequires:  leveldb-devel


%description
Imposm is an importer for OpenStreetMap data. 
It reads PBF files and imports the data into PostgreSQL/PostGIS.
It can also automatically update the database with the latest changes from OSM.
It is designed to create databases that are optimized for rendering (i.e. generating tiles or for WMS services).

Imposm >=3 is written in Go and it is a complete rewrite of the previous Python implementation. 
Configurations/mappings and cache files are not compatible with Imposm 2, but they share a similar architecture.


%package -n imposm3
Summary:        A Go based OpenStreetMap importer for PostGIS
Group:          Development/Languages/Golang


%description -n imposm3
Imposm is an importer for OpenStreetMap data. 
It reads PBF files and imports the data into PostgreSQL/PostGIS.
It can also automatically update the database with the latest changes from OSM.
It is designed to create databases that are optimized for rendering (i.e. generating tiles or for WMS services).

Imposm >=3 is written in Go and it is a complete rewrite of the previous Python implementation. 
Configurations/mappings and cache files are not compatible with Imposm 2, but they share a similar architecture.


%prep
%setup -q -n imposm3-%{version}

%build
%goprep %{import_path}
%gobuild ...

%install
%goinstall
%gosrc
%gofilelist


%files -f file.lst
%defattr(-,root,root,-)
%doc README.md
%license LICENSE

%files -n imposm3
%defattr(-,root,root)
%{_bindir}/imposm3

%changelog
openSUSE Build Service is sponsored by