This patch fixes build error[1] since we adds %suse_version macro[2].
[1]: https://bugs.tizen.org/jira/browse/TC-1474
[2]: https://review.tizen.org/gerrit/#/c/25292/
Change-Id: Idc6282fdf3c9b969ae4d023d58f51a8ca0f8db61
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
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
%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