Remove sh bang from ovfenvelope.py.
[ovirt-image-uploader.git] / ovirt-image-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:        Image 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
33 BuildRequires:  python2-devel
34 BuildRequires:  gettext
35
36 %description
37 Image 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 make %{?_smp_mflags}
47
48 %install
49 rm -rf "%{buildroot}"
50 make %{?_smp_mflags} install DESTDIR="%{buildroot}"
51
52 %files
53 %doc AUTHORS
54 %doc COPYING
55 %config(noreplace) %{_sysconfdir}/ovirt-engine/imageuploader.conf
56 %{_sysconfdir}/ovirt-engine/imageuploader.conf.d/.keep
57 %{python_sitelib}/ovirt_image_uploader/*.py*
58 %{python_sitelib}/ovirt_image_uploader/ovf/*.py*
59 %{_bindir}/engine-image-uploader
60 %{_mandir}/man8/*
61
62 %changelog
63 * Thu Feb 14 2013 Kiril Nesenko <knesenko@redhat.com> - 3.2.0-1
64 - 3.2.0-1
65
66 * Tue Feb 5 2013 Kiril Nesenko <knesenko@redhat.com> - 3.2.0-0.1.beta
67 - 3.2.0-0.1.beta
68
69 * Thu Jan 17 2013 Kiril Nesenko <knesenko@redhat.com> - 1.0.0-0
70 - Rewrite build
71
72 * Thu Mar 8 2012 Keith Robertson <kroberts@redhat.com> - 1.0.0-0
73 - Initial build