~janbaudisch/epistula

ref: 6f1e423b618e64ca10741b70712b315fda9e595a epistula/epistula.spec -rw-r--r-- 952 bytes
6f1e423bJan Baudisch builds: use archlinux 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%define debug_package %{nil}

Name: epistula
Version: 0.1.0
Release: 1%{?dist}
Summary: HTTP email sending service
License: AGPLv3+
URL: https://git.sr.ht/~janbaudisch/epistula
Source0: https://git.sr.ht/~janbaudisch/epistula/archive/%{version}.tar.gz
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: systemd

%description
epistula is an HTTP email sending service.

%prep
%autosetup
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build
gzip epistula.1

%install
%cargo_install
install -Dpm 644 epistula.1.gz %{buildroot}%{_mandir}/man1/epistula.1.gz
install -Dpm 644 epistula.service %{buildroot}%{_unitdir}/epistula.service
install -Dpm 644 .env %{buildroot}%{_sysconfdir}/epistula/epistula.env

%check
%cargo_test

%files
%doc README.md
%license LICENSE
%{_bindir}/epistula
%{_mandir}/man1/epistula.1.gz
%{_unitdir}/epistula.service
%config(noreplace) %{_sysconfdir}/epistula/epistula.env