From 4f1eef2f87251beef009b320d1b9dc857023246a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:52:12 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.3.0-1mamba;Thu Jan 07 2021] --- README.md | 2 ++ libkml.spec | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 libkml.spec diff --git a/README.md b/README.md index 187544a..a773680 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libkml +Google's reference implementation of OGC KML 2.2. + diff --git a/libkml.spec b/libkml.spec new file mode 100644 index 0000000..2c99bb4 --- /dev/null +++ b/libkml.spec @@ -0,0 +1,86 @@ +Name: libkml +Version: 1.3.0 +Release: 1mamba +Summary: Google's reference implementation of OGC KML 2.2 +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/libkml/libkml +Source: https://github.com/libkml/libkml.git/%{version}/libkml-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libexpat-devel +BuildRequires: libgcc +BuildRequires: libminizip1-devel +BuildRequires: libstdc++6-devel +BuildRequires: liburiparser-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Google's reference implementation of OGC KML 2.2. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q +sed -i "s|lib/cmake/libkml|%{_lib}/cmake/libkml|" CMakeLists.txt + +%build +%cmake -d build \ + -DINCLUDE_INSTALL_DIR:PATH=/usr/include/kml + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libkmlbase.so.* +%{_libdir}/libkmlconvenience.so.* +%{_libdir}/libkmldom.so.* +%{_libdir}/libkmlengine.so.* +%{_libdir}/libkmlregionator.so.* +%{_libdir}/libkmlxsd.so.* +%doc AUTHORS COPYING LICENSE + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/kml +%{_includedir}/kml/* +%{_libdir}/cmake/libkml +%{_libdir}/cmake/libkml/LibKML*.cmake +%{_libdir}/libkmlbase.so +%{_libdir}/libkmlconvenience.so +%{_libdir}/libkmldom.so +%{_libdir}/libkmlengine.so +%{_libdir}/libkmlregionator.so +%{_libdir}/libkmlxsd.so +%{_libdir}/pkgconfig/libkml.pc +%doc ChangeLog README.md + +%changelog +* Thu Jan 07 2021 Silvan Calarco 1.3.0-1mamba +- package created using the webbuild interface