summaryrefslogtreecommitdiff
path: root/packaging/kickstarter.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/kickstarter.spec')
-rw-r--r--packaging/kickstarter.spec47
1 files changed, 47 insertions, 0 deletions
diff --git a/packaging/kickstarter.spec b/packaging/kickstarter.spec
new file mode 100644
index 0000000..765501f
--- /dev/null
+++ b/packaging/kickstarter.spec
@@ -0,0 +1,47 @@
+%{!?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 image creation
+Version: 0.15
+Release: 1
+Group: System/Base
+License: GPLv2
+BuildArch: noarch
+URL: http://www.tizen.org
+Source0: %{name}-%{version}.tar.bz2
+Source1001: packaging/kickstarter.manifest
+Requires: python-yaml
+Requires: python-cheetah
+Requires: python-lxml
+BuildRequires: python-devel
+BuildRequires: python-cheetah
+
+
+%description
+Create Configuration files(kickstart) to build images
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+
+%build
+cp %{SOURCE1001} .
+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
+%manifest kickstarter.manifest
+%defattr(-,root,root,-)
+%{_bindir}/*
+%{python_sitelib}/*