summaryrefslogtreecommitdiff
path: root/packaging/kickstarter.spec
blob: edb772812ce5c925b8ef9eb82bfc89815f990382 (plain)
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
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name:       kickstarter
Summary:    Create kickstart files for meego images
Version:    0.15
Release:    1
Group:      System/Base
License:    GPLv2
BuildArch:  noarch
URL:        http://www.meego.com
Source0:    %{name}-%{version}.tar.bz2
Requires:   python-yaml
#Requires:   python-urlgrabber
Requires:   python-cheetah
Requires:   python-lxml
BuildRequires:  python-devel
BuildRequires:  python-cheetah


%description
Create Configuration files to build meego images



%prep
%setup -q -n %{name}-%{version}


%build
make tmpls

CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build

%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 --prefix=%{_prefix}
%endif







%files
%defattr(-,root,root,-)
%{_bindir}/*
%{python_sitelib}/*