From 249fb8932e462b875115dc52d7db735d7462435d Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 10 Jan 2024 05:29:53 +0300 Subject: [PATCH] import shapelib-1.5.0-12.el9 --- .gitignore | 2 + .shapelib.metadata | 2 + ...996c541b3dc3f6bc8d589a140fdc8c544373.patch | 11 + SPECS/shapelib.spec | 290 ++++++++++++++++++ 4 files changed, 305 insertions(+) create mode 100644 .gitignore create mode 100644 .shapelib.metadata create mode 100644 SOURCES/df1e996c541b3dc3f6bc8d589a140fdc8c544373.patch create mode 100644 SPECS/shapelib.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f88c08f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/shapelib-1.5.0.tar.gz +SOURCES/shapelib-man.tar.gz diff --git a/.shapelib.metadata b/.shapelib.metadata new file mode 100644 index 0000000..e0a322e --- /dev/null +++ b/.shapelib.metadata @@ -0,0 +1,2 @@ +f5a9ad69faab0e8e0924fe9399ce32b9b7655d5c SOURCES/shapelib-1.5.0.tar.gz +623e9a9507be0d69068aefe12e8d70553755a332 SOURCES/shapelib-man.tar.gz diff --git a/SOURCES/df1e996c541b3dc3f6bc8d589a140fdc8c544373.patch b/SOURCES/df1e996c541b3dc3f6bc8d589a140fdc8c544373.patch new file mode 100644 index 0000000..ea734cc --- /dev/null +++ b/SOURCES/df1e996c541b3dc3f6bc8d589a140fdc8c544373.patch @@ -0,0 +1,11 @@ +diff -rupN --no-dereference shapelib-1.5.0/contrib/shpsort.c shapelib-1.5.0-new/contrib/shpsort.c +--- shapelib-1.5.0/contrib/shpsort.c 2004-07-06 23:23:17.000000000 +0200 ++++ shapelib-1.5.0-new/contrib/shpsort.c 2022-03-02 13:35:48.322878882 +0100 +@@ -279,7 +279,6 @@ static char ** split(const char *arg, co + free(result[--i]); + } + free(result); +- free(copy); + return NULL; + } + result = tmp; diff --git a/SPECS/shapelib.spec b/SPECS/shapelib.spec new file mode 100644 index 0000000..81c47fd --- /dev/null +++ b/SPECS/shapelib.spec @@ -0,0 +1,290 @@ +#global pre RC1 + +Name: shapelib +Version: 1.5.0 +Release: 12%{?pre:.%pre}%{?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 +URL: http://shapelib.maptools.org/ +Source0: http://download.osgeo.org/shapelib/%{name}-%{version}%{?pre:%pre}.tar.gz +# Man pages from debian package +# wget https://salsa.debian.org/debian-gis-team/shapelib/-/archive/master/shapelib-master.tar.gz +# tar --strip-components=2 -xvf shapelib-master.tar.gz shapelib-master/debian/man +# 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++ +BuildRequires: make +BuildRequires: proj-devel >= 4.4.1 +# For man pages +BuildRequires: rubygem-ronn + +%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). + + +%package devel +Summary: Development files for shapelib +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains libshp and the appropriate header files. + + +%package tools +Summary: shapelib utility programs +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description tools +This package contains various utility programs distributed with shapelib. + + +%prep +%autosetup -p1 -a1 + + +%build +# Kill rpath +autoreconf -ifv + +%configure --disable-static +%make_build + + +%install +%make_install + +# Remove static libraries +find %{buildroot} -name '*.la' -exec rm -f {} ';' + +# Build man pages +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 + + +%files +%doc README README.tree ChangeLog web/*.html +%license COPYING +%{_libdir}/libshp.so.2* + +%files devel +%{_includedir}/shapefil.h +%{_libdir}/libshp.so +%{_libdir}/pkgconfig/%{name}.pc + +%files tools +%doc contrib/doc/ +%{_bindir}/* +%{_mandir}/man1/*.1* + + +%changelog +* Wed Jan 10 2024 MSVSphere Packaging Team - 1.5.0-12 +- Rebuilt for MSVSphere 9.3 + +* Thu Feb 09 2023 Troy Dawson - 1.5.0-12 +- Backport fix for CVE-2022-0699 + +* Fri Jul 23 2021 Fedora Release Engineering - 1.5.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.5.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Mar 01 2019 Sandro Mani - 1.5.0-1 +- Update to 1.5.0 + +* Thu Feb 14 2019 Björn Esser - 1.4.1-7 +- rebuilt (proj) + +* Sat Feb 02 2019 Fedora Release Engineering - 1.4.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Aug 20 2018 Sandro Mani - 1.4.1-5 +- Add man pages (#1619071) + +* Sat Jul 14 2018 Fedora Release Engineering - 1.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Mar 07 2018 Sandro Mani - 1.4.1-3 +- BR: gcc-c++ + +* Fri Feb 09 2018 Fedora Release Engineering - 1.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Sep 14 2017 Sandro Mani - 1.4.1-1 +- Update to 1.4.1 + +* Thu Aug 03 2017 Fedora Release Engineering - 1.4.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Jan 25 2017 Sandro Mani - 1.4.0-2 +- Rebuild (proj) + +* Sun Dec 11 2016 Sandro Mani - 1.4.0-1 +- Update to 1.4.0 + +* Wed Dec 07 2016 Sandro Mani - 1.4.0-0.1.RC1 +- Update to 1.4.0-RC1 + +* Thu Feb 04 2016 Fedora Release Engineering - 1.3.0f-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 1.3.0f-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 1.3.0f-7 +- Rebuilt for GCC 5 C++11 ABI change + +* Thu Mar 12 2015 Sandro Mani - 1.3.0f-5 +- Rebuild (proj) + +* Mon Aug 18 2014 Fedora Release Engineering - 1.3.0f-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 1.3.0f-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Apr 06 2014 Sandro Mani - 1.3.0f-3 +- Backport some fixes from the gdal bundled shapelib + +* Thu Aug 08 2013 Sandro Mani - 1.3.0f-2 +- Add missing licenses + +* Mon Aug 05 2013 Sandro Mani - 1.3.0f-1 +- Update to 1.3.0 final + +* Thu Feb 14 2013 Fedora Release Engineering - 1.3.0b2-10.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 1.3.0b2-9.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1.3.0b2-8.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Apr 21 2011 Karsten Hopp 1.3.0b2-7.1 +- remove endian definition from Makefile, leave it to endian.h + +* Wed Feb 09 2011 Fedora Release Engineering - 1.3.0b2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed May 19 2010 Lucian Langa - 1.3.0b2-6 +- update to latest upstream beta + +* Tue Mar 09 2010 Lucian Langa - 1.3.0b1-5 +- update to latest upstream version + +* Fri Feb 19 2010 Lucian Langa - 1.2.10-2.20100216cvs +- update patch0-3 fix undefined symbols + +* Tue Feb 16 2010 Lucian Langa - 1.2.10-1.20100216cvs +- revert to latest cvs snapshot + +* Thu Feb 04 2010 Lucian Langa - 1.3.0b1-4 +- misc cleanups + +* Thu Feb 04 2010 Lucian Langa - 1.3.0b1-3 +- do not package static libfiles (#556094) + +* Thu Jan 07 2010 Lucian Langa - 1.3.0b1-2 +- fix patch2 - no not depend on gdal + +* Thu Jan 07 2010 Lucian Langa - 1.3.0b1-1 +- misc cleanups +- update BR +- fix source0 +- update to latest upstream snapshot + +* Sun Jul 26 2009 Fedora Release Engineering - 1.2.10-20.20060304cvs +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.2.10-19.20060304cvs +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Sep 4 2008 Tom "spot" Callaway - 1.2.10-18.20060304cvs +- fix patch application + +* Thu Sep 4 2008 Tom "spot" Callaway - 1.2.10-17.20060304cvs +- fix license tag + +* Tue Feb 19 2008 Fedora Release Engineering - 1.2.10-16.20060304cvs +- Autorebuild for GCC 4.3 + +* Sun Oct 21 2007 Shawn McCann - 1.2.10-15.20060304cvs +- Fix for bug 339931 + +* Sat Sep 16 2006 Shawn McCann - 1.2.10-12.20060304cvs +- Rebuild for FC6 + +* Sun Mar 5 2006 Shawn McCann - 1.2.10-11.20060304cvs +- Fixed a makefile bug that messed up parallel builds + +* Sat Mar 4 2006 Shawn McCann - 1.2.10-10.20060304cvs +- Upgraded to cvs snapshot taken on March 4, 2006 + +* Sat Mar 4 2006 Shawn McCann - 1.2.10-9 +- Rebuild for Fedora Extras 5 + +* Mon Apr 11 2005 Michael Schwendt - 1.2.10-8 +- Fix "invalid lvalue in assignment" for GCC4. + +* Fri Apr 8 2005 Michael Schwendt +- rebuilt + +* Sun Feb 13 2005 David Woodhouse 0:1.2.10-6 +- Don't hard-code endianness; just use endian.h + +* Wed Dec 15 2004 David M. Kaplan 0:1.2.10-5 +- Patched patch and spec file according to suggestions of Michael Schwendt +- In particular, this separates the building from the installing in the rpm. + +* Thu Aug 12 2004 David M. Kaplan 0:1.2.10-0.fdr.4 +- Moved RPM_OPT_FLAGS out of make files. +- Removed backup files from patch. +- Made sure that make was using the appropriate libdir. + +* Mon Dec 22 2003 David M. Kaplan 0:1.2.10-0.fdr.3 +- Added url tag, changed copyright to license and changed permissions on patch file. + +* Mon Dec 22 2003 David M. Kaplan 0:1.2.10-0.fdr.2 +- Add source URL +- Removed proj requirement as it is automatically detected. +- Added epoch to proj-devel requirement +- Fixed post and postun +- Changed group to Development/Libraries, although this appears to be only + somewhat satisfactory. +- Removed "which make" + +* Wed Nov 5 2003 David M. Kaplan 0:1.2.10-0.fdr.1 +- Updated to 1.2.10 release +- Major changes to spec for Fedora +- Changes to Makefile patch for Fedora +- Split off devel package