From 1dfaaefb9c2a713a5ea7804dff30eef0cb2f0e8a Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 20 Jan 2011 12:38:38 +0000 Subject: [PATCH] add spec, Makefile and VERSION --- Makefile | 16 ++++++++++++++++ README | 1 + VERSION | 1 + kickstarter.spec | 29 +++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 VERSION create mode 100644 kickstarter.spec 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 -r 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 + -- 2.7.4