|
|
|
@ -1,8 +1,9 @@
|
|
|
|
|
%undefine _ld_as_needed
|
|
|
|
|
%bcond_with java
|
|
|
|
|
|
|
|
|
|
Name: libkml
|
|
|
|
|
Version: 1.3.0
|
|
|
|
|
Release: 31%{?dist}
|
|
|
|
|
Release: 32%{?dist}
|
|
|
|
|
Summary: Reference implementation of OGC KML 2.2
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
@ -34,13 +35,15 @@ BuildRequires: boost-devel
|
|
|
|
|
BuildRequires: expat-devel
|
|
|
|
|
BuildRequires: gtest-devel
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: java-devel
|
|
|
|
|
BuildRequires: junit
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: swig
|
|
|
|
|
BuildRequires: uriparser-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
%if %{with java}
|
|
|
|
|
BuildRequires: java-devel
|
|
|
|
|
BuildRequires: junit
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Provides: bundled(minizip) = 1.3.0
|
|
|
|
|
|
|
|
|
@ -63,12 +66,14 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
The python3-%{name} package contains Python 3 bindings for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with java}
|
|
|
|
|
%package java
|
|
|
|
|
Summary: Java bindings for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description java
|
|
|
|
|
The %{name}-java package contains Java bindings for %{name}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
@ -90,8 +95,10 @@ cp -a %{SOURCE1} %{__cmake_builddir}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%global optflags %{optflags} -fPIC
|
|
|
|
|
%cmake -DWITH_SWIG=ON -DWITH_PYTHON=ON -DWITH_JAVA=ON \
|
|
|
|
|
-DJNI_INSTALL_DIR=%{_libdir}/%{name} \
|
|
|
|
|
%cmake -DWITH_SWIG=ON -DWITH_PYTHON=ON \
|
|
|
|
|
%if %{with java}
|
|
|
|
|
-DWITH_JAVA=ON -DJNI_INSTALL_DIR=%{_libdir}/%{name} \
|
|
|
|
|
%endif
|
|
|
|
|
-DCMAKE_INSTALL_DIR=%{_libdir}/cmake/%{name} \
|
|
|
|
|
-DINCLUDE_INSTALL_DIR=%{_includedir}/kml \
|
|
|
|
|
-DPYTHON_LIBRARY=%{_libdir}/libpython%{python3_version}$(python3-config --abiflags).so \
|
|
|
|
@ -127,9 +134,11 @@ cp -a %{SOURCE1} %{__cmake_builddir}
|
|
|
|
|
%{python3_sitearch}/*.py
|
|
|
|
|
%{python3_sitearch}/__pycache__/*.pyc
|
|
|
|
|
|
|
|
|
|
%if %{with java}
|
|
|
|
|
%files java
|
|
|
|
|
%{_javadir}/LibKML.jar
|
|
|
|
|
%{_libdir}/%{name}/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc examples
|
|
|
|
@ -139,6 +148,9 @@ cp -a %{SOURCE1} %{__cmake_builddir}
|
|
|
|
|
%{_libdir}/cmake/%{name}/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Jun 12 2021 Sandro Mani <manisandro@gmail.com> - 1.3.0-31
|
|
|
|
|
- Disable java build for now
|
|
|
|
|
|
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3.0-31
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|