forked from oVirt/ovirt-log-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathovirt-log-collector.spec.in
86 lines (69 loc) · 2.63 KB
/
ovirt-log-collector.spec.in
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
74
75
76
77
78
79
80
81
82
83
84
85
86
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%global package_version @PACKAGE_VERSION@
%global package_name @PACKAGE_NAME@
Summary: Log Collector for oVirt Engine
Name: %{package_name}
Version: @PACKAGE_RPM_VERSION@
Release: @PACKAGE_RPM_RELEASE@%{?release_suffix}%{?dist}
License: ASL 2.0
URL: http://www.ovirt.org
Source0: http://resources.ovirt.org/pub/ovirt-master-snapshot/src/%{package_name}/%{package_name}-%{package_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildArch: noarch
Requires: logrotate
Requires: openssh-clients
Requires: python
Requires: python-dateutil
Requires: python-lxml
Requires: sos >= 3.2
Requires: ovirt-engine-lib
Requires: ovirt-engine-sdk-python >= 3.6.0.0
BuildRequires: gettext
BuildRequires: python2-devel
%description
Log Collector tool for oVirt Engine
%prep
%setup -q -n %{package_name}-%{package_version}
%build
%configure \
--docdir="%{_docdir}/%{package_name}-%{version}" \
--disable-python-syntax-check
make %{?_smp_mflags}
%check
make check
%install
rm -rf "%{buildroot}"
make %{?_smp_mflags} install DESTDIR="%{buildroot}"
%files
%doc AUTHORS
%doc COPYING
%dir %{_localstatedir}/log/ovirt-engine/%{package_name}
%dir %{_sysconfdir}/ovirt-engine/logcollector.conf.d
%config(noreplace) %{_sysconfdir}/ovirt-engine/logcollector.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{package_name}
%{python2_sitelib}/ovirt_log_collector/
%{_bindir}/engine-log-collector
%{_mandir}/man8/*
%changelog
* Wed Aug 5 2015 Sandro Bonazzola <[email protected]> - 4.0.0-0.0.master
- 4.0.0-0.0.master