diff options
author | SoonKyu Park <sk7.park@samsung.com> | 2016-09-23 10:35:49 +0900 |
---|---|---|
committer | SoonKyu Park <sk7.park@samsung.com> | 2016-09-23 10:35:49 +0900 |
commit | c46ae15366c67ee9ecabd417f1773f454e724aa7 (patch) | |
tree | 12329309b8067983625c63213f658a5ec8e05ba0 /packaging/mic.spec | |
parent | 4915f9a5a1da5eaa20c58e798a2ac5de0ef7eeb0 (diff) | |
parent | 4161678b3bf9d2eb36fdcb82c820bce02f6ba5bc (diff) | |
download | mic-c46ae15366c67ee9ecabd417f1773f454e724aa7.tar.gz mic-c46ae15366c67ee9ecabd417f1773f454e724aa7.tar.bz2 mic-c46ae15366c67ee9ecabd417f1773f454e724aa7.zip |
Merge release-0.27.1 from 'tools/mic'submit/tizen/20160923.060613accepted/tizen/common/20160923.160804tizen_0.27.1
Change-Id: Ifba625f3902104e6a21e8340f5b292f0190057d7
Diffstat (limited to 'packaging/mic.spec')
-rw-r--r-- | packaging/mic.spec | 85 |
1 files changed, 44 insertions, 41 deletions
diff --git a/packaging/mic.spec b/packaging/mic.spec index 11733ac..3f70bd3 100644 --- a/packaging/mic.spec +++ b/packaging/mic.spec @@ -1,51 +1,45 @@ +%{!?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 + +%if 0%{?rc_version} +%define release_prefix 0.rc%{rc_version}. +%endif + Name: mic Summary: Image Creator for Linux Distributions -Version: 0.19 -Release: 0 -Group: System/Utilities -License: GPL-2.0 +Version: 0.27.1 +Release: %{?release_prefix}%{?opensuse_bs:<CI_CNT>.<B_CNT>}%{!?opensuse_bs:0} +Group: Development/Tools +License: GPLv2 BuildArch: noarch URL: http://www.tizen.org -Source0: %{name}-%{version}.tar.gz +Source0: %{name}_%{version}.tar.gz %if 0%{?tizen_version:1} Source1001: mic.manifest %endif -Requires: python-rpm -Requires: util-linux -Requires: coreutils -Requires: python >= 2.5 -Requires: e2fsprogs -Requires: dosfstools >= 2.11-8 -Requires: syslinux >= 3.82 -Requires: kpartx -Requires: parted -Requires: device-mapper -Requires: /usr/bin/genisoimage -Requires: cpio -#Requires: isomd5sum -Requires: gzip -Requires: bzip2 -Requires: python-urlgrabber -Requires: yum >= 3.2.24 -%if ! 0%{?centos_version} -%if 0%{?suse_version} -Requires: btrfsprogs -%else -Requires: btrfs-progs + +Requires: python >= 2.6 +Requires: python-urlgrabber >= 3.9.0 +%if 0%{?suse_version} || 0%{?tizen_version:1} +Requires: python-xml %endif + +%if "%{?python_version}" < "2.7" +Requires: python-argparse %endif -%if 0%{?suse_version} -Requires: squashfs >= 4.0 -Requires: python-m2crypto +%if 0%{?tizen_version:1} +Requires: python-rpm %else -Requires: squashfs >= 4.0 -Requires: python-M2Crypto +Requires: rpm-python %endif -%if 0%{?fedora_version} || 0%{?centos_version} -Requires: syslinux-extlinux -%endif +Requires: cpio +# not neccessary +Requires: gzip +Requires: bzip2 %if 0%{?tizen_version:1} Requires: qemu-linux-user @@ -53,8 +47,6 @@ Requires: qemu-linux-user Requires: qemu-arm-static %endif -Requires: python-zypp - BuildRequires: python-devel %if ! 0%{?tizen_version:1} BuildRequires: python-docutils @@ -80,7 +72,7 @@ cp %{SOURCE1001} . %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %if ! 0%{?tizen_version:1} -%__make man +make man %endif %install @@ -92,11 +84,19 @@ rm -rf %{buildroot} %endif # install man page -mkdir -p %{buildroot}%{_mandir}/man1 +mkdir -p %{buildroot}/%{_prefix}/share/man/man1 %if ! 0%{?tizen_version:1} -install -m644 doc/mic.1 %{buildroot}%{_mandir}/man1 +install -m644 doc/mic.1 %{buildroot}/%{_prefix}/share/man/man1 %endif +# install bash completion +install -d -m0755 %{buildroot}/%{_sysconfdir}/bash_completion.d/ +install -Dp -m0755 etc/bash_completion.d/%{name}.sh %{buildroot}/%{_sysconfdir}/bash_completion.d/ + +# install zsh completion +install -d -m0755 %{buildroot}/%{_sysconfdir}/zsh_completion.d/ +install -Dp -m0755 etc/zsh_completion.d/_%{name} %{buildroot}/%{_sysconfdir}/zsh_completion.d/ + %if ! 0%{?centos_version} %fdupes %{buildroot} %endif @@ -120,4 +120,7 @@ install -m644 doc/mic.1 %{buildroot}%{_mandir}/man1 %{python_sitelib}/* %dir %{_prefix}/lib/%{name} %{_prefix}/lib/%{name}/* -%{_bindir}/* +%{_bindir}/mic +%{_sysconfdir}/bash_completion.d +%{_sysconfdir}/zsh_completion.d + |