summaryrefslogtreecommitdiff
path: root/packaging/mic.spec
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2013-02-21 16:38:40 +0800
committerGui Chen <gui.chen@intel.com>2013-02-21 16:58:10 +0800
commit53f7f0f872c17db79155013ea1bdd156150f028c (patch)
treef276d663c1083fd7b0b4e8191177290326411973 /packaging/mic.spec
parente39d67779cee9e2b5b72d1cb193fa0f7df855a3f (diff)
downloadmic-53f7f0f872c17db79155013ea1bdd156150f028c.tar.gz
mic-53f7f0f872c17db79155013ea1bdd156150f028c.tar.bz2
mic-53f7f0f872c17db79155013ea1bdd156150f028c.zip
update mic.spec to enable centos and tizen
Change-Id: Iaf8436686dc2aa2feccdcaafc134a09ed968fd40 Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'packaging/mic.spec')
-rw-r--r--packaging/mic.spec28
1 files changed, 24 insertions, 4 deletions
diff --git a/packaging/mic.spec b/packaging/mic.spec
index 2f6a9e3..842ab53 100644
--- a/packaging/mic.spec
+++ b/packaging/mic.spec
@@ -24,25 +24,38 @@ Requires: cpio
Requires: isomd5sum
Requires: gzip
Requires: bzip2
-Requires: qemu-arm-static
Requires: python-urlgrabber
Requires: yum >= 3.2.24
+%if ! 0%{?centos_version}
%if 0%{?suse_version}
Requires: btrfsprogs
-Requires: squashfs >= 4.0
%else
Requires: btrfs-progs
+%endif
+%endif
+
+%if 0%{?suse_version}
+Requires: squashfs >= 4.0
+%else
Requires: squashfs-tools >= 4.0
%endif
-%if 0%{?fedora_version} > 13
+%if 0%{?fedora_version} || 0%{?centos_version}
Requires: syslinux-extlinux
%endif
+%if "0%{?tizen_version}" != "0"
+Requires: qemu-linux-user
+%else
+Requires: qemu-arm-static
+%endif
+
Requires: python-zypp
BuildRequires: python-devel
+%if "0%{?tizen_version}" == "0"
BuildRequires: python-docutils
+%endif
Obsoletes: mic2
@@ -62,7 +75,9 @@ an image.
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%if "0%{?tizen_version}" == "0"
make man
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -74,16 +89,21 @@ rm -rf $RPM_BUILD_ROOT
# install man page
mkdir -p %{buildroot}/%{_prefix}/share/man/man1
+%if "0%{?tizen_version}" == "0"
install -m644 doc/mic.1 %{buildroot}/%{_prefix}/share/man/man1
+%endif
%files
%defattr(-,root,root,-)
-%doc README.rst AUTHORS COPYING ChangeLog
%doc doc/*
+%doc README.rst AUTHORS COPYING ChangeLog
+%if "0%{?tizen_version}" == "0"
%{_mandir}/man1/*
+%endif
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{python_sitelib}/*
%dir %{_prefix}/lib/%{name}
%{_prefix}/lib/%{name}/*
%{_bindir}/*
+