File python3-pyshp.spec of Package python3-pyshp

# spec file for package python3-pyshp
# Copyright (c) 2014 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

Name:           python3-pyshp
Version:        1.2.3
Release:        2.1
Summary:        Pure Python read/write support for ESRI Shapefile format
License:        MIT
Group:          Development/Libraries/Python
Source0:        pyshp-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  python3
BuildRequires:  python3-setuptools
BuildArch:      noarch

The Python Shapefile Library (pyshp) provides read and write support for the
ESRI Shapefile format.  The Shapefile format is a popular Geographic
Information System vector data format created by Esri.  For more information
about this format  please read the well-written "ESRI Shapefile Technical
Description - July 1998".  The Esri document describes the shp and shx file
formats.  However a third file format called dbf is also required.  This
format is documented on the web as the "XBase File Format Description" and is
a simple file-based database format created in the 1960's.  Both the Esri and
XBase file-formats are very simple in design and memory efficient which is
part of the reason the shapefile format remains popular despite the numerous
ways to store and exchange GIS data available today.

%setup -q -n pyshp-%{version}

# Fix wrong-file-end-of-line-encoding.
sed -i 's/\r$//' README.txt

python3 build

python3 install --prefix=%{_prefix} --root=%{buildroot}


%fdupes -s %{buildroot}/%{python3_sitelib}

%doc README.txt

* Sat Jan 09 2016
- Update to 1.2.3

* Wed Jan 14 2015
- Updated to release 76+git94fbb3b; version 1.2.2

* Mon Jul 14 2014
- Updated to release 57+git202143c ; version 1.2.1
  - LICENSE.txt added MIT license to project
  - (u) fixed bug which failed to properly read some dbf fields
    in Python 3

* Sun Dec 29 2013
- Updated to release 91; version 1.2.0
  - Changed to Python3
  - README.txt add example/test for writing a 3D polygon

* Fri Jul 12 2013
- Updated to version 1.1.8

* Fri Jul 12 2013
- First OpenSUSE release; version 1.1.4