diff --git a/mod_mapcache.spec b/mod_mapcache.spec index d48ac97..deb0fec 100644 --- a/mod_mapcache.spec +++ b/mod_mapcache.spec @@ -8,7 +8,9 @@ Summary: Caching server for WMS layers Group: Development/Tools %global dashver %(echo %version | sed 's|\\.|-|g') -License: MIT +# 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 URL: http://mapserver.org/trunk/en/mapcache/ Source: https://github.com/%{project_owner}/%{project_name}/releases/download/rel-%{dashver}/mapcache-%{version}.tar.gz @@ -52,6 +54,9 @@ libmapcache-fcgi. %package -n libmapcache Summary: The shared library for mapcache +Requires: mapserver%{?_isa} +Suggests: libdb +Suggests: lmdb %description -n libmapcache %{_description} The shared library files for libmapcache @@ -105,6 +110,12 @@ 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 +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 -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/mapcache.conf @@ -113,16 +124,16 @@ 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 %files -%doc INSTALL.md README.md %license LICENSE.md %{_libdir}/httpd/modules/mod_mapcache.so %config(noreplace) %{_sysconfdir}/mapcache.xml +%dir %{_datadir}/mapcache %{_datadir}/mapcache/mapcache.xml.sample %files -n libmapcache %{_libdir}/libmapcache.so.%{version} %{_libdir}/libmapcache.so.1 -%{_localstatedir}/cache/mapcache +%dir %{_localstatedir}/cache/mapcache %{_sysusersdir}/mapcache.conf %files -n libmapcache-doc @@ -132,6 +143,8 @@ install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/mapcache_seed.1.xml %files -n libmapcache-devel %{_libdir}/libmapcache.so +%dir %{_includedir}/libmapcache/ +%{_includedir}/libmapcache/*.h %files -n libmapcache-fcgi %{_bindir}/mapcache.fcgi @@ -142,9 +155,13 @@ install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/mapcache_seed.1.xml %changelog +* Tue Mar 26 2024 Neil Hanlon - 1.14.0-1 +- add mapcache header files +- add Requires on libmapcache to mapserver + * Mon Mar 11 2024 Neil Hanlon - 1.14.0-1 - Include mapcache.xml -- split into subpackages following debian +- split into subpackages following debian as a guide * Thu Feb 29 2024 Neil Hanlon - 1.14.0-0 - Initial package based on work from ElNinijo