From 6f7bd36edfbdbb0b01af5c074fce8e8d6bc3a21f Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Wed, 6 Mar 2024 18:43:13 -0500 Subject: [PATCH] initial commit based of work from elninijo --- .gitignore | 1 + mapcache.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 86 insertions(+) create mode 100644 .gitignore create mode 100644 mapcache.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a1ee0b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/mapcache-1.14.0.tar.gz diff --git a/mapcache.spec b/mapcache.spec new file mode 100644 index 0000000..a0593f4 --- /dev/null +++ b/mapcache.spec @@ -0,0 +1,84 @@ +%global project_owner MapServer +%global project_name mapcache + +Name: mapcache +Version: 1.14.0 +Release: 0%{?dist} +Summary: Caching server for WMS layers +Group: Development/Tools +%global dashver %(echo %version | sed 's|\\.|-|g') + +License: MIT +URL: http://mapserver.org/trunk/en/mapcache/ + +Source: https://github.com/%{project_owner}/%{project_name}/releases/download/rel-%{dashver}/mapcache-%{version}.tar.gz + +Requires: httpd + + +BuildRequires: chrpath +BuildRequires: cmake +BuildRequires: fcgi-devel +BuildRequires: gcc +BuildRequires: gdal-devel +BuildRequires: geos-devel +BuildRequires: httpd-devel +BuildRequires: libcurl-devel +BuildRequires: libjpeg-turbo-devel +BuildRequires: libmemcached-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: pixman-devel +BuildRequires: proj-devel +BuildRequires: sqlite-devel + +%global _description %{expand: +MapCache is a server that implements tile caching to speed up access to WMS layers. +The primary objectives are to be fast and easily deployable, while offering the +essential features (and more!) expected from a tile caching solution.} + +%description %{_description} + +%package devel +Summary: Development files for mapcache + +%description devel %{_description} +Development files for mapcache; these files are needed when building binary packages +against libmapcache. + +%prep +%autosetup + +%build +#%cmake -DWITH_MEMCACHE=1 -DCMAKE_SKIP_BUILD_RPATH=TRUE . +%cmake -DCMAKE_INSTALL_LIBDIR=%{_lib} -DWITH_MEMCACHE=1 -DCMAKE_SKIP_BUILD_RPATH=TRUE . +%cmake_build + +%install +%cmake_install + +for f in \ + %{buildroot}%{_bindir}/{mapcache_seed,mapcache.fcgi,mapcache_detail} \ + %{buildroot}%{_libdir}/libmapcache.so* \ + %{buildroot}%{_libdir}/httpd/modules/mod_mapcache.so; +do + chrpath --delete $f +done + +# NOTE(neil): 2024-03-06 - Upstream tests require running httpd and loading module -- out of scope for %check but can (read: should) be implemented in tmt/zuul. + +%files +%doc INSTALL.md README.md LICENSE.md +%{_bindir}/mapcache.fcgi +%{_bindir}/mapcache_detail +%{_bindir}/mapcache_seed +%{_libdir}/libmapcache.so.%{version} +%{_libdir}/libmapcache.so.1 +%{_libdir}/httpd/modules/mod_mapcache.so + +%files devel +%{_libdir}/libmapcache.so + +%changelog +* Thu Feb 29 2024 Neil Hanlon +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..283ee4e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (mapcache-1.14.0.tar.gz) = a8398505da96686e9dcc5f209c42efc3987d36deb98caa60f06cdf0ded9bc6486cfef6e192e06b65668182c23c7a913197067cf8a4ac6e32b789113321c643ef