2024-03-20 16:41:54 +00:00
|
|
|
%global project_owner MapServer
|
|
|
|
%global project_name mapcache
|
|
|
|
|
2024-04-09 13:51:14 +00:00
|
|
|
%global maj 1
|
|
|
|
%global min 14
|
|
|
|
%global micro 0
|
|
|
|
|
2024-03-20 16:41:54 +00:00
|
|
|
Name: mod_mapcache
|
2024-04-09 13:51:14 +00:00
|
|
|
Version: %{maj}.%{min}.%{micro}
|
2024-03-20 16:41:54 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Caching server for WMS layers
|
|
|
|
|
2024-03-26 17:54:23 +00:00
|
|
|
# mapcache-1.14.0/lib/hmac-sha.c - bsd-3
|
|
|
|
# mapcache-1.14.0/lib/strptime.c - bsd-3
|
|
|
|
License: MIT AND BSD-3-Clause
|
2024-03-20 16:41:54 +00:00
|
|
|
URL: http://mapserver.org/trunk/en/mapcache/
|
|
|
|
|
2024-04-09 13:51:14 +00:00
|
|
|
Source: https://github.com/%{project_owner}/%{project_name}/releases/download/rel-%{maj}-%{min}-%{micro}/mapcache-%{version}.tar.gz
|
2024-03-20 16:41:54 +00:00
|
|
|
Source: mapcache.sysusers
|
|
|
|
|
|
|
|
Source: https://salsa.debian.org/debian-gis-team/mapcache/-/raw/master/debian/man/mapcache_detail.1.xml
|
|
|
|
Source: https://salsa.debian.org/debian-gis-team/mapcache/-/raw/master/debian/man/mapcache_seed.1.xml
|
|
|
|
|
|
|
|
Requires: httpd
|
|
|
|
Requires: libmapcache%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: fcgi-devel
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gdal-devel
|
|
|
|
BuildRequires: geos-devel
|
|
|
|
BuildRequires: httpd-devel
|
2024-04-09 13:51:14 +00:00
|
|
|
BuildRequires: libdb-devel
|
2024-03-20 16:41:54 +00:00
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libjpeg-turbo-devel
|
|
|
|
BuildRequires: libmemcached-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libtiff-devel
|
2024-04-09 13:51:14 +00:00
|
|
|
BuildRequires: lmdb-devel
|
2024-03-20 16:41:54 +00:00
|
|
|
BuildRequires: pixman-devel
|
|
|
|
BuildRequires: proj-devel
|
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2024-04-09 13:51:14 +00:00
|
|
|
BuildRequires: xmltoman
|
2024-03-20 18:44:38 +00:00
|
|
|
|
2024-03-20 16:41:54 +00:00
|
|
|
%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}
|
|
|
|
This is the MapCache module for the Apache web server implementing OGC web
|
|
|
|
services. An alternative mapcache FastCGI program is available in
|
|
|
|
libmapcache-fcgi.
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%sysusers_create_compat %{SOURCE1}
|
|
|
|
|
|
|
|
%package -n libmapcache
|
|
|
|
Summary: The shared library for mapcache
|
2024-03-26 17:54:23 +00:00
|
|
|
Requires: mapserver%{?_isa}
|
2024-03-20 16:41:54 +00:00
|
|
|
|
|
|
|
%description -n libmapcache %{_description}
|
|
|
|
The shared library files for libmapcache
|
|
|
|
|
|
|
|
%package -n libmapcache-devel
|
|
|
|
Summary: Development files for mapcache
|
|
|
|
|
|
|
|
%description -n libmapcache-devel %{_description}
|
|
|
|
Development files for mapcache; these files are needed when building binary packages
|
|
|
|
against libmapcache.
|
|
|
|
|
|
|
|
%package -n libmapcache-doc
|
|
|
|
Summary: Documentation files for mapcache
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n libmapcache-doc %{_description}
|
|
|
|
Documentation files for mapcache.
|
|
|
|
|
|
|
|
%package -n libmapcache-fcgi
|
2024-04-09 13:51:14 +00:00
|
|
|
Summary: An fcgi implementation for mapcache
|
2024-03-20 16:41:54 +00:00
|
|
|
Requires: libmapcache%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libmapcache-fcgi %{_description}
|
|
|
|
This package contains the mapcache FastCGI program, as alternative to the
|
|
|
|
Apache module available in mod_mapcache.
|
|
|
|
|
|
|
|
%package -n libmapcache-tools
|
2024-04-09 13:51:14 +00:00
|
|
|
Summary: Tools for mapcache
|
2024-03-20 16:41:54 +00:00
|
|
|
|
|
|
|
%description -n libmapcache-tools %{_description}
|
|
|
|
Provides command-line utilities for mapcache
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{project_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%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
|
|
|
|
|
|
|
|
install -p -D -m 0644 mapcache.xml %{buildroot}%{_sysconfdir}/mapcache.xml
|
|
|
|
install -p -D -m 0644 mapcache.xml.sample %{buildroot}%{_datadir}/mapcache/mapcache.xml.sample
|
|
|
|
|
2024-03-26 17:54:23 +00:00
|
|
|
pushd include
|
|
|
|
for f in *.h; do
|
|
|
|
install -p -D -m 0644 $f %{buildroot}%{_includedir}/libmapcache/$f;
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2024-03-20 16:41:54 +00:00
|
|
|
install -p -D -d -m 0755 %{buildroot}%{_localstatedir}/cache/mapcache/
|
|
|
|
|
|
|
|
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/mapcache.conf
|
|
|
|
|
2024-04-09 13:51:14 +00:00
|
|
|
|
|
|
|
install -p -D -d -m 0755 %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
xmltoman %{SOURCE2} > %{buildroot}%{_mandir}/man1/mapcache_detail.1
|
|
|
|
xmltoman %{SOURCE3} > %{buildroot}%{_mandir}/man1/mapcache_seed.1
|
2024-03-20 16:41:54 +00:00
|
|
|
|
|
|
|
%files
|
2024-03-25 17:34:48 +00:00
|
|
|
%license LICENSE.md
|
2024-03-20 16:41:54 +00:00
|
|
|
%{_libdir}/httpd/modules/mod_mapcache.so
|
|
|
|
%config(noreplace) %{_sysconfdir}/mapcache.xml
|
2024-03-26 17:54:23 +00:00
|
|
|
%dir %{_datadir}/mapcache
|
2024-03-20 16:41:54 +00:00
|
|
|
%{_datadir}/mapcache/mapcache.xml.sample
|
|
|
|
|
|
|
|
%files -n libmapcache
|
|
|
|
%{_libdir}/libmapcache.so.%{version}
|
|
|
|
%{_libdir}/libmapcache.so.1
|
2024-03-26 17:54:23 +00:00
|
|
|
%dir %{_localstatedir}/cache/mapcache
|
2024-03-20 16:41:54 +00:00
|
|
|
%{_sysusersdir}/mapcache.conf
|
|
|
|
|
|
|
|
%files -n libmapcache-doc
|
2024-03-25 17:34:48 +00:00
|
|
|
%doc INSTALL.md README.md
|
2024-03-20 16:41:54 +00:00
|
|
|
%{_mandir}/man1/mapcache_seed.1*
|
|
|
|
%{_mandir}/man1/mapcache_detail.1*
|
|
|
|
|
|
|
|
%files -n libmapcache-devel
|
|
|
|
%{_libdir}/libmapcache.so
|
2024-03-26 17:54:23 +00:00
|
|
|
%dir %{_includedir}/libmapcache/
|
|
|
|
%{_includedir}/libmapcache/*.h
|
2024-03-20 16:41:54 +00:00
|
|
|
|
|
|
|
%files -n libmapcache-fcgi
|
|
|
|
%{_bindir}/mapcache.fcgi
|
|
|
|
|
|
|
|
%files -n libmapcache-tools
|
|
|
|
%{_bindir}/mapcache_detail
|
|
|
|
%{_bindir}/mapcache_seed
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-03-26 17:54:23 +00:00
|
|
|
* Tue Mar 26 2024 Neil Hanlon <neil@shrug.pw> - 1.14.0-1
|
|
|
|
- add mapcache header files
|
|
|
|
- add Requires on libmapcache to mapserver
|
|
|
|
|
2024-03-20 16:41:54 +00:00
|
|
|
* Mon Mar 11 2024 Neil Hanlon <neil@shrug.pw> - 1.14.0-1
|
|
|
|
- Include mapcache.xml
|
2024-03-26 17:54:23 +00:00
|
|
|
- split into subpackages following debian as a guide
|
2024-03-20 16:41:54 +00:00
|
|
|
|
|
|
|
* Thu Feb 29 2024 Neil Hanlon <neil@shrug.pw> - 1.14.0-0
|
|
|
|
- Initial package based on work from ElNinijo
|