make devel package useful, add some polish

This commit is contained in:
Neil Hanlon 2024-03-26 13:54:23 -04:00 committed by Neil Hanlon
parent ea849ef631
commit 77e102315c
Signed by: neil
GPG Key ID: 705BC21EC3C70F34

View File

@ -8,7 +8,9 @@ Summary: Caching server for WMS layers
Group: Development/Tools Group: Development/Tools
%global dashver %(echo %version | sed 's|\\.|-|g') %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/ 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-%{dashver}/mapcache-%{version}.tar.gz
@ -52,6 +54,9 @@ libmapcache-fcgi.
%package -n libmapcache %package -n libmapcache
Summary: The shared library for mapcache Summary: The shared library for mapcache
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
@ -105,6 +110,12 @@ 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
@ -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 install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/mapcache_seed.1.xml
%files %files
%doc INSTALL.md README.md
%license LICENSE.md %license 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
%{_localstatedir}/cache/mapcache %dir %{_localstatedir}/cache/mapcache
%{_sysusersdir}/mapcache.conf %{_sysusersdir}/mapcache.conf
%files -n libmapcache-doc %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 %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
@ -142,9 +155,13 @@ install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_mandir}/man1/mapcache_seed.1.xml
%changelog %changelog
* 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 - split into subpackages following debian as a guide
* 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