From: Patrick McCarty Date: Mon, 11 Mar 2013 20:18:05 +0000 (-0700) Subject: Fix an issue with building the man page X-Git-Tag: 0.18~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d06cb85a247bd03f3c1034dbe5d9e4dc7d1772b;p=tools%2Fmic.git Fix an issue with building the man page If the python-docutils package is available in a distro, then make sure a BuildRequires is added for it. Change-Id: Ic404fe4ed94bd40aa63139bec3c12b1bcdd59640 --- diff --git a/packaging/mic.spec b/packaging/mic.spec index 7eb25c4..d31b6f1 100644 --- a/packaging/mic.spec +++ b/packaging/mic.spec @@ -53,7 +53,7 @@ Requires: qemu-arm-static Requires: python-zypp BuildRequires: python-devel -%if 0%{?tizen_version:1} +%if ! 0%{?tizen_version:1} BuildRequires: python-docutils %endif @@ -73,7 +73,7 @@ an image. %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build -%if 0%{?tizen_version:1} +%if ! 0%{?tizen_version:1} make man %endif @@ -87,7 +87,7 @@ rm -rf $RPM_BUILD_ROOT # install man page mkdir -p %{buildroot}/%{_prefix}/share/man/man1 -%if 0%{?tizen_version:1} +%if ! 0%{?tizen_version:1} install -m644 doc/mic.1 %{buildroot}/%{_prefix}/share/man/man1 %endif @@ -95,7 +95,7 @@ install -m644 doc/mic.1 %{buildroot}/%{_prefix}/share/man/man1 %defattr(-,root,root,-) %doc doc/* %doc README.rst AUTHORS COPYING ChangeLog -%if 0%{?tizen_version:1} +%if ! 0%{?tizen_version:1} %{_mandir}/man1/* %endif %dir %{_sysconfdir}/%{name}