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 http://bugs.opensuse.org/
#

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
Url:            https://github.com/GeospatialPython/pyshp
Source0:        pyshp-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  python3
BuildRequires:  python3-setuptools
BuildArch:      noarch

%description
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.

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

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

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
python3 shapefile.py

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

%files
%defattr(-,root,root,-)
%doc README.txt
%{python3_sitelib}/*

%changelog
* Sat Jan 09 2016 urs.beyerle@env.ethz.ch
- Update to 1.2.3

* Wed Jan 14 2015 ocefpaf@gmail.com
- Updated to release 76+git94fbb3b; version 1.2.2

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

* Sun Dec 29 2013 ocefpaf@gmail.com
- 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 ocefpaf@gmail.com
- Updated to version 1.1.8

* Fri Jul 12 2013 ocefpaf@gmail.com
- First OpenSUSE release; version 1.1.4