add spec, Makefile and VERSION
authorAnas Nashif <nashif@linux.intel.com>
Thu, 20 Jan 2011 12:38:38 +0000 (12:38 +0000)
committerAnas Nashif <nashif@linux.intel.com>
Thu, 20 Jan 2011 12:38:38 +0000 (12:38 +0000)
Makefile
README
VERSION [new file with mode: 0644]
kickstarter.spec [new file with mode: 0644]

index 24b90c8..e507cac 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,7 @@
 # ex: set tabstop=4 noexpandtab: 
+VERSION = $(shell cat VERSION)
+NAME=kickstarter
+TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
 PYTHON=python
 CHEETAH=cheetah
 TEMPLATES=$(wildcard *.tmpl)
@@ -15,6 +18,19 @@ all: $(TEMPLATE_MODS)
 ks: $(TEMPLATES) configurations.yaml repos.yaml
        python kickstarter.py -c configurations.yaml -r repos.yaml
 
+tag:
+       git tag $(VERSION)
+
+dist-bz2:
+       git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
+               bzip2  > $(NAME)-$(VERSION).tar.bz2
+
+dist-gz:
+       git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
+               gzip  > $(NAME)-$(VERSION).tar.gz
+
+dist: dist-bz2
+
 clean:
        rm -f $(TEMPLATE_MODS)
        rm -f $(addsuffix .bak,$(TEMPLATE_MODS))
diff --git a/README b/README
index 10ebc2b..e3b958f 100644 (file)
--- a/README
+++ b/README
@@ -6,6 +6,7 @@ python kickstarter.py -c <images.yaml> -r <repos.yaml>
 
 Example:
  python kickstarter.py  --configs configurations.yaml --repos repos.yaml 
+ or run 'make ks'
 
 Repo file:
 This file contains a list of repositories to be used in the kickstart files
diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..49d5957
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.1
diff --git a/kickstarter.spec b/kickstarter.spec
new file mode 100644 (file)
index 0000000..02f539e
--- /dev/null
@@ -0,0 +1,29 @@
+Summary:       Create kickstart files for meego images
+Name:          kickstarter
+Version:       0.1
+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
+
+%description
+Create Configuration files to build meego images
+
+%prep
+%setup -q
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc GPL 
+