Gitea update

This commit is contained in:
2020-06-14 08:56:25 +02:00
parent f4e729652c
commit 3b341f08c6
2 changed files with 112 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
Name: gitea
Version: 1.11.5
Version: 1.11.6
Release: 1%{?dist}
Summary: Gitea is a painless self-hosted Git service.
%define MyVersion %version
@@ -82,6 +82,9 @@ getent passwd gitea > /dev/null || \
%changelog
* Sun Jun 14 2020 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to version 1.11.6.
* Fri May 15 2020 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Update to version 1.11.5.

108
fedora/SPECS/tilesweep.spec Normal file
View File

@@ -0,0 +1,108 @@
#
# spec file for package tilesweep
#
%define geouser geo
Name: tilesweep
Summary: An OpenStreetMap tile server
Url: https://github.com/seemk/TileSweep
Version: 0.1.0
Release: 1%{?dist}
License: BSD
Group: System Environment/Daemons
Source0: %{name}.tgz
Source1: %{name}-conf.ini
Source2: %{name}-tmpfiles.conf
Source3: %{name}-systemd.service
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: mapnik-devel >= 3.0.12
%description
An OpenStreetMap tile server.
Features:
- Prerendering based on polygon and zoom levels selection.
- Offline tile cache (tiles can be prerendered and served without Mapnik)
- Efficient disk usage
%prep
%setup -qn %{name}
%build
pushd %{name}
mkdir build
cd build
cmake ..
make
popd
%install
pushd %{name}/build/bundle
install -d %{buildroot}/opt/%{name}
install -d %{buildroot}/opt/%{name}/ui
install -d %{buildroot}%{_sysconfdir}/systemd
install -d %{buildroot}%{_sysconfdir}/tmpfiles.d
install %{name} %{buildroot}/opt/%{name}/%{name}
install ui/app.js %{buildroot}/opt/%{name}/ui/app.js
install ui/app.css %{buildroot}/opt/%{name}/ui/app.css
install ui/index.html %{buildroot}/opt/%{name}/ui/index.html
install %{S:1} %{buildroot}/opt/%{name}/conf.ini
install %{S:2} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}
install %{S:3} %{buildroot}%{_sysconfdir}/systemd/%{name}.service
popd
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
%pre
getent group %{geouser} > /dev/null || groupadd -r %{geouser}
getent passwd %{geouser} > /dev/null || \
useradd -m -g %{geouser} -s /bin/bash \
-c "Geo Mapnik user" %{geouser}
%post
%if 0%{?using_systemd}
%if 0%{?systemd_macro_scriptlet}
if [ $1 -eq 1 ]; then
%systemd_post %{name}.service
fi
%firewalld_reload
%endif
%endif
%preun
%if 0%{?using_systemd}
if [ $1 -eq 0 ]; then
systectl stop %{name}.service
fi
%endif
%postun
%if 0%{?using_systemd}
%if 0%{?systemd_macro_scriptlet}
if [ $1 -eq 1 ]; then
%systemd_postun_with_restart %{name}.service
%firewalld_reload
fi
%endif
%endif
%files
%defattr(-,root,root,-)
%doc COPYING README.md
/opt/%{name}/%{name}
%dir /opt/%{name}/ui
/opt/%{name}/ui/*
%dir %{_rundir}/%{name}
%config(noreplace) /opt/%{name}/conf.ini
%config %{_sysconfdir}/tmpfiles.d/%{name}
%changelog
* Thu May 21 2020 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Initial setup.