orion / rpms / libkml

Forked from rpms/libkml 4 years ago
Clone
60d68cd
Name:           libkml
60d68cd
Version:        1.3.0
60d68cd
Release:        2%{?dist}
60d68cd
Summary:        Reference implementation of OGC KML 2.2
60d68cd
60d68cd
License:        BSD
60d68cd
URL:            https://github.com/libkml/libkml
60d68cd
Source0:        https://github.com/libkml/libkml/archive/%{version}/libkml-%{version}.tar.gz
60d68cd
60d68cd
## See https://github.com/libkml/libkml/pull/239
60d68cd
Patch0:         0001-Fix-build-failure-due-to-failure-to-convert-pointer-.patch
60d68cd
Patch1:         0002-Fix-mistaken-use-of-std-cerr-instead-of-std-endl.patch
60d68cd
Patch2:         0003-Fix-python-tests.patch
60d68cd
Patch3:         0004-Correctly-build-and-run-java-test.patch
60d68cd
# Fix a fragile test failing on i686
60d68cd
Patch4:         fragile_test.patch
60d68cd
60d68cd
BuildRequires:  cmake
60d68cd
BuildRequires:  curl-devel
60d68cd
BuildRequires:  boost-devel
60d68cd
BuildRequires:  expat-devel
60d68cd
BuildRequires:  gtest-devel
60d68cd
BuildRequires:  java-devel
60d68cd
BuildRequires:  junit
60d68cd
BuildRequires:  minizip-devel
60d68cd
BuildRequires:  python2-devel
60d68cd
BuildRequires:  swig
60d68cd
BuildRequires:  uriparser-devel
60d68cd
BuildRequires:  zlib-devel
60d68cd
60d68cd
%global __requires_exclude_from ^%{_docdir}/.*$
60d68cd
%global __provides_exclude_from ^%{python2_sitearch}/.*\\.so$
60d68cd
60d68cd
60d68cd
%description
60d68cd
Reference implementation of OGC KML 2.2.
60d68cd
It also includes implementations of Google's gx: extensions used by Google
60d68cd
Earth, as well as several utility libraries for working with other formats.
60d68cd
60d68cd
60d68cd
%package -n python2-%{name}
60d68cd
Summary:        Python bindings for %{name}
60d68cd
Requires:       %{name}%{?_isa} = %{version}-%{release}
60d68cd
%{?python_provide:%python_provide python2-%{name}}
60d68cd
60d68cd
%description -n python2-%{name}
60d68cd
The python2-%{name} package contains Python bindings for %{name}.
60d68cd
60d68cd
60d68cd
%package java
60d68cd
Summary:        Java bindings for %{name}
60d68cd
Requires:       %{name}%{?_isa} = %{version}-%{release}
60d68cd
60d68cd
%description java
60d68cd
The %{name}-java package contains Java bindings for %{name}.
60d68cd
60d68cd
60d68cd
%package        devel
60d68cd
Summary:        Development files for %{name}
60d68cd
Requires:       %{name}%{?_isa} = %{version}-%{release}
60d68cd
Requires:       boost-devel
60d68cd
Requires:       expat-devel
60d68cd
60d68cd
%description    devel
60d68cd
The %{name}-devel package contains libraries and header files for
60d68cd
developing applications that use %{name}.
60d68cd
60d68cd
60d68cd
%prep
60d68cd
%setup -q
60d68cd
%patch0 -p1
60d68cd
%patch1 -p1
60d68cd
%patch2 -p1
60d68cd
%patch3 -p1
60d68cd
%patch4 -p1
60d68cd
60d68cd
60d68cd
%build
60d68cd
%cmake -DWITH_SWIG=ON -DWITH_PYTHON=ON -DWITH_JAVA=ON \
60d68cd
  -DJNI_INSTALL_DIR=%{_libdir}/%{name} \
60d68cd
  -DCMAKE_INSTALL_DIR=%{_libdir}/cmake/%{name} \
60d68cd
  -DINCLUDE_INSTALL_DIR=%{_includedir}/kml \
60d68cd
  -DBUILD_TESTING=ON \
60d68cd
  -DBUILD_EXAMPLES=ON
60d68cd
make %{?_smp_mflags}
60d68cd
60d68cd
60d68cd
%install
60d68cd
%make_install
60d68cd
60d68cd
60d68cd
%check
60d68cd
ctest -V
60d68cd
60d68cd
60d68cd
%post -p /sbin/ldconfig
60d68cd
60d68cd
%postun -p /sbin/ldconfig
60d68cd
60d68cd
60d68cd
%files
60d68cd
%license LICENSE
60d68cd
%doc AUTHORS README.md
60d68cd
%{_libdir}/libkml*.so.*
60d68cd
60d68cd
%files -n python2-%{name}
60d68cd
%{python2_sitearch}/*.so
60d68cd
%{python2_sitearch}/*.py*
60d68cd
60d68cd
%files java
60d68cd
%{_javadir}/LibKML.jar
60d68cd
%{_libdir}/%{name}/
60d68cd
60d68cd
%files devel
60d68cd
%doc examples
60d68cd
%{_includedir}/kml/
60d68cd
%{_libdir}/libkml*.so
60d68cd
%{_libdir}/pkgconfig/%{name}.pc
60d68cd
%{_libdir}/cmake/%{name}/
60d68cd
60d68cd
%changelog
60d68cd
* Fri Apr 08 2016 Sandro Mani <manisandro@gmail.com> - 1.3.0-2
60d68cd
- Don't call it Google's reference implementation in Summary/Description
60d68cd
- Update Source URL
60d68cd
- Add python_provide macro
60d68cd
- Enable tests
60d68cd
60d68cd
* Thu Mar 31 2016 Sandro Mani <manisandro@gmail.com> - 1.3.0-1
60d68cd
- Update to 1.3.0
60d68cd
60d68cd
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-8
60d68cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
60d68cd
60d68cd
* Mon Aug 02 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.6.1-7
60d68cd
- Fix gcc warning that lead to failure due to -Werror flag
60d68cd
60d68cd
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.1-6
60d68cd
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
60d68cd
60d68cd
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-5
60d68cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
60d68cd
60d68cd
* Sun Apr 12 2009 Rakesh Pandit <rakesh@fedoraproject.org> 0.6.1-4
60d68cd
- Included *pyc and pyo files in %%files and added BuildRequires libgcj-devel.
60d68cd
60d68cd
* Sun Apr 12 2009 Rakesh Pandit <rakesh@fedoraproject.org> 0.6.1-3
60d68cd
- libkml-0.6.1.configure_ac.patch patch for swig > 1.3.35
60d68cd
60d68cd
* Sat Mar 07 2009 Rakesh Pandit <rakesh@fedoraproject.org> 0.6.1-2
60d68cd
- updated to 0.6.1
60d68cd
- libkml-third_party_removal.diff Removes third part dependency
60d68cd
- (provided by Peter Lemenkov)
60d68cd
60d68cd
* Fri Jan 16 2009 Rakesh Pandit <rakesh@fedoraproject.org> 0.6.1-1
60d68cd
- Updated to 0.6.1
60d68cd
60d68cd
* Mon Oct 06 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.4.0-2
60d68cd
- Added >= 1.3.35 for swing
60d68cd
60d68cd
* Sat Aug 09 2008 Rakesh Pandit <rakesh@fedoraproject.org> 0.4.0-1
60d68cd
- Initial package