New apache mod_tile package
This commit is contained in:
73
fedora/SPECS/mod_tile.spec
Normal file
73
fedora/SPECS/mod_tile.spec
Normal file
@@ -0,0 +1,73 @@
|
||||
Name: mod_tile
|
||||
Version: 0.5
|
||||
Release: 1%{?dist}
|
||||
Summary: A program to efficiently render and serve map tiles for www.openstreetmap.org map using Apache and Mapnik.
|
||||
|
||||
License: GPLv2
|
||||
URL: https://github.com/openstreetmap/mod_tile
|
||||
Source0: %{name}-%{version}.tgz
|
||||
Source1: 10-tile.conf
|
||||
|
||||
BuildRequires: httpd-devel, apr
|
||||
BuildRequires: mapnik-devel
|
||||
|
||||
%description
|
||||
The rendering is implemented in a multithreaded process
|
||||
called renderd which opens either a unix or tcp socket
|
||||
and listens for requests to render tiles. It uses Mapnik
|
||||
to render tiles using the rendering rules defined in
|
||||
the configuration file /etc/renderd.conf. Its configuration
|
||||
also allows to specify the number of rendering
|
||||
threads.
|
||||
|
||||
The render daemon implements a queuing mechanism with multiple
|
||||
priority levels to provide an as up-to-date viewing experience
|
||||
given the available rendering resources. The highest priority
|
||||
is for on the fly rendering of tiles not yet in the tile cache,
|
||||
two priority levels for re-rendering out of date tiles on the fly
|
||||
and two background batch rendering queues. The on the fly rendering
|
||||
queues are limited to a short 32 metatile size to minimize latency.
|
||||
The size of the main background queue is determined
|
||||
at compile time, see: render_config.h
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--with-apxs \
|
||||
--with-libmapnik
|
||||
%{__make}
|
||||
|
||||
%install
|
||||
%{__make} install DESTDIR=%{buildroot}
|
||||
%{__make} install-%{name} DESTDIR=%{buildroot}
|
||||
%{__install} -D %{S:1} %{buildroot}%{_sysconfdir}/httpd/conf.module.d/10-tile.conf
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
/usr/bin/systemctl reload httpd.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 1 ]; then
|
||||
/usr/bin/systemctl reload httpd.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
||||
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
|
||||
|
||||
%files
|
||||
%doc COPYING mod_tile.conf
|
||||
%config(noreplace) %{_sysconfdir}/renderd.conf
|
||||
%config %{_sysconfdir}/httpd/conf.module.d/10-tile.conf
|
||||
%{_bindir}/render*
|
||||
%{_libdir}/httpd/modules/%{name}.so
|
||||
%{_libdir}/libiniparser*
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man8/*
|
||||
|
||||
%changelog
|
||||
* Fri Nov 8 2019 Daniel Steiner <daniel.steiner@daniel-steiner.org>
|
||||
- First build on Fedora 31 httpd-2.4.41.
|
||||
|
||||
Reference in New Issue
Block a user