aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrisztian Litkey <krisztian.litkey@nokia.com>2010-06-29 14:03:33 +0300
committerKrisztian Litkey <krisztian.litkey@nokia.com>2010-06-29 14:03:33 +0300
commita013243abaad2e8dc935ed41d16f0f94be4a1753 (patch)
tree5fdc96b686f011150d4a68b189871d749fdef959
parentb709446097e5bd6b3f96840c9e4475bb4be55b3b (diff)
Added primitive RPM packaging for meego.
-rw-r--r--meego/Makefile (renamed from fedora/Makefile)15
-rw-r--r--meego/libresource.spec.in (renamed from fedora/libresource.spec.in)5
2 files changed, 12 insertions, 8 deletions
diff --git a/fedora/Makefile b/meego/Makefile
index bb4a892..44d3a38 100644
--- a/fedora/Makefile
+++ b/meego/Makefile
@@ -1,13 +1,14 @@
PACKAGE := libresource
VERSION := 0.1
+THISDIR := meego
-TOPDIR := $(shell while [ ! -d fedora -a "`pwd`" != "/" ]; do cd ..; done; \
- [ -d fedora ] && pwd || exit 1)
+TOPDIR := $(shell while [ ! -d $(THISDIR) -a "`pwd`" != "/" ]; do cd ..; done;\
+ [ -d $(THISDIR) ] && pwd || exit 1)
ARCH := i386
RPM := $(PACKAGE)-$(VERSION).$(ARCH).rpm
-SPECFILE := $(TOPDIR)/fedora/$(PACKAGE).spec
-TARBALL := $(TOPDIR)/fedora/$(PACKAGE)-$(VERSION).tar.gz
+SPECFILE := $(TOPDIR)/$(THISDIR)/$(PACKAGE).spec
+TARBALL := $(TOPDIR)/$(THISDIR)/$(PACKAGE)-$(VERSION).tar.gz
TARDIR := $(notdir $(TOPDIR))
STAMP := $(shell date +%Y-%m-%d-%H%M%S)
@@ -23,7 +24,7 @@ rpms: rmtar $(SPECFILE) $(TARBALL)
cp $(TARBALL) $(TMPDIR)/SOURCES && \
rpmbuild --define '_topdir $(TMPDIR)' \
-bb $(TMPDIR)/SPECS/$(PACKAGE).spec && \
- cp $(TMPDIR)/RPMS/$(ARCH)/*.rpm $(TOPDIR)/fedora
+ cp $(TMPDIR)/RPMS/$(ARCH)/*.rpm $(TOPDIR)/$(THISDIR)
cleanup:
rm -fr $(TMPDIR) && \
@@ -41,8 +42,10 @@ $(TARBALL):
pushd $(TOPDIR) && make distclean || : && ./autogen.sh && popd && \
pushd $(TOPDIR)/.. && \
tar -cvzf /tmp/$(notdir $@) \
- --exclude '.*/fedora/.*.tar.gz' $(notdir $(TARDIR)) && \
+ --exclude '.*/$(THISDIR)/.*.tar.gz' $(notdir $(TARDIR)) && \
mv /tmp/$(notdir $@) $@
+meego-export: $(SPECFILE) $(TARBALL)
+
rmtar:
rm -f $(TARBALL)
diff --git a/fedora/libresource.spec.in b/meego/libresource.spec.in
index 5db22db..bceac92 100644
--- a/fedora/libresource.spec.in
+++ b/meego/libresource.spec.in
@@ -62,5 +62,6 @@ make
%{_bindir}/resource-client
%changelog
-* Wed Apr 24 2008 Krisztian Litkey <krisztian.litkey@nokia.com> -
-- Initial build.
+* Tue Jun 29 2010 Krisztian Litkey <mmf-audio-bounces@projects.maemo.org> -
+- Quick'n dirty initial packaging.
+