build against libdb and lmdb; fix man pages; address review comments
This commit is contained in:
parent
77e102315c
commit
ff385c8946
@ -1,19 +1,21 @@
|
|||||||
%global project_owner MapServer
|
%global project_owner MapServer
|
||||||
%global project_name mapcache
|
%global project_name mapcache
|
||||||
|
|
||||||
|
%global maj 1
|
||||||
|
%global min 14
|
||||||
|
%global micro 0
|
||||||
|
|
||||||
Name: mod_mapcache
|
Name: mod_mapcache
|
||||||
Version: 1.14.0
|
Version: %{maj}.%{min}.%{micro}
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Caching server for WMS layers
|
Summary: Caching server for WMS layers
|
||||||
Group: Development/Tools
|
|
||||||
%global dashver %(echo %version | sed 's|\\.|-|g')
|
|
||||||
|
|
||||||
# mapcache-1.14.0/lib/hmac-sha.c - bsd-3
|
# mapcache-1.14.0/lib/hmac-sha.c - bsd-3
|
||||||
# mapcache-1.14.0/lib/strptime.c - bsd-3
|
# mapcache-1.14.0/lib/strptime.c - bsd-3
|
||||||
License: MIT AND BSD-3-Clause
|
License: MIT AND BSD-3-Clause
|
||||||
URL: http://mapserver.org/trunk/en/mapcache/
|
URL: http://mapserver.org/trunk/en/mapcache/
|
||||||
|
|
||||||
Source: https://github.com/%{project_owner}/%{project_name}/releases/download/rel-%{dashver}/mapcache-%{version}.tar.gz
|
Source: https://github.com/%{project_owner}/%{project_name}/releases/download/rel-%{maj}-%{min}-%{micro}/mapcache-%{version}.tar.gz
|
||||||
Source: mapcache.sysusers
|
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_detail.1.xml
|
||||||
@ -29,15 +31,18 @@ BuildRequires: gcc
|
|||||||
BuildRequires: gdal-devel
|
BuildRequires: gdal-devel
|
||||||
BuildRequires: geos-devel
|
BuildRequires: geos-devel
|
||||||
BuildRequires: httpd-devel
|
BuildRequires: httpd-devel
|
||||||
|
BuildRequires: libdb-devel
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: libjpeg-turbo-devel
|
BuildRequires: libjpeg-turbo-devel
|
||||||
BuildRequires: libmemcached-devel
|
BuildRequires: libmemcached-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
|
BuildRequires: lmdb-devel
|
||||||
BuildRequires: pixman-devel
|
BuildRequires: pixman-devel
|
||||||
BuildRequires: proj-devel
|
BuildRequires: proj-devel
|
||||||
BuildRequires: sqlite-devel
|
BuildRequires: sqlite-devel
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: xmltoman
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
MapCache is a server that implements tile caching to speed up access to WMS layers.
|
MapCache is a server that implements tile caching to speed up access to WMS layers.
|
||||||
@ -55,8 +60,6 @@ libmapcache-fcgi.
|
|||||||
%package -n libmapcache
|
%package -n libmapcache
|
||||||
Summary: The shared library for mapcache
|
Summary: The shared library for mapcache
|
||||||
Requires: mapserver%{?_isa}
|
Requires: mapserver%{?_isa}
|
||||||
Suggests: libdb
|
|
||||||
Suggests: lmdb
|
|
||||||
|
|
||||||
%description -n libmapcache %{_description}
|
%description -n libmapcache %{_description}
|
||||||
The shared library files for libmapcache
|
The shared library files for libmapcache
|
||||||
@ -76,7 +79,7 @@ BuildArch: noarch
|
|||||||
Documentation files for mapcache.
|
Documentation files for mapcache.
|
||||||
|
|
||||||
%package -n libmapcache-fcgi
|
%package -n libmapcache-fcgi
|
||||||
Summary: fcgi implementation for mapcache
|
Summary: An fcgi implementation for mapcache
|
||||||
Requires: libmapcache%{?_isa} = %{version}-%{release}
|
Requires: libmapcache%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description -n libmapcache-fcgi %{_description}
|
%description -n libmapcache-fcgi %{_description}
|
||||||
@ -84,7 +87,7 @@ This package contains the mapcache FastCGI program, as alternative to the
|
|||||||
Apache module available in mod_mapcache.
|
Apache module available in mod_mapcache.
|
||||||
|
|
||||||
%package -n libmapcache-tools
|
%package -n libmapcache-tools
|
||||||
Summary: tools for mapcache
|
Summary: Tools for mapcache
|
||||||
|
|
||||||
%description -n libmapcache-tools %{_description}
|
%description -n libmapcache-tools %{_description}
|
||||||
Provides command-line utilities for mapcache
|
Provides command-line utilities for mapcache
|
||||||
@ -120,8 +123,11 @@ install -p -D -d -m 0755 %{buildroot}%{_localstatedir}/cache/mapcache/
|
|||||||
|
|
||||||
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/mapcache.conf
|
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/mapcache.conf
|
||||||
|
|
||||||
install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/mapcache_detail.1.xml
|
|
||||||
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/mapcache_seed.1.xml
|
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
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
|
Loading…
Reference in New Issue
Block a user