Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: spatialite-tools, readosm #36247

Merged
merged 2 commits into from Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions common/shlibs
Expand Up @@ -4125,6 +4125,8 @@ librttopo.so.1 librttopo-1.1.0_1
libspatialite.so.7 libspatialite-5.0.1_1
mod_spatialite.so.7 libspatialite-5.0.1_1
libSvtAv1Enc.so.1 libsvt-av1-1.0.0_1
libreadosm.so.1 readosm-1.1.0a_1
libSvtAv1Enc.so.0 libsvt-av1-0.9.0_1
libSvtAv1Dec.so.0 libsvt-av1-0.9.0_1
librz_bp.so.0.3.4 rizin-0.3.4_1
librz_reg.so.0.3.4 rizin-0.3.4_1
Expand Down
1 change: 1 addition & 0 deletions srcpkgs/readosm-devel
24 changes: 24 additions & 0 deletions srcpkgs/readosm/template
@@ -0,0 +1,24 @@
# Template file for 'readosm'
pkgname=readosm
version=1.1.0a
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="zlib-devel expat-devel"
short_desc="ReadOSM library for extracting valid data from OpenStreetMap input"
maintainer="Arjan Mossel <arjanmossel@gmail.com>"
license="MPL-1.1, GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://www.gaia-gis.it/fossil/readosm/index"
distfiles="https://www.gaia-gis.it/gaia-sins/readosm-$version.tar.gz"
checksum=db7c051d256cec7ecd4c3775ab9bc820da5a4bf72ffd4e9f40b911d79770f145

readosm-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}
22 changes: 22 additions & 0 deletions srcpkgs/spatialite-tools/patches/spatialite-tools_lxml2.patch
@@ -0,0 +1,22 @@
https://src.fedoraproject.org/rpms/spatialite-tools/blob/rawhide/f/spatialite-tools_lxml2.patch

--- a/Makefile.am 2021-02-07 17:34:04.000000000 +0100
+++ b/Makefile.am 2021-12-14 15:45:19.962324159 +0100
@@ -49,6 +49,7 @@ shp_doctor_SOURCES = shp_doctor.c
shp_sanitize_SOURCES = shp_sanitize.c
exif_loader_SOURCES = exif_loader.c
spatialite_xml_validator_SOURCES = spatialite_xml_validator.c
+spatialite_xml_validator_LIBADD = @LIBXML2_LIBS@
spatialite_xml_load_SOURCES = spatialite_xml_load.c
spatialite_xml2utf8_SOURCES = spatialite_xml2utf8.c
spatialite_xml_collapse_SOURCES = spatialite_xml_collapse.c
--- a/Makefile.in 2021-02-07 17:34:04.000000000 +0100
+++ b/Makefile.in 2021-12-14 15:45:42.976287325 +0100
@@ -492,6 +492,7 @@ shp_doctor_SOURCES = shp_doctor.c
shp_sanitize_SOURCES = shp_sanitize.c
exif_loader_SOURCES = exif_loader.c
spatialite_xml_validator_SOURCES = spatialite_xml_validator.c
+spatialite_xml_validator_LDADD = @LIBXML2_LIBS@
spatialite_xml_load_SOURCES = spatialite_xml_load.c
spatialite_xml2utf8_SOURCES = spatialite_xml2utf8.c
spatialite_xml_collapse_SOURCES = spatialite_xml_collapse.c
16 changes: 16 additions & 0 deletions srcpkgs/spatialite-tools/template
@@ -0,0 +1,16 @@
# Template file for 'spatialite-tools'
pkgname=spatialite-tools
version=5.0.0
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config geos-devel libspatialite-devel"
makedepends="sqlite-devel zlib-devel proj-devel freexl-devel
geos-devel librttopo-devel libxml2-devel minizip-devel
libspatialite-devel expat-devel readline-devel readosm-devel"
depends="libspatialite"
short_desc="CLI tools supporting SpatiaLite"
maintainer="Arjan Mossel <arjanmossel@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://www.gaia-gis.it/fossil/spatialite-tools/index"
distfiles="https://www.gaia-gis.it/gaia-sins/spatialite-tools-$version.tar.gz"
checksum=ad092d90ccb2c480f372d1e24b1e6ad9aa8a4bb750e094efdcc6c37edb6b6d32