diff options
author | Patrick McCarty <patrick.mccarty@linux.intel.com> | 2013-03-11 13:18:05 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit2@otctools.jf.intel.com> | 2013-03-11 22:41:01 -0700 |
commit | 4d06cb85a247bd03f3c1034dbe5d9e4dc7d1772b (patch) | |
tree | abe0ec33d854949988bd5614df453397a6af0ea9 | |
parent | 83e3dc8a095ac6fd20e3680f50b2f0a0af091943 (diff) | |
download | mic-4d06cb85a247bd03f3c1034dbe5d9e4dc7d1772b.tar.gz mic-4d06cb85a247bd03f3c1034dbe5d9e4dc7d1772b.tar.bz2 mic-4d06cb85a247bd03f3c1034dbe5d9e4dc7d1772b.zip |
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
-rw-r--r-- | packaging/mic.spec | 8 |
1 files 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} |