|
|
|
@ -1,15 +1,21 @@
|
|
|
|
|
#global pre RC1
|
|
|
|
|
|
|
|
|
|
%if %{defined rhel} || %{defined flatpak}
|
|
|
|
|
%bcond_with mingw
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without mingw
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: shapelib
|
|
|
|
|
Version: 1.5.0
|
|
|
|
|
Release: 12%{?pre:.%pre}%{?dist}
|
|
|
|
|
Version: 1.6.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: C library for handling ESRI Shapefiles
|
|
|
|
|
# The core library is dual-licensed LGPLv2 or MIT.
|
|
|
|
|
# Some contributed files have different licenses:
|
|
|
|
|
# - contrib/csv2shp.c: GPLv2+
|
|
|
|
|
# - contrib/dbfinfo.c: Public domain
|
|
|
|
|
# - contrib/dbfcat.c: Public domain
|
|
|
|
|
License: (LGPLv2+ or MIT) and GPLv2+ and Public Domain
|
|
|
|
|
License: (LGPL-2.0-or-later OR MIT) AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain
|
|
|
|
|
URL: http://shapelib.maptools.org/
|
|
|
|
|
Source0: http://download.osgeo.org/shapelib/%{name}-%{version}%{?pre:%pre}.tar.gz
|
|
|
|
|
# Man pages from debian package
|
|
|
|
@ -18,8 +24,6 @@ Source0: http://download.osgeo.org/shapelib/%{name}-%{version}%{?pre:%pre}
|
|
|
|
|
# tar -czf shapelib-man.tar.gz man/
|
|
|
|
|
# rm -r man
|
|
|
|
|
Source1: %{name}-man.tar.gz
|
|
|
|
|
# Backport fix for CVE-2022-0699
|
|
|
|
|
Patch0: https://github.com/OSGeo/shapelib/commit/df1e996c541b3dc3f6bc8d589a140fdc8c544373.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: automake autoconf libtool
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
@ -28,6 +32,19 @@ BuildRequires: proj-devel >= 4.4.1
|
|
|
|
|
# For man pages
|
|
|
|
|
BuildRequires: rubygem-ronn
|
|
|
|
|
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw32-gcc-c++
|
|
|
|
|
BuildRequires: mingw32-binutils
|
|
|
|
|
BuildRequires: mingw32-proj
|
|
|
|
|
|
|
|
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
|
|
|
BuildRequires: mingw64-gcc-c++
|
|
|
|
|
BuildRequires: mingw64-binutils
|
|
|
|
|
BuildRequires: mingw64-proj
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Shapefile C Library provides the ability to write
|
|
|
|
|
simple C programs for reading, writing and updating (to a
|
|
|
|
@ -51,6 +68,63 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
This package contains various utility programs distributed with shapelib.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
%package -n mingw32-%{name}
|
|
|
|
|
Summary: MinGW Windows %{name} library
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw32-%{name}
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw32-%{name}-static
|
|
|
|
|
Summary: Static version of the MinGW Windows %{name} library
|
|
|
|
|
Requires: mingw32-%{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw32-%{name}-static
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw32-%{name}-tools
|
|
|
|
|
Summary: Tools for the MinGW Windows %{name} library
|
|
|
|
|
Requires: mingw32-%{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw32-%{name}-tools
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw64-%{name}
|
|
|
|
|
Summary: MinGW Windows %{name} library
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw64-%{name}
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw64-%{name}-static
|
|
|
|
|
Summary: Static version of the MinGW Windows %{name} library
|
|
|
|
|
Requires: mingw64-%{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw64-%{name}-static
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n mingw64-%{name}-tools
|
|
|
|
|
Summary: Tools for the MinGW Windows %{name} library
|
|
|
|
|
Requires: mingw64-%{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n mingw64-%{name}-tools
|
|
|
|
|
%{summary}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?mingw_debug_package}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -a1
|
|
|
|
|
|
|
|
|
@ -59,12 +133,26 @@ This package contains various utility programs distributed with shapelib.
|
|
|
|
|
# Kill rpath
|
|
|
|
|
autoreconf -ifv
|
|
|
|
|
|
|
|
|
|
# Native build
|
|
|
|
|
mkdir build_native
|
|
|
|
|
pushd build_native
|
|
|
|
|
%define _configure ../configure
|
|
|
|
|
%configure --disable-static
|
|
|
|
|
%make_build
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
# MinGW build
|
|
|
|
|
%mingw_configure
|
|
|
|
|
%mingw_make_build
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
%make_install -C build_native
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
%mingw_make_install
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Remove static libraries
|
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
@ -74,13 +162,14 @@ ronn -r --date="$(LC_ALL=C date -u "+%Y-%m-%d")" --manual=%{name} man/*.md
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
|
|
|
|
install -pm 0644 man/*.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%{?mingw_debug_install_post}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README README.tree ChangeLog web/*.html
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/libshp.so.2*
|
|
|
|
|
%license LICENSE*
|
|
|
|
|
%{_libdir}/libshp.so.4*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/shapefil.h
|
|
|
|
@ -92,11 +181,78 @@ install -pm 0644 man/*.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_mandir}/man1/*.1*
|
|
|
|
|
|
|
|
|
|
%if %{with mingw}
|
|
|
|
|
%files -n mingw32-%{name}
|
|
|
|
|
%license LICENSE*
|
|
|
|
|
%{mingw32_bindir}/libshp-4.dll
|
|
|
|
|
%{mingw32_includedir}/shapefil.h
|
|
|
|
|
%{mingw32_libdir}/libshp.dll.a
|
|
|
|
|
%{mingw32_libdir}/pkgconfig/shapelib.pc
|
|
|
|
|
|
|
|
|
|
%files -n mingw32-%{name}-static
|
|
|
|
|
%{mingw32_libdir}/libshp.a
|
|
|
|
|
|
|
|
|
|
%files -n mingw32-%{name}-tools
|
|
|
|
|
%{mingw32_bindir}/*.exe
|
|
|
|
|
|
|
|
|
|
%files -n mingw64-%{name}
|
|
|
|
|
%license LICENSE*
|
|
|
|
|
%{mingw64_bindir}/libshp-4.dll
|
|
|
|
|
%{mingw64_includedir}/shapefil.h
|
|
|
|
|
%{mingw64_libdir}/libshp.dll.a
|
|
|
|
|
%{mingw64_libdir}/pkgconfig/shapelib.pc
|
|
|
|
|
|
|
|
|
|
%files -n mingw64-%{name}-static
|
|
|
|
|
%{mingw64_libdir}/libshp.a
|
|
|
|
|
|
|
|
|
|
%files -n mingw64-%{name}-tools
|
|
|
|
|
%{mingw64_bindir}/*.exe
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Feb 09 2023 Troy Dawson <tdawson@redhat.com> - 1.5.0-12
|
|
|
|
|
* Sat Jan 04 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.6.1-1
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Wed Aug 14 2024 Sandro Mani <manisandro@gmail.com> - 1.6.1-1
|
|
|
|
|
- Update to 1.6.1
|
|
|
|
|
|
|
|
|
|
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Dec 22 2023 Sandro Mani <manisandro@gmail.com> - 1.6.0-1
|
|
|
|
|
- Update to 1.6.0
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-16
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-14
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Mar 25 2022 Sandro Mani <manisandro@gmail.com> - 1.5.0-13
|
|
|
|
|
- Rebuild with mingw-gcc-12
|
|
|
|
|
|
|
|
|
|
* Wed Mar 02 2022 Sandro Mani <manisandro@gmail.com> - 1.5.0-12
|
|
|
|
|
- Backport fix for CVE-2022-0699
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 1.5.0-11
|
|
|
|
|
- Make mingw subpackages noarch
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 1.5.0-10
|
|
|
|
|
- Make mingw subpackages noarch
|
|
|
|
|
|
|
|
|
|
* Thu Feb 24 2022 Sandro Mani <manisandro@gmail.com> - 1.5.0-9
|
|
|
|
|
- Add mingw subpackage
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|