summaryrefslogtreecommitdiff
path: root/packaging/mic.spec
diff options
context:
space:
mode:
authorChanho Park <cometzero@review.tizen.org>2014-08-07 05:38:06 -0700
committerChanho Park <cometzero@review.tizen.org>2014-08-07 05:38:06 -0700
commit759069d52a6d9b66129d47d24dcbbd3a8dd31b77 (patch)
tree23b008f5694b51350a86a8f626f49917408718f3 /packaging/mic.spec
parentd341c9076b828511e7153b7b9b36e617393f793a (diff)
downloadmic-759069d52a6d9b66129d47d24dcbbd3a8dd31b77.tar.gz
mic-759069d52a6d9b66129d47d24dcbbd3a8dd31b77.tar.bz2
mic-759069d52a6d9b66129d47d24dcbbd3a8dd31b77.zip
This reverts commit d341c9076b828511e7153b7b9b36e617393f793a. Change-Id: I966255f05e30b02103fbdc57cf53af6bba75eac8
Diffstat (limited to 'packaging/mic.spec')
-rw-r--r--packaging/mic.spec13
1 files changed, 13 insertions, 0 deletions
diff --git a/packaging/mic.spec b/packaging/mic.spec
index deb2673..7ea48ed 100644
--- a/packaging/mic.spec
+++ b/packaging/mic.spec
@@ -28,11 +28,20 @@ Requires: bzip2
Requires: python-urlgrabber
Requires: yum >= 3.2.24
%if ! 0%{?centos_version}
+%if 0%{?suse_version}
+Requires: btrfsprogs
+%else
Requires: btrfs-progs
%endif
+%endif
+%if 0%{?suse_version}
+Requires: squashfs >= 4.0
+Requires: python-m2crypto
+%else
Requires: squashfs >= 4.0
Requires: python-M2Crypto
+%endif
%if 0%{?fedora_version} || 0%{?centos_version}
Requires: syslinux-extlinux
@@ -74,7 +83,11 @@ make man
%install
rm -rf $RPM_BUILD_ROOT
+%if 0%{?suse_version}
+%{__python} setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
+%else
%{__python} setup.py install --root=$RPM_BUILD_ROOT -O1
+%endif
# install man page
mkdir -p %{buildroot}/%{_prefix}/share/man/man1