-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathlavinmq.spec
54 lines (42 loc) · 1.16 KB
/
lavinmq.spec
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
43
44
45
46
47
48
49
50
51
52
53
54
Name: lavinmq
Summary: Message queue server that implements the AMQP 0-9-1 protocol
Version: 2.0.0
Release: 1%{?dist}
License: ASL 2.0
BuildRequires: systemd-rpm-macros crystal curl help2man lz4-devel openssl-devel
Requires(pre): shadow-utils
Suggests: etcd
URL: https://github.com/cloudamqp/lavinmq
Source: lavinmq.tar.gz
%description
A resource efficient message queue server implementing the AMQP protocol
%prep
%setup -qn lavinmq
%check
%build
make
%install
make install DESTDIR=%{buildroot} UNITDIR=%{_unitdir}
%pre
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || \
useradd -r -g %{name} -d /nonexistent -s /sbin/nologin %{name}
exit 0
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
%files
%doc README.md NOTICE
%doc %{_docdir}/%{name}/changelog
%license LICENSE
%{_bindir}/%{name}*
%{_unitdir}/%{name}.service
%{_mandir}/man1/*
%dir %attr(750, lavinmq, lavinmq) %{_sharedstatedir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.ini
%changelog
* Wed Jul 03 2019 CloudAMQP <[email protected]>
- Initial version of the package