diff options
author | biao716.wang <biao716.wang@samsung.com> | 2022-08-18 18:53:19 +0900 |
---|---|---|
committer | biao716.wang <biao716.wang@samsung.com> | 2022-08-18 18:53:19 +0900 |
commit | 7949c40c185296d142cfd54a08864a19f2b5d37a (patch) | |
tree | f78e25a3eeffe44e8c2a706ede04a801c5a22107 | |
parent | 518ad41e97d71404b6e45b21c687455f37351a12 (diff) | |
download | mic-sandbox/wangbiao/py2.tar.gz mic-sandbox/wangbiao/py2.tar.bz2 mic-sandbox/wangbiao/py2.zip |
rollback change in spec filetizen_8.0_m2_releasetizen_7.0_m2_releasesubmit/tizen/20220818.095606accepted/tizen/unified/20220819.122444accepted/tizen/8.0/unified/20231005.095228accepted/tizen/7.0/unified/hotfix/20221116.111138accepted/tizen/7.0/unified/20221110.063432tizen_8.0tizen_7.0_hotfixtizen_7.0sandbox/xuhy/riscvsandbox/wangbiao/py2accepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unified
Change-Id: I46c35dda14da4b5943339a3a18a03beb56780e5b
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
-rwxr-xr-x | packaging/mic.spec | 45 |
1 files changed, 36 insertions, 9 deletions
diff --git a/packaging/mic.spec b/packaging/mic.spec index 28bc1a2..2032f45 100755 --- a/packaging/mic.spec +++ b/packaging/mic.spec @@ -10,12 +10,15 @@ Name: mic Summary: Image Creator for Linux Distributions Version: 0.28.17 -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 @@ -39,14 +42,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. @@ -57,22 +66,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 -make man +%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/ @@ -82,10 +98,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 |