config: documented cert-file option
[ovirt-iso-uploader.git] / ovirt-iso-uploader.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:        ISO Uploader 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:       ovirt-engine-sdk >= 3.2.0.10-1
33 BuildRequires:  gettext
34 BuildRequires:  python2-devel
35
36 %description
37 ISO Uploader tool for oVirt Engine
38
39 %prep
40 %setup -q -n %{package_name}-%{package_version}
41
42 %build
43 %configure \
44         --docdir="%{_docdir}/%{package_name}-%{version}" \
45         --disable-python-syntax-check
46
47 make %{?_smp_mflags}
48
49 %install
50 rm -rf "%{buildroot}"
51 make %{?_smp_mflags} install DESTDIR="%{buildroot}"
52
53 %files
54 %doc AUTHORS
55 %doc COPYING
56 %config(noreplace) %{_sysconfdir}/ovirt-engine/isouploader.conf
57 %{_sysconfdir}/ovirt-engine/isouploader.conf.d/.keep
58 %{python_sitelib}/ovirt_iso_uploader/*.py*
59 %{_bindir}/ovirt-iso-uploader
60 %{_bindir}/engine-iso-uploader
61 %{_mandir}/man8/*
62
63 %changelog
64 * Thu Feb 14 2013 Kiril Nesenko <knesenko@redhat.com> - 3.2.0-1
65 - 3.2.0-1
66
67 * Tue Feb 5 2013 Kiril Nesenko <knesenko@redhat.com> - 3.2.0-0.1.beta
68 - 3.2.0-0.1.beta
69
70 * Tue Oct 2 2012 Alon Bar-Lev <alonbl@redhat.com>
71 - Rewrite build
72
73 * Thu Mar 8 2012 Keith Robertson <kroberts@redhat.com> - 1.0.0-0
74 - Initial build