forked from CESNET/pakiti-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pakiti.spec
57 lines (44 loc) · 1.5 KB
/
pakiti.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
55
56
57
## github commit ference
%global commit 1f59f72da85834a3e686e4a26c9e6bb3410a4389
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global github_name pakiti3
Summary: Patching status monitoring tool
Name: pakiti
Version: 3.0.0
Release: 1%{?dist}
URL: https://github.com/CESNET/pakiti3
License: ASL 2.0 and BSD
Group: Applications/Internet
Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: perl
%description
Runs rpm -qa or dpkg -l on the hosts and sends results to a central server.
Central server then process the results and checks whether the packages are
installed in the recent version. Central server also provides web GUI where
all results can be seen.
%package client
Summary: Client for the Pakiti tool
Group: Utilities/System
%description client
Runs rpm -qa or dpkg -l, depends on the linux distro. Results are sent to the
central Pakiti server using openssl s_client or curl.
%prep
%setup -qn %{github_name}-%{commit}
%build
mkdir man
pod2man --section=1 bin/pakiti-client > man/pakiti-client.1
%install
rm -rf %{buildroot}
install -D -m755 bin/pakiti-client %{buildroot}%{_bindir}/pakiti-client
install -D -m644 man/pakiti-client.1 %{buildroot}%{_mandir}/man1/pakiti-client.1
%clean
rm -rf %{buildroot}
%files client
%defattr(-,root,root,-)
%{_bindir}/*
%{_mandir}/man?/*
%changelog
* Tue Dec 09 2014 Adrien Devresse <adevress at cern.ch> - 3.0.0-1
- Initial release for pakiti 3.0.0