Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:thomas-schraitle
libkml
libkml.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libkml.spec of Package libkml
# # spec file for package libkml # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ Name: libkml Version: 1.2.0 Release: 1%{?dist} Summary: A KML library written in C++ with bindings to other languagues Group: System/Libraries License: BSD URL: http://code.google.com/p/%{name}/ Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2 #Patch0: libkml-string.patch Patch1: libkml-third_party_removal.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # requires swig >= 1.3.35 BuildRequires: libcppunit-devel, swig >= 1.3.35 BuildRequires: java-devel, libcurl-devel, BuildRequires: libexpat-devel, python-devel, chrpath, BuildRequires: minizip-devel, BuildRequires: liburiparser-devel BuildRequires: zlib-devel, boost-devel BuildRequires: autoconf, libtool, gcc-c++ Requires: python, java %description Libkml is an implementation of the OGC KML 2.2 standard. is written in C++ and bindings are available via SWIG to other languages. It can be used in applications that want to parse, generate and operate on KML. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q rm -rf third_party %patch1 -p0 -b .third_party # %patch0 -p1 -b .string %build autoreconf -fi %configure --disable-static \ --with-java-include-dir=%{_jvmdir}/java make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' # remove compiled examples cd examples; make clean;cd .. # remove x permssion from examples folder files find examples -type f -print | xargs chmod a-x # move libs to kml (for keeping third party libs away) mkdir -p $RPM_BUILD_ROOT%{_libdir}/libkml/ mv $RPM_BUILD_ROOT%{_libdir}/*.so* $RPM_BUILD_ROOT%{_libdir}/libkml/ #removing rpaths with chrpath chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libkml/libkmldom_swig_java.so.0.0.0 chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libkml/libkmlengine_swig_python.so.0.0.0 chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libkml/libkmlengine.so.0.0.0 chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libkml/libkmldom_swig_python.so.0.0.0 chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libkml/libkmlengine_swig_java.so.0.0.0 chrpath --delete $RPM_BUILD_ROOT%{python_sitearch}/_kmlengine.so chrpath --delete $RPM_BUILD_ROOT%{python_sitearch}/_kmldom.so chrpath --delete $RPM_BUILD_ROOT%{python_sitearch}/_kmlbase.so # remove .libs and .deps directories find . -name '.libs' -type d -print | xargs rm -rf find . -name '.deps' -type d -print | xargs rm -rf # fix unstripping-binary-or-object warning chmod a+x $RPM_BUILD_ROOT%{python_sitearch}/_kmlengine.so chmod a+x $RPM_BUILD_ROOT%{python_sitearch}/_kmldom.so %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc COPYING %doc AUTHORS %doc README %doc ChangeLog %dir %{_libdir}/libkml %{_libdir}/libkml/*.so.* %{python_sitearch}/*.so %{python_sitearch}/*.py %{python_sitearch}/*.pyc %{python_sitearch}/*.pyo %files devel %defattr(-,root,root,-) %doc examples %{_includedir}/* %dir %{_libdir}/libkml %{_libdir}/libkml/*.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor