1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
#
# Do not Edit! Generated by:
# spectacle version 0.13~pre
# On 2010-02-24
#
# >> macros
# << macros
%if 0%{?suse_version}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif
Name: mic2
Summary: Tools for building images
Version: 0.19
Release: 1
Group: System/Base
License: GPLv2
URL: http://meego.gitorious.org/meego-developer-tools/image-creator
BuildArch: noarch
Source0: %{name}-%{version}.tar.gz
Source100: mic2.yaml
Requires: util-linux
Requires: coreutils
Requires: python >= 2.5
Requires: e2fsprogs
Requires: dosfstools >= 2.11-8
Requires: yum >= 3.2.22
Requires: pykickstart >= 0.96
Requires: python-iniparse
Requires: syslinux >= 3.82
Requires: curl
Requires: kpartx
Requires: parted
Requires: device-mapper
Requires: zlib
Requires: rsync
Requires: /usr/bin/mkisofs
Requires: wget
Requires: cpio
Requires: isomd5sum
Requires: gzip
Requires: bzip2
Requires: squashfs-tools >= 4.0
BuildRequires: python
BuildRequires: python-devel
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Tools for building images. http://moblin.org/projects/moblin-image-creator-2 for more details.
%prep
%setup -q -n %{name}-%{version}
# >> setup
# << setup
%build
# >> build pre
# << build pre
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%if 0%{?suse_version}
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix}
%else
%{__python} setup.py install --root=%{buildroot} -O1
%endif
# >> install post
make DESTDIR=%{buildroot} installman
make DESTDIR=%{buildroot} installconf
make DESTDIR=%{buildroot} installsymlinks
# << install post
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
# >> files
%if 0%{?suse_version}
%{python_sitearch}/*
%else
%{python_sitelib}/*
%endif
%{_bindir}/*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%doc HACKING API ChangeLog
%doc examples/
%doc tests/
%{_mandir}/man1/*.1.gz
# << files
|