Merge release-0.27.4 from 'tools/mic' accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_5.5_unified_mobile_hotfix sandbox/soong9/0.27.4_upgrade tizen_3.0 tizen_4.0 tizen_4.0_tv tizen_5.0 tizen_5.5_mobile_hotfix accepted/tizen/3.0/common/20170630.141935 accepted/tizen/3.0/ivi/20170630.081242 accepted/tizen/3.0/mobile/20170630.081407 accepted/tizen/3.0/tv/20170630.081427 accepted/tizen/3.0/wearable/20170630.081227 accepted/tizen/4.0/unified/20170816.013304 accepted/tizen/4.0/unified/20170828.222729 accepted/tizen/5.0/unified/20181102.030014 accepted/tizen/5.5/unified/20191031.011055 accepted/tizen/5.5/unified/mobile/hotfix/20201027.073755 accepted/tizen/unified/20170629.085549 submit/tizen/20170602.051709 submit/tizen/20170619.064646 submit/tizen_3.0/20170602.051619 submit/tizen_3.0/20170619.080749 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100006 submit/tizen_5.0/20181101.000007 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release tizen_5.5.m2_release upstream/0.27.4
authorSoonKyu Park <sk7.park@samsung.com>
Thu, 1 Jun 2017 10:39:16 +0000 (19:39 +0900)
committerSoonKyu Park <sk7.park@samsung.com>
Thu, 1 Jun 2017 10:39:16 +0000 (19:39 +0900)
Change-Id: I7f4d55c6c384bc520b2fbe2004affb9d27ed919f

packaging/mic.manifest [new file with mode: 0644]
packaging/mic.spec

diff --git a/packaging/mic.manifest b/packaging/mic.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
index 8243337..d78e67b 100644 (file)
 Name:       mic
 Summary:    Image Creator for Linux Distributions
 Version:    0.27.4
-Release:    %{?release_prefix}%{?opensuse_bs:<CI_CNT>.<B_CNT>}%{!?opensuse_bs:0}
+Release:    0
 Group:      Development/Tools
 License:    GPLv2
 BuildArch:  noarch
 URL:        http://www.tizen.org
 Source0:    %{name}_%{version}.tar.gz
+%if 0%{?tizen_version:1}
+Source1001: mic.manifest
+%endif
 
 Requires:   python >= 2.6
 Requires:   python-urlgrabber >= 3.9.0
@@ -38,14 +41,20 @@ Requires:   cpio
 Requires:   gzip
 Requires:   bzip2
 
+%if 0%{?tizen_version:1}
+Requires:   qemu-linux-user
+%else
+Requires:   qemu-arm-static
+%endif
+
 BuildRequires:  python-devel
 %if ! 0%{?tizen_version:1}
 BuildRequires:  python-docutils
 %endif
 
-Obsoletes:  mic2
-
-BuildRoot:  %{_tmppath}/%{name}_%{version}-build
+%if ! 0%{?centos_version}
+BuildRequires:fdupes
+%endif
 
 %description
 The tool mic is used to create and manipulate images for Linux distributions.
@@ -56,22 +65,29 @@ an image.
 
 %prep
 %setup -q -n %{name}-%{version}
+%if 0%{?tizen_version:1}
+cp %{SOURCE1001} .
+%endif
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%if ! 0%{?tizen_version:1}
 make man
+%endif
 
 %install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 %if 0%{?suse_version}
-%{__python} setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
+%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix}
 %else
-%{__python} setup.py install --root=$RPM_BUILD_ROOT -O1
+%{__python} setup.py install --root=%{buildroot} -O1
 %endif
 
 # install man page
 mkdir -p %{buildroot}/%{_prefix}/share/man/man1
+%if ! 0%{?tizen_version:1}
 install -m644 doc/mic.1 %{buildroot}/%{_prefix}/share/man/man1
+%endif
 
 # install bash completion
 install -d -m0755 %{buildroot}/%{_sysconfdir}/bash_completion.d/
@@ -81,10 +97,21 @@ install -Dp -m0755 etc/bash_completion.d/%{name}.sh %{buildroot}/%{_sysconfdir}/
 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
+
+
 %files
+%if 0%{?tizen_version:1}
+%manifest %{name}.manifest
+%endif
 %defattr(-,root,root,-)
+%if ! (0%{?suse_version} || 0%{?centos_version})
+%license COPYING
+%endif
 %doc doc/*
-%doc README.rst AUTHORS COPYING ChangeLog
+%doc README.rst AUTHORS ChangeLog
 %if ! 0%{?tizen_version:1}
 %{_mandir}/man1/*
 %endif