--- /dev/null
+depanneur (0.1) unstable; urgency=high
+
+ * first version of depanneur, including the following features:
+ * dependency build wit correct dependendcy order
+ * parallel build with customized threads pool
+ * full build to specify a top dir of all packages tree
+ * support generate local repo once build finished
+
+ -- Qiang Zhang <qiang.z.zhang@intel.com> Tue, 11 Sep 2012 10:56:15 +0800
--- /dev/null
+Source: depanneur
+Section: devel
+Priority: extra
+Maintainer: Qiang Zhang <qiang.z.zhang@intel.com>
+Build-Depends: debhelper (>= 7.0.15), perl (>> 5.8.1)
+Standards-Version: 3.8.0
+Homepage: http://www.tizen.org
+
+Package: depanneur
+Architecture: all
+Depends: ${perl:Depends},
+ build (>= 2012.08.10-1),
+ libyaml-perl,
+ createrepo (>= 0.9.8)
+Description: Manages and executes the builds using the obs-build script.
+ The depanneur tool goes through local Git trees and evaluates packaging
+ meta-data to determine packages needed and the build order; it then starts
+ the build process and populates a local repository with the generated
+ binaries; the generated binaries are then used to build the remaining
+ packages in the queue.
+ This tool can build one package or multiple packages at a time, making it
+ possible to build hundreds of packages on a single computer with enough
+ power in a matter of hours. Depanneur supports two build modes: traditional
+ build mode and incremental build mode.
--- /dev/null
+Upstream Authors:
+
+ Intel Inc.
+
+Copyright:
+
+ Copyright (C) 2012 Intel Inc.
--- /dev/null
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ # Installing package
+ mkdir -p $(CURDIR)/debian/depanneur $(CURDIR)/debian/depanneur/usr/bin
+ make install DESTDIR=$(CURDIR)/debian/depanneur
+
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_install
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- /dev/null
+PKG_NAME := depanneur
+SPECFILE = $(addsuffix .spec, $(PKG_NAME))
+PKG_VERSION := $(shell grep '^Version: ' $(SPECFILE)|awk '{print $$2}')
+
+TARBALL := $(PKG_NAME)_$(PKG_VERSION).tar.gz
+
+dsc: tarball
+ $(eval MD5=$(shell md5sum $(TARBALL) | sed "s/ / $(shell stat -c '%s' $(TARBALL)) /"))
+ @sed -i 's/^Version:.*/Version: $(PKG_VERSION)/' $(PKG_NAME).dsc
+ @sed -i 's/ [a-f0-9]\+ [0-9]\+ $(PKG_NAME).*tar.*/ $(MD5)/' $(PKG_NAME).dsc
+
+tarball:
+ @cd .. && git archive --prefix $(PKG_NAME)-$(PKG_VERSION)/ HEAD \
+ | gzip > packaging/$(TARBALL)
+
+clean:
+ @rm -f $(PKG_NAME)*tar*
+
+all: tarball dsc
--- /dev/null
+Format: 1.0
+Source: depanneur
+Version: 0.1
+Binary: depanneur
+Maintainer: Zhang Qiang <qiang.z.zhang@intel.com>
+Architecture: all
+Standards-Version: 3.7.1
+Build-Depends: debhelper (>= 7.0.15), perl (>> 5.8.1)
+Files:
+ 3afd61d945eee477dfa656227c7c43a7 11354 depanneur_0.1.tar.gz
--- /dev/null
+Name: depanneur
+Summary: Manages and executes the builds using the obs-build script.
+Version: 0.1
+Release: 1
+License: GPL-2.0+
+Group: Development/Tools
+Source0: %{name}_%{version}.tar.gz
+
+Requires: createrepo >= 0.9.8
+Requires: perl(YAML)
+Requires: build >= 2012.08.10
+Autoreq: 0
+%description
+The depanneur tool goes through local Git trees and evaluates packaging
+meta-data to determine packages needed and the build order; it then starts
+the build process and populates a local repository with the generated
+binaries; the generated binaries are then used to build the remaining
+packages in the queue.
+
+The tool can build one package or multiple packages at a time, making it
+possible to build hundreds of packages on a single computer with enough
+power in a matter of hours. Depanneur supports two build modes: traditional
+build mode and incremental build mode.
+
+%prep
+%setup -q
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/depanneur