Compare commits

..

1 Commits

Author SHA1 Message Date
949319f215
epel 8 doesn't support unnumbered Source 2024-03-24 14:59:24 -04:00
2 changed files with 23 additions and 49 deletions

View File

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

View File

@ -1,25 +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: %{maj}.%{min}.%{micro} Version: 1.14.0
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 License: MIT
# mapcache-1.14.0/lib/strptime.c - bsd-3 URL: http://mapserver.org/trunk/en/mapcache/
License: MIT AND BSD-3-Clause
URL: http://mapserver.org/mapcache/
Source: https://github.com/%{project_owner}/%{project_name}/releases/download/rel-%{maj}-%{min}-%{micro}/mapcache-%{version}.tar.gz Source0: https://github.com/%{project_owner}/%{project_name}/releases/download/rel-%{dashver}/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,18 +32,15 @@ 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 MapCache is a server that implements tile caching to speed up access to WMS layers.
layers. The primary objectives are to be fast and easily deployable, while The primary objectives are to be fast and easily deployable, while offering the
offering the essential features (and more!) expected from a tile caching essential features (and more!) expected from a tile caching solution.}
solution.}
%description %{_description} %description %{_description}
This is the MapCache module for the Apache web server implementing OGC web This is the MapCache module for the Apache web server implementing OGC web
@ -59,7 +52,6 @@ libmapcache-fcgi.
%package -n libmapcache %package -n libmapcache
Summary: The shared library for mapcache Summary: The shared library for mapcache
Requires: mapserver%{?_isa}
%description -n libmapcache %{_description} %description -n libmapcache %{_description}
The shared library files for libmapcache The shared library files for libmapcache
@ -68,8 +60,8 @@ The shared library files for libmapcache
Summary: Development files for mapcache Summary: Development files for mapcache
%description -n libmapcache-devel %{_description} %description -n libmapcache-devel %{_description}
Development files for mapcache; these files are needed when building binary Development files for mapcache; these files are needed when building binary packages
packages against libmapcache. against libmapcache.
%package -n libmapcache-doc %package -n libmapcache-doc
Summary: Documentation files for mapcache Summary: Documentation files for mapcache
@ -79,7 +71,7 @@ BuildArch: noarch
Documentation files for mapcache. Documentation files for mapcache.
%package -n libmapcache-fcgi %package -n libmapcache-fcgi
Summary: An fcgi implementation for mapcache Summary: fcgi implementation for mapcache
Requires: libmapcache%{?_isa} = %{version}-%{release} Requires: libmapcache%{?_isa} = %{version}-%{release}
%description -n libmapcache-fcgi %{_description} %description -n libmapcache-fcgi %{_description}
@ -87,7 +79,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
@ -113,44 +105,32 @@ done
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
pushd include
for f in *.h; do
install -p -D -m 0644 $f %{buildroot}%{_includedir}/libmapcache/$f;
done
popd
install -p -D -d -m 0755 %{buildroot}%{_localstatedir}/cache/mapcache/ 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 -d -m 0755 %{buildroot}%{_mandir}/man1 install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/mapcache_seed.1.xml
xmltoman %{SOURCE2} > %{buildroot}%{_mandir}/man1/mapcache_detail.1
xmltoman %{SOURCE3} > %{buildroot}%{_mandir}/man1/mapcache_seed.1
%files %files
%license LICENSE.md %doc INSTALL.md README.md LICENSE.md
%{_libdir}/httpd/modules/mod_mapcache.so %{_libdir}/httpd/modules/mod_mapcache.so
%config(noreplace) %{_sysconfdir}/mapcache.xml %config(noreplace) %{_sysconfdir}/mapcache.xml
%dir %{_datadir}/mapcache
%{_datadir}/mapcache/mapcache.xml.sample %{_datadir}/mapcache/mapcache.xml.sample
%files -n libmapcache %files -n libmapcache
%{_libdir}/libmapcache.so.%{version} %{_libdir}/libmapcache.so.%{version}
%{_libdir}/libmapcache.so.1 %{_libdir}/libmapcache.so.1
%dir %{_localstatedir}/cache/mapcache %{_localstatedir}/cache/mapcache
%{_sysusersdir}/mapcache.conf %{_sysusersdir}/mapcache.conf
%files -n libmapcache-doc %files -n libmapcache-doc
%doc INSTALL.md README.md %doc INSTALL.md README.md LICENSE.md
%{_mandir}/man1/mapcache_seed.1* %{_mandir}/man1/mapcache_seed.1*
%{_mandir}/man1/mapcache_detail.1* %{_mandir}/man1/mapcache_detail.1*
%files -n libmapcache-devel %files -n libmapcache-devel
%{_libdir}/libmapcache.so %{_libdir}/libmapcache.so
%dir %{_includedir}/libmapcache/
%{_includedir}/libmapcache/*.h
%files -n libmapcache-fcgi %files -n libmapcache-fcgi
%{_bindir}/mapcache.fcgi %{_bindir}/mapcache.fcgi
@ -161,16 +141,9 @@ xmltoman %{SOURCE3} > %{buildroot}%{_mandir}/man1/mapcache_seed.1
%changelog %changelog
* Sat Jul 06 2024 Neil Hanlon <neil@shrug.pw - 1.14.0-1
- address review comments for initial package release
* Tue Mar 26 2024 Neil Hanlon <neil@shrug.pw> - 1.14.0-1
- add mapcache header files
- add Requires on libmapcache to mapserver
* Mon Mar 11 2024 Neil Hanlon <neil@shrug.pw> - 1.14.0-1 * Mon Mar 11 2024 Neil Hanlon <neil@shrug.pw> - 1.14.0-1
- Include mapcache.xml - Include mapcache.xml
- split into subpackages following debian as a guide - split into subpackages following debian
* Thu Feb 29 2024 Neil Hanlon <neil@shrug.pw> - 1.14.0-0 * Thu Feb 29 2024 Neil Hanlon <neil@shrug.pw> - 1.14.0-0
- Initial package based on work from ElNinijo - Initial package based on work from ElNinijo