# 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)
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))
--- /dev/null
+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
+