diff options
author | JF Ding <jian-feng.ding@intel.com> | 2012-08-23 09:39:46 +0800 |
---|---|---|
committer | JF Ding <jian-feng.ding@intel.com> | 2012-08-23 09:39:46 +0800 |
commit | 9a8d6f56ffdf6b890ea09c975229b0ffdd87d391 (patch) | |
tree | 075423a23c5d5b53fd0e56c0eb9d7b1f09b99616 | |
parent | 384cb417f77dc49f00d3b3f48bf9040cc66d9726 (diff) | |
download | kickstarter-9a8d6f56ffdf6b890ea09c975229b0ffdd87d391.tar.gz kickstarter-9a8d6f56ffdf6b890ea09c975229b0ffdd87d391.tar.bz2 kickstarter-9a8d6f56ffdf6b890ea09c975229b0ffdd87d391.zip |
added workable spec and manifest filesubmit/trunk/20120921.233347
-rw-r--r-- | packaging/kickstarter.manifest | 5 | ||||
-rw-r--r-- | packaging/kickstarter.spec | 45 |
2 files changed, 34 insertions, 16 deletions
diff --git a/packaging/kickstarter.manifest b/packaging/kickstarter.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/kickstarter.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/kickstarter.spec b/packaging/kickstarter.spec index 3e6cefc..765501f 100644 --- a/packaging/kickstarter.spec +++ b/packaging/kickstarter.spec @@ -1,34 +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 -Name: kickstarter -Version: 0.15 -Release: 1 -License: GPLv2 -Group: System/Base -URL: http://www.meego.com -Source: %{name}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -BuildArch: noarch -Requires: PyYAML -Requires: python-urlgrabber +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 +%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 -%clean -rm -rf $RPM_BUILD_ROOT %files +%manifest kickstarter.manifest %defattr(-,root,root,-) -%doc GPL - +%{_bindir}/* +%{python_sitelib}/* |