Modified archive generation for real
[meego-developer-tools:image-creator.git] / spec / mic2.spec
1
2 Summary: Tools for building images for Moblin2
3 Name: mic2
4 Version: 0.4
5 Release: 1
6 License: GPLv2
7 Group: System Environment/Base
8 Source0: %{name}-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
10 Packager: Jian-feng Ding <jian-feng.ding@intel.com>
11 Url: http://www.moblin.org/
12 Requires: util-linux
13 Requires: coreutils
14 Requires: python >= 2.5
15 Requires: e2fsprogs
16 Requires: dosfstools >= 2.11-8
17 Requires: yum > 3.0
18 %if %{_vendor} == "redhat" || %{_vendor} == "moblin"
19 Requires: pykickstart >= 0.96
20 %endif
21 %ifarch %{ix86} x86_64
22 Requires: syslinux
23 %endif
24 Requires: curl
25 Requires: kpartx
26 Requires: zlib
27 Requires: rsync
28 Requires: /usr/bin/mkisofs
29 BuildRequires: python
30 BuildRequires: python-devel
31 BuildRequires: zlib-devel
32
33 %description 
34 Tools for generating moblin2 live images.
35 http://www.moblin.org/ for more details.
36
37 %prep
38 %setup -n %{name}-%{version}
39
40 %build
41 %{__python} setup.py build
42 %{__make} extra/squashfs-tools/mksquashfs.moblin
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 %if %{_vendor} == "suse"
47 # suse system
48 %{__python} setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix} --record-rpm=INSTALLED_FILES
49 %else
50 # fedora or moblin system
51 %{__python} setup.py install --root=$RPM_BUILD_ROOT -O1 --record=INSTALLED_FILES
52 %endif
53 %{__install} -m 755 extra/squashfs-tools/mksquashfs.moblin $RPM_BUILD_ROOT/%{_bindir}/
54 %{__install} -m 755 extra/syslinux/isohybrid.moblin $RPM_BUILD_ROOT/%{_bindir}/
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files -f INSTALLED_FILES
60 %defattr(-,root,root,-)
61 %doc HACKING API
62 %doc examples/
63 %doc tests/
64 %{_bindir}/mksquashfs.moblin
65 %{_bindir}/isohybrid.moblin
66