Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Staging:B
shapelib
shapelib.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File shapelib.spec of Package shapelib
# # spec file for package shapelib # # Copyright (c) 2019 SUSE LINUX 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/ # %define so_ver 2 Name: shapelib Version: 1.5.0 Release: 0 Summary: Library for ESRI Shapefile Handling License: (LGPL-2.0-or-later OR MIT) AND GPL-2.0-or-later AND SUSE-Public-Domain Group: Productivity/Graphics/Other URL: http://shapelib.maptools.org/ Source0: http://download.osgeo.org/shapelib/%{name}-%{version}.tar.gz # PATCH-FIX-UPSTREAM rpmlint-errors.patch -- Fix some of the rpmlint errors # to get package acceptable to Factory Patch0: rpmlint-errors.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig # dbfdump is also in perl-DBD-XBase Conflicts: perl-DBD-XBase %description The Shapefile C Library provides the ability to write simple C programs for reading, writing and updating (to a limited extent) ESRI Shapefiles, and the associated attribute file (.dbf). This package contains the executable programs. %package -n libshp-devel Summary: Development Environment for %{name} Group: Development/Libraries/C and C++ Requires: libshp%{so_ver} = %{version} Provides: shapelib-devel = %{version} %description -n libshp-devel The Shapefile C Library provides the ability to write simple C programs for reading, writing and updating (to a limited extent) ESRI Shapefiles, and the associated attribute file (.dbf). This package contains the development environment for shapelib project. %package -n libshp%{so_ver} Summary: Library for ESRI Shapefile Handling Group: System/Libraries %description -n libshp%{so_ver} The Shapefile C Library provides the ability to write simple C programs for reading, writing and updating (to a limited extent) ESRI Shapefiles, and the associated attribute file (.dbf). This package contains the dynamic link library for shapelib project. %prep %setup -q %patch0 -p1 # Fix rpmlint warning "wrong-file-end-of-line-encoding" sed -i 's/\r$//' contrib/doc/shpsort.txt %build %configure \ --disable-static \ --disable-silent-rules make %{?_smp_mflags} %install %make_install # Remove libtool config files find %{buildroot} -type f -name "*.la" -delete -print %check # Contrib tests fail make %{?_smp_mflags} check ||: %post -n libshp%{so_ver} -p /sbin/ldconfig %postun -n libshp%{so_ver} -p /sbin/ldconfig %files %license COPYING %doc ChangeLog %doc contrib/doc/ web/ %{_bindir}/Shape_PointInPoly %{_bindir}/dbfadd %{_bindir}/dbfcat %{_bindir}/dbfcreate %{_bindir}/dbfdump %{_bindir}/dbfinfo %{_bindir}/shpadd %{_bindir}/shpcat %{_bindir}/shpcentrd %{_bindir}/shpcreate %{_bindir}/shpdata %{_bindir}/shpdump %{_bindir}/shpdxf %{_bindir}/shpfix %{_bindir}/shpinfo %{_bindir}/shprewind %{_bindir}/shpsort %{_bindir}/shptreedump %{_bindir}/shputils %{_bindir}/shpwkb %files -n libshp-devel %{_includedir}/* %{_libdir}/pkgconfig/shapelib.pc %{_libdir}/libshp.so %files -n libshp%{so_ver} %{_libdir}/libshp.so.%{so_ver}* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor