Compare commits
10 Commits
cb81cd2976
...
7dbd199c07
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7dbd199c07 | ||
|
|
c8d0cd4690 | ||
|
|
b291275352 | ||
|
|
cc93083ce7 | ||
|
|
ae91efd821 | ||
|
|
47a38cb8c3 | ||
|
|
8c0cc4617b | ||
|
|
02da18dfa8 | ||
|
|
068baed8cb | ||
|
|
bd01e7dfd1 |
10
CVE-2022-0699.patch
Normal file
10
CVE-2022-0699.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/contrib/shpsort.c 2022-08-17 14:48:59.276669116 +0800
|
||||
+++ b/contrib/shpsort.c 2022-08-17 14:49:22.836834517 +0800
|
||||
@@ -279,7 +279,6 @@
|
||||
free(result[--i]);
|
||||
}
|
||||
free(result);
|
||||
- free(copy);
|
||||
return NULL;
|
||||
}
|
||||
result = tmp;
|
||||
BIN
shapelib-1.5.0.tar.gz
Normal file
BIN
shapelib-1.5.0.tar.gz
Normal file
Binary file not shown.
BIN
shapelib-master.tar.gz
Normal file
BIN
shapelib-master.tar.gz
Normal file
Binary file not shown.
87
shapelib.spec
Normal file
87
shapelib.spec
Normal file
@ -0,0 +1,87 @@
|
||||
Name: shapelib
|
||||
Version: 1.5.0
|
||||
Release: 2
|
||||
Summary: A Shapefile C Library
|
||||
License: (LGPLv2+ or MIT) and GPLv2+ and Public Domain
|
||||
URL: http://shapelib.maptools.org/
|
||||
Source0: http://download.osgeo.org/shapelib/%{name}-%{version}.tar.gz
|
||||
Source1: https://salsa.debian.org/debian-gis-team/shapelib/-/archive/master/shapelib-master.tar.gz
|
||||
|
||||
Patch0: CVE-2022-0699.patch
|
||||
|
||||
BuildRequires: automake autoconf libtool gcc-c++ make
|
||||
BuildRequires: rubygem-ronn-ng
|
||||
|
||||
Provides: %{name}-tools = %{version}-%{release}
|
||||
Obsoletes: %{name}-tools < %{version}-%{release}
|
||||
|
||||
%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
|
||||
also contains various utility programs for using shapelib.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for shapelib
|
||||
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The shapelib-devel package contains development files for applications
|
||||
that use shapelib.
|
||||
|
||||
%package help
|
||||
Summary: Documents for shapelib
|
||||
|
||||
%description help
|
||||
The shape-lib-help package contains related documents.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -a1 -p1
|
||||
|
||||
%build
|
||||
autoreconf -ifv
|
||||
tar --strip-components=2 -xvf %{SOURCE1} shapelib-master/debian/man
|
||||
%configure --disable-static
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%delete_la
|
||||
|
||||
ronn -r --date="$(LC_ALL=C date -u "+%Y-%m-%d")" --manual=%{name} man/*.md
|
||||
install -d %{buildroot}%{_mandir}/man1/
|
||||
install -pm 0644 man/*.1 %{buildroot}%{_mandir}/man1/
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%{_bindir}/*
|
||||
%{_libdir}/libshp.so.2*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/shapefil.h
|
||||
%{_libdir}/libshp.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%files help
|
||||
%doc README README.tree ChangeLog web/*.html
|
||||
%doc contrib/doc/
|
||||
%{_mandir}/man1/*.1*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 17 2022 luopihui <luopihui@ncti-gba.cn> - 1.5.0-2
|
||||
- Fix CVE-2022-0699
|
||||
|
||||
* Tue Feb 15 2022 xu_ping <xuping33@huawei.com> - 1.5.0-1
|
||||
- Upgrage 1.5.0
|
||||
|
||||
* Fri Feb 07 2020 huanghaitao <huanghaitao8@huawei.com> - 1.4.1-9
|
||||
- Swith rubygem-ronn-ng to drop rubygem-ronn
|
||||
|
||||
* Fri Feb 14 2020 gulining<gulining1@huawei.com> - 1.4.1-8
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user