-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathvarlink-httpd.spec
More file actions
73 lines (57 loc) · 2.13 KB
/
Copy pathvarlink-httpd.spec
File metadata and controls
73 lines (57 loc) · 2.13 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# we have "strip = true in Cargo.toml" so we need to undefine this
%undefine _debugsource_packages
Name: varlink-httpd
Version: 0.1.0
Release: %autorelease
Summary: HTTP bridge for local varlink services
License: LGPL-2.1-or-later
URL: https://github.com/systemd/varlink-http-bridge
Source0: %{name}-%{version}.tar.gz
BuildRequires: cargo
BuildRequires: rust >= 1.85
BuildRequires: just
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: gcc
BuildRequires: systemd-rpm-macros
%description
An HTTP bridge that makes local varlink services available over HTTP and
WebSocket. The main use case is systemd, so only the subset of varlink that
systemd needs is supported right now.
It takes a directory with varlink sockets as the argument and serves whatever
it finds there. Sockets can be added or removed dynamically.
%package -n varlinkctl-http
Summary: HTTP/WebSocket transport helper for varlinkctl
Requires: systemd >= 260~
%description -n varlinkctl-http
A bridge helper that lets varlinkctl talk to varlink services over HTTP and
WebSocket (http://, https://, ws://, wss:// URLs). Install into
/usr/lib/systemd/varlink-bridges/ so that varlinkctl discovers it
automatically.
%prep
%autosetup
%build
just build release
%install
DESTDIR=%{buildroot} SYSCONFDIR=%{_sysconfdir} just install
%post
%systemd_post varlink-httpd.service varlink-httpd.socket varlink-httpd-vsock.socket
%preun
%systemd_preun varlink-httpd.service varlink-httpd.socket varlink-httpd-vsock.socket
%postun
%systemd_postun_with_restart varlink-httpd.service varlink-httpd.socket varlink-httpd-vsock.socket
%files
%{_bindir}/varlink-httpd
%{_unitdir}/varlink-httpd.service
%{_unitdir}/varlink-httpd.socket
%{_unitdir}/varlink-httpd-vsock.socket
%dir %{_sysconfdir}/varlink-httpd
%files -n varlinkctl-http
%{_prefix}/lib/systemd/varlink-bridges/http
%{_prefix}/lib/systemd/varlink-bridges/https
%{_prefix}/lib/systemd/varlink-bridges/ws
%{_prefix}/lib/systemd/varlink-bridges/wss
%{_prefix}/lib/systemd/varlink-bridges/vsock
%{_prefix}/lib/systemd/varlink-bridges/vsock+tls
%changelog
%autochangelog