1 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
4 Summary: Image Creator for Linux Distributions
10 URL: http://www.tizen.org
11 Source0: %{name}_%{version}.tar.gz
15 Requires: python >= 2.5
17 Requires: dosfstools >= 2.11-8
18 Requires: syslinux >= 3.82
21 Requires: device-mapper
22 Requires: /usr/bin/genisoimage
27 Requires: squashfs-tools >= 4.0
28 Requires: qemu-arm-static
29 Requires: python-urlgrabber
30 Requires: yum >= 3.2.24
37 %if 0%{?fedora_version} > 13
38 Requires: syslinux-extlinux
43 BuildRequires: python-devel
44 BuildRequires: python-docutils
48 BuildRoot: %{_tmppath}/%{name}_%{version}-build
52 The tool mic is used to create and manipulate images for Linux distributions.
53 It is composed of three subcommand\: create, convert, chroot. Subcommand create
54 is used to create images with different types; subcommand convert is used to
55 convert an image to a specified type; subcommand chroot is used to chroot into
60 %setup -q -n %{name}-%{version}
63 CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
67 rm -rf $RPM_BUILD_ROOT
69 %{__python} setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
71 %{__python} setup.py install --root=$RPM_BUILD_ROOT -O1
75 mkdir -p %{buildroot}/%{_prefix}/share/man/man1
76 install -m644 doc/mic.1 %{buildroot}/%{_prefix}/share/man/man1
79 %defattr(-,root,root,-)
82 %dir %{_sysconfdir}/%{name}
83 %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
85 %dir %{_prefix}/lib/%{name}
86 %{_prefix}/lib/%{name}/*