Compare commits

...

2 Commits

Author SHA1 Message Date
d2d75f8e81
fix numbering for source 2024-03-22 10:39:28 -04:00
71a6a16acf
fix rpmlint issues 2024-03-20 14:44:38 -04:00
2 changed files with 22 additions and 13 deletions

4
mod_mapcache.rpmlintrc Normal file
View File

@ -0,0 +1,4 @@
addFilter(r'spelling-error .* deployable .*')
addFilter(r'spelling-error .* libmapcache .*')
addFilter(r'spelling-error .* fcgi .*')
addFilter(r'description-line-too-long .*')

View File

@ -1,21 +1,24 @@
%global project_owner MapServer %global project_owner MapServer
%global project_name mapcache %global project_name mapcache
%global maj 1
%global min 14
%global rev 0
Name: mod_mapcache Name: mod_mapcache
Version: 1.14.0 Version: %{maj}.%{min}.%{rev}
Release: 1%{?dist} Release: 1%{?dist}
Summary: Caching server for WMS layers Summary: Caching server for WMS layers
Group: Development/Tools Group: Development/Tools
%global dashver %(echo %version | sed 's|\\.|-|g')
License: MIT License: MIT
URL: http://mapserver.org/trunk/en/mapcache/ URL: http://mapserver.org/
Source: https://github.com/%{project_owner}/%{project_name}/releases/download/rel-%{dashver}/mapcache-%{version}.tar.gz Source0: https://github.com/%{project_owner}/%{project_name}/releases/download/rel-%{maj}-%{min}-%{rev}/mapcache-%{version}.tar.gz
Source: mapcache.sysusers Source1: mapcache.sysusers
Source: https://salsa.debian.org/debian-gis-team/mapcache/-/raw/master/debian/man/mapcache_detail.1.xml Source2: 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 Source3: https://salsa.debian.org/debian-gis-team/mapcache/-/raw/master/debian/man/mapcache_seed.1.xml
Requires: httpd Requires: httpd
Requires: libmapcache%{?_isa} = %{version}-%{release} Requires: libmapcache%{?_isa} = %{version}-%{release}
@ -36,7 +39,7 @@ BuildRequires: pixman-devel
BuildRequires: proj-devel BuildRequires: proj-devel
BuildRequires: sqlite-devel BuildRequires: sqlite-devel
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
%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.
The primary objectives are to be fast and easily deployable, while offering the The primary objectives are to be fast and easily deployable, while offering the
@ -88,7 +91,6 @@ Provides command-line utilities for mapcache
%autosetup -n %{project_name}-%{version} %autosetup -n %{project_name}-%{version}
%build %build
#%cmake -DWITH_MEMCACHE=1 -DCMAKE_SKIP_BUILD_RPATH=TRUE .
%cmake -DCMAKE_INSTALL_LIBDIR=%{_lib} -DWITH_MEMCACHE=1 -DCMAKE_SKIP_BUILD_RPATH=TRUE . %cmake -DCMAKE_INSTALL_LIBDIR=%{_lib} -DWITH_MEMCACHE=1 -DCMAKE_SKIP_BUILD_RPATH=TRUE .
%cmake_build %cmake_build
@ -98,11 +100,13 @@ Provides command-line utilities for mapcache
for f in \ for f in \
%{buildroot}%{_bindir}/{mapcache_seed,mapcache.fcgi,mapcache_detail} \ %{buildroot}%{_bindir}/{mapcache_seed,mapcache.fcgi,mapcache_detail} \
%{buildroot}%{_libdir}/libmapcache.so* \ %{buildroot}%{_libdir}/libmapcache.so* \
%{buildroot}%{_libdir}/httpd/modules/mod_mapcache.so; %{buildroot}%{_httpd_moddir}/mod_mapcache.so;
do do
chrpath --delete $f chrpath --delete $f
done done
install -p -D -m 0644 include/ %{buildroot}%{_libdir}/include/
install -p -D -m 0644 mapcache.xml %{buildroot}%{_sysconfdir}/mapcache.xml 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 install -p -D -m 0644 mapcache.xml.sample %{buildroot}%{_datadir}/mapcache/mapcache.xml.sample
@ -114,8 +118,9 @@ install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/mapcache_detail.1.x
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/mapcache_seed.1.xml install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/mapcache_seed.1.xml
%files %files
%doc INSTALL.md README.md LICENSE.md %doc INSTALL.md README.md
%{_libdir}/httpd/modules/mod_mapcache.so %license LICENSE.md
%{_httpd_moddir}/mod_mapcache.so
%config(noreplace) %{_sysconfdir}/mapcache.xml %config(noreplace) %{_sysconfdir}/mapcache.xml
%{_datadir}/mapcache/mapcache.xml.sample %{_datadir}/mapcache/mapcache.xml.sample
@ -126,7 +131,7 @@ install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/mapcache_seed.1.xml
%{_sysusersdir}/mapcache.conf %{_sysusersdir}/mapcache.conf
%files -n libmapcache-doc %files -n libmapcache-doc
%doc INSTALL.md README.md LICENSE.md %doc INSTALL.md README.md
%{_mandir}/man1/mapcache_seed.1* %{_mandir}/man1/mapcache_seed.1*
%{_mandir}/man1/mapcache_detail.1* %{_mandir}/man1/mapcache_detail.1*