db: drop the obfuscation of database password
[ovirt-log-collector.git] / ovirt-log-collector.spec.in
1 #
2 # Licensed to the Apache Software Foundation (ASF) under one or more
3 # contributor license agreements.  See the NOTICE file distributed with
4 # this work for additional information regarding copyright ownership.
5 # The ASF licenses this file to You under the Apache License, Version 2.0
6 # (the "License"); you may not use this file except in compliance with
7 # the License.  You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17
18 %global         package_version @PACKAGE_VERSION@
19 %global         package_name @PACKAGE_NAME@
20
21 Summary:        Log Collector for oVirt Engine
22 Name:           %{package_name}
23 Version:        @PACKAGE_RPM_VERSION@
24 Release:        @PACKAGE_RPM_RELEASE@%{?release_suffix}%{?dist}
25 License:        ASL 2.0
26 URL:            http://www.ovirt.org
27 Source:         http://resources.ovirt.org/releases/3.2/src/%{package_name}-%{package_version}.tar.gz
28
29 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}
30 BuildArch:      noarch
31 Requires:       python
32 Requires:       python-dateutil
33 Requires:       python-lxml
34 Requires:       ovirt-engine-sdk
35 Requires:       sos
36 BuildRequires:  python2-devel
37 BuildRequires:  gettext
38
39 %description
40 Log Collector tool for oVirt Engine
41
42 %prep
43 %setup -q -n %{package_name}-%{package_version}
44
45 %build
46 %configure \
47         --docdir="%{_docdir}/%{package_name}-%{version}" \
48         --disable-python-syntax-check
49 make %{?_smp_mflags}
50
51 %install
52 rm -rf "%{buildroot}"
53 make %{?_smp_mflags} install DESTDIR="%{buildroot}"
54
55 %files
56 %doc AUTHORS
57 %doc COPYING
58 %config(noreplace) %{_sysconfdir}/ovirt-engine/logcollector.conf
59 %{_sysconfdir}/ovirt-engine/logcollector.conf.d/.keep
60 %{python_sitelib}/ovirt_log_collector/*.py*
61 %{python_sitelib}/ovirt_log_collector/helper/*.py*
62 %{python_sitelib}/sos/plugins/*.py*
63 %{_bindir}/engine-log-collector
64 %{_mandir}/man8/*
65
66 %changelog
67 * Thu Feb 14 2013 Kiril Nesenko <knesenko@redhat.com> - 3.2.0-1
68 - 3.2.0-1
69
70 * Tue Feb 5 2013 Kiril Nesenko <knesenko@redhat.com> - 3.2.0-0.1.beta
71 - 3.2.0-0.1.beta
72
73 * Tue Oct 2 2012 Alon Bar-Lev <alonbl@redhat.com>
74 - Rewrite build
75
76 * Thu Mar 8 2012 Keith Robertson <kroberts@redhat.com> - 1.0.0-0
77 - Initial build