Section: devel
Priority: extra
Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
-Build-Depends: debhelper (>= 7.0.15), cdbs, python3,python-is-python3, python3-all, python3-dev, dh-python, python3-docutils
+Build-Depends: debhelper (>= 7.0.15), cdbs, python3, python3-requests, python3-all, python3-dev, dh-python, python3-docutils
Standards-Version: 3.8.0
Homepage: http://www.tizen.org
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends},
rpm,
- python-is-python3,
python3-rpm,
python3-urlgrabber,
python3-requests,
+ python3-distro,
cpio,
bzip2,
gzip,
+ yum
Conflicts:
mic2
Description: image creator for Linux distributions
The error message will direct you to where the cause of
the failure is logged.""", version=FC4)
op.add_argument("--interpreter", dest="interpreter", default="/bin/sh",
- version=FC4, metavar="/usr/bin/python", help="""
+ version=FC4, metavar="/usr/bin/python3", help="""
Allows you to specify a different scripting language,
- such as Python. Replace /usr/bin/python with the
+ such as Python. Replace /usr/bin/python3 with the
scripting language of your choice.
""")
op.add_argument("--log", "--logfile", dest="log", version=FC4,
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2009, 2010, 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2009, 2010, 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
# vim: ai ts=4 sts=4 et sw=4
#
# Copyright (c) 2012 Intel, Inc.
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
# vim: ai ts=4 sts=4 et sw=4
#
# Copyright (c) 2012 Intel, Inc.
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2011 Intel, Inc.
#
-#!/usr/bin/python
+#!/usr/bin/python3
# vim: ai ts=4 sts=4 et sw=4
#
# Copyright (c) 2011 Intel, Inc.
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2007 Red Hat Inc.
# Copyright (c) 2009, 2010, 2011 Intel, Inc.
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2007 Red Hat, Inc.
# Copyright (c) 2009, 2010, 2011 Intel, Inc.
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2008, 2009, 2010 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2013 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2008, 2009, 2010 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Marko Saukko <marko.saukko@cybercom.com>
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2009, 2010, 2011 Intel, Inc.
#
# correct python interpreter
mic_cont = file(_path(binpth)).read()
- mic_cont = "#!/usr/bin/python\n" + mic_cont
+ mic_cont = "#!/usr/bin/python3\n" + mic_cont
with open(_path(binpth), 'w') as wf:
wf.write(mic_cont)
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2007, Red Hat, Inc.
# Copyright (c) 2009, 2010, 2011 Intel, Inc.
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2013 Intel, Inc.
#
-#!/usr/bin/python
+#!/usr/bin/python3
# Copyright (c) 2014 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2010, 2011 Intel Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2009, 2010, 2011 Intel, Inc.
# Copyright (c) 2007, 2008 Red Hat, Inc.
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2010, 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2008, 2009, 2010, 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2011 Intel, Inc.
#
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%{!?python_version: %define python_version %(%{__python} -c "import sys; sys.stdout.write(sys.version[:3])")}
%define rc_version 0
URL: http://www.tizen.org
Source0: %{name}_%{version}.tar.gz
-Requires: python >= 2.6
+Requires: python3 >= 3.1
Requires: python3-urlgrabber >= 3.9.0
Requires: yum
-Requires: python-requests
+Requires: python3-requests
%if 0%{?suse_version} || 0%{?tizen_version:1}
-Requires: python-xml
-%endif
-
-%if "%{?python_version}" < "2.7"
-Requires: python-argparse
+Requires: python3-xml
%endif
%if 0%{?tizen_version:1}
-Requires: python-rpm
+Requires: python3-rpm
%else
Requires: rpm-python
%endif
-
+Requires: python3-distro
Requires: cpio
# not neccessary
Requires: gzip
Requires: bzip2
-BuildRequires: python-devel
+BuildRequires: python3-devel
%if ! 0%{?tizen_version:1}
-BuildRequires: python-docutils
+BuildRequires: python3-docutils
%endif
Obsoletes: mic2
%setup -q -n %{name}-%{version}
%build
-CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+CFLAGS="$RPM_OPT_FLAGS" python3 setup.py build
make man
%install
rm -rf $RPM_BUILD_ROOT
%if 0%{?suse_version}
-%{__python} setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
+python3 setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
%else
-%{__python} setup.py install --root=$RPM_BUILD_ROOT -O1
+python3 setup.py install --root=$RPM_BUILD_ROOT -O1
%endif
# install man page
%endif
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
-%{python_sitelib}/*
+%{python3_sitelib}/*
%dir %{_prefix}/lib/%{name}
%{_prefix}/lib/%{name}/*
%{_bindir}/mic
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2007 Red Hat Inc.
# Copyright (c) 2010, 2011 Intel, Inc.
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2010, 2011 Intel, Inc.
#
-#!/usr/bin/python
+#!/usr/bin/python3
# TODO: plugin base for hooks
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#
# Copyright (c) 2011 Intel, Inc.
#
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
from mic.pluginbase import BackendPlugin
class Yum(BackendPlugin):
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
from mic.pluginbase import BackendPlugin
class Zypp(BackendPlugin):
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
from mic.pluginbase import ImagerPlugin
class FsPlugin(ImagerPlugin):
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
from mic.pluginbase import ImagerPlugin
class LoopPlugin(ImagerPlugin):
-#!/usr/bin/python
+#!/usr/bin/python3
import os
import sys
-#!/usr/bin/python
+#!/usr/bin/python3
import os
import sys
-#!/usr/bin/python
+#!/usr/bin/python3
import os
import sys
-#!/usr/bin/python
+#!/usr/bin/python3
import os
import sys
-#!/usr/bin/python
+#!/usr/bin/python3
import unittest
from mic.utils import proxy
-#!/usr/bin/python
+#!/usr/bin/python3
import os
import sys
-#!/usr/bin/python -tt
+#!/usr/bin/python3 -tt
#Copyright (c) 2011 Intel, Inc.
#