Martin Pluskal 2021-12-28 10:33:48 +00:00 committed by Git OBS Bridge
parent 03ab9be6fd
commit fe4e7009b1

View File

@ -36,11 +36,11 @@ in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
predicate functions and spatial operators, as well as specific JTS topology
functions such as IsValid().
%package -n libgeos-%{uver}
%package -n libgeos%{uver}
Summary: Geometry Engine library
Group: System/Libraries
%description -n libgeos-%{uver}
%description -n libgeos%{uver}
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
Suite (JTS). As such, it aims to contain the complete functionality of JTS
in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
@ -60,7 +60,7 @@ interface for the (C++) GEOS library.
%package devel
Summary: Development files for GEOS
Group: Development/Libraries/C and C++
Requires: libgeos-%{uver} = %{version}
Requires: libgeos%{uver} = %{version}
Requires: libgeos_c1 = %{version}
Provides: lib%{name}-devel = %{version}
@ -82,13 +82,15 @@ use GEOS.
%cmake_build
%check
# path needs to be exported otherwise unit tests will fail
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
%ctest
%install
%cmake_install
%post -n libgeos-%{uver} -p /sbin/ldconfig
%postun -n libgeos-%{uver} -p /sbin/ldconfig
%post -n libgeos%{uver} -p /sbin/ldconfig
%postun -n libgeos%{uver} -p /sbin/ldconfig
%post -n libgeos_c1 -p /sbin/ldconfig
%postun -n libgeos_c1 -p /sbin/ldconfig
@ -96,7 +98,7 @@ use GEOS.
%license COPYING
%{_bindir}/geosop
%files -n libgeos-%{uver}
%files -n libgeos%{uver}
%license COPYING
%{_libdir}/libgeos.so.*