49 lines
1.3 KiB
RPMSpec
49 lines
1.3 KiB
RPMSpec
Name: patissiere
|
|
Version: 0.1.1
|
|
Release: 2%{?dist}
|
|
Summary: A simple pastebin written in Rust
|
|
|
|
License: AGPL-3.0
|
|
URL: https://git.toasterdragon.com/butter/patissiere
|
|
|
|
BuildArch: x86_64
|
|
|
|
%description
|
|
Patissiere is a lightweight self-hosted pastebin service written in Rust using Axum.
|
|
|
|
%prep
|
|
# nothing to prep, using a pre-built binary
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/usr/local/bin
|
|
mkdir -p %{buildroot}/usr/lib/systemd/system
|
|
mkdir -p %{buildroot}/var/lib/patissiere
|
|
|
|
install -m 755 %{_sourcedir}/patissiere %{buildroot}/usr/local/bin/patissiere
|
|
install -m 644 %{_sourcedir}/patissiere.service %{buildroot}/usr/lib/systemd/system/patissiere.service
|
|
|
|
%files
|
|
/usr/local/bin/patissiere
|
|
/usr/lib/systemd/system/patissiere.service
|
|
%dir /var/lib/patissiere
|
|
|
|
%pre
|
|
getent passwd patissiere > /dev/null || \
|
|
useradd --system --no-create-home --home-dir /var/lib/patissiere patissiere
|
|
|
|
%post
|
|
systemctl daemon-reload
|
|
|
|
%preun
|
|
systemctl stop patissiere || true
|
|
systemctl disable patissiere || true
|
|
|
|
%postun
|
|
systemctl daemon-reload
|
|
|
|
%changelog
|
|
* Mon Mar 30 2026 Butter <butter@toasterdragon.com> - 0.1.1-2
|
|
- Changed port to 3005. Maybe this can be configurable in the future?
|
|
* Sun Mar 29 2026 Butter <butter@toasterdragon.com> - 0.1.1-1
|
|
- Initial package
|