summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <nashif@linux.intel.com>2011-01-20 12:38:38 +0000
committerAnas Nashif <nashif@linux.intel.com>2011-01-20 12:38:38 +0000
commit1dfaaefb9c2a713a5ea7804dff30eef0cb2f0e8a (patch)
treead351b9db3328f7cb0026752cd682b048ce4b675
parent2d0aa04d224c34facf276b5461d9163c17dff95d (diff)
downloadkickstarter-1dfaaefb9c2a713a5ea7804dff30eef0cb2f0e8a.tar.gz
kickstarter-1dfaaefb9c2a713a5ea7804dff30eef0cb2f0e8a.tar.bz2
kickstarter-1dfaaefb9c2a713a5ea7804dff30eef0cb2f0e8a.zip
add spec, Makefile and VERSION
-rw-r--r--Makefile16
-rw-r--r--README1
-rw-r--r--VERSION1
-rw-r--r--kickstarter.spec29
4 files changed, 47 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 24b90c8..e507cac 100644
--- 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
--- 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
index 0000000..49d5957
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.1
diff --git a/kickstarter.spec b/kickstarter.spec
new file mode 100644
index 0000000..02f539e
--- /dev/null
+++ b/kickstarter.spec
@@ -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
+