-
-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathpatchman-client.spec
More file actions
34 lines (28 loc) · 897 Bytes
/
patchman-client.spec
File metadata and controls
34 lines (28 loc) · 897 Bytes
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
Name: patchman-client
%define version %(cat VERSION.txt)
%define _rpmdir %(pwd)/dist
Version: %{version}
Release: 1
Summary: patchman-client uploads reports to the patchman server
License: GPLv3
URL: http://patchman.openbytes.ie
Source: %{expand:%%(pwd)}
BuildArch: noarch
Requires: curl coreutils util-linux gawk jq
%define _binary_payload w9.gzdio
%description
patchman-client provides a client that uploads reports to a patchman server
%prep
find . -mindepth 1 -delete
cp -af %{SOURCEURL0}/. .
%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/patchman
install -m 755 client/%{name} %{buildroot}%{_sbindir}/%{name}
install -m 644 client/%{name}.conf %{buildroot}%{_sysconfdir}/patchman/%{name}.conf
%files
%defattr(-,root,root)
%{_sbindir}/patchman-client
%dir %{_sysconfdir}/patchman
%config(noreplace) %{_sysconfdir}/patchman/patchman-client.conf
%changelog