Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
%undefine __brp_ldconfig
%undefine __brp_mangle_shebangs
%undefine __brp_strip_static_archive
Summary: Web application for managing observed trials competitions
Name: trialinfo
Version: %{VERSION}
Release: 0%{?dist}
BuildArch: noarch
Requires: nodejs mariadb-server python3-poppler-qt5 poppler-utils
Source0: %{name}-%{version}.tar.gz
Source1: snapshot.tar.gz
License: AGPLv3+
A web application for managing observed trials motorbike and bicycle
competitions. The code is mainly in English; the documentation and user
interface are in German.
%autosetup -p1
tar -xzf "%{SOURCE1}"
make build
rm -fv backend/views/*.marko backend/emails/*.marko
( cd backend/dist
find . -type f -print0 \
| xargs -0 -i'{}' cp -v --parents '{}' .. )
rm -rf backend/dist
find -depth \( -name debian -o -name Makefile -o -name create-db.sql \) -prune -o -print \
| cpio -pd %{buildroot}/var/lib/%{name}
install -d %{buildroot}/var/lib/${package}/pdf
# install -D create-db.sql %{buildroot}/usr/share/doc/${package}/create-db.sql
install -d %{buildroot}/etc/systemd/system
install -m 644 systemd/%{name}.service systemd/%{name}.socket \
install -m 644 systemd/%{name}.service systemd/%{name}-secure.socket \
echo %{VERSION} > %{buildroot}/var/lib/%{name}/backend/version.txt
useradd --system trialinfo || [ $? -eq 9 ]
systemctl stop trialinfo.service 2> /dev/null || :
systemctl daemon-reload
systemctl restart trialinfo.socket 2> /dev/null || :
%doc create-db.sql
* Sat Jan 5 2019 Andreas Gruenbacher <> - %{version}-%{release}
- Initial package.