packaging: roll back to original way to packaging
authorZhang Qiang <qiang.z.zhang@intel.com>
Tue, 10 Dec 2013 12:47:26 +0000 (20:47 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Tue, 10 Dec 2013 13:50:00 +0000 (21:50 +0800)
Change-Id: I8da1b77ea550f97527bdc70abf24d960846722c1

packaging/Makefile [new file with mode: 0644]
packaging/gbs.dsc [new file with mode: 0644]
packaging/gbs.spec

diff --git a/packaging/Makefile b/packaging/Makefile
new file mode 100644 (file)
index 0000000..d62a453
--- /dev/null
@@ -0,0 +1,17 @@
+PKG_NAME := gbs
+SPECFILE = $(addsuffix .spec, $(PKG_NAME))
+PKG_VERSION := $(shell grep '^Version: ' $(SPECFILE)|awk '{print $$2}')
+
+TARBALL := $(PKG_NAME)_$(PKG_VERSION).tar.gz
+
+dsc: $(TARBALL)
+       @sed  -i 's/ [a-f0-9]\+ [0-9]\+ $(TARBALL)/ $(shell md5sum $(TARBALL) | sed "s/  / $(shell stat -c '%s' $(TARBALL)) /")/' $(PKG_NAME).dsc
+
+$(TARBALL):
+       @cd .. && git archive --prefix $(PKG_NAME)-$(PKG_VERSION)/ HEAD \
+               | gzip > packaging/$(TARBALL)
+
+clean:
+       @rm -f *.tar.gz
+
+all: clean dsc
diff --git a/packaging/gbs.dsc b/packaging/gbs.dsc
new file mode 100644 (file)
index 0000000..443684a
--- /dev/null
@@ -0,0 +1,10 @@
+Format: 1.0
+Source: gbs
+Version: 0.20
+Binary: gbs, gbs-api, gbs-export, gbs-remotebuild
+Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
+Architecture: all
+Standards-Version: 3.7.1
+Build-Depends: debhelper, python-support
+Files:
+ 574996dfeeb001e70f20239a0e621daf 2457861 gbs_0.20.tar.gz
index 6c2fbbd..cb5291e 100644 (file)
@@ -3,11 +3,7 @@
 Name:       gbs
 Summary:    The command line tools for Tizen package developers
 Version:    0.20
-%if 0%{?opensuse_bs}
 Release:    0.rc1.<CI_CNT>.<B_CNT>
-%else
-Release:    1
-%endif
 Group:      Development/Tools
 License:    GPLv2
 BuildArch:  noarch