From 4d06cb85a247bd03f3c1034dbe5d9e4dc7d1772b Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Mon, 11 Mar 2013 13:18:05 -0700 Subject: 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 --- packaging/mic.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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} -- cgit v1.2.3