diff options
author | Tom Gall <tom.gall@linaro.org> | 2011-01-12 17:33:43 -0600 |
---|---|---|
committer | Tom Gall <tom.gall@linaro.org> | 2011-01-12 17:33:43 -0600 |
commit | fcec63ad5248d2ce0c0b4ab6d079df02734245df (patch) | |
tree | a3f7607dbc4423a02fd5d65c229e5da09144c4e0 | |
parent | 1c1b8abed436a296eda4c9cb23412384a5da654f (diff) |
initial debianization of package
-rw-r--r-- | debian/changelog | 12 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 14 | ||||
-rw-r--r-- | debian/copyright | 12 | ||||
-rw-r--r-- | debian/patches/001-fixcompile.patch | 13 | ||||
-rw-r--r-- | debian/patches/debian-changes-0.21.0-git.20101126t140946.1c1b8ab-0linaro2 | 41 | ||||
-rw-r--r-- | debian/patches/series | 2 | ||||
-rwxr-xr-x | debian/rules | 89 | ||||
-rw-r--r-- | debian/source/format | 1 |
9 files changed, 185 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..401250c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,12 @@ +libresource (0.21.0-git.20101126t140946.1c1b8ab-0linaro4) natty; urgency=low + + * Fix build, add dbus-1.0 include to path + * fix debian/copyright file + + -- Tom Gall <tom.gall@linaro.org> Tue, 11 Jan 2011 15:52:25 -0600 + +libresource (0.21.0-git.20101126t140946.1c1b8ab-0linaro3) natty; urgency=low + + * Package for Linaro + + -- Tom Gall <tom.gall@linaro.org> Mon, 10 Jan 2011 15:09:58 -0600 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..235ff99 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: libresource +Section: misc +Priority: optional +Maintainer: Harri Mahonen <harri.mahonen@gmail.com> +Uploaders: Tom Gall <tom.gall@linaro.org> +Build-Depends: debhelper (>= 7.0.0), cdbs, libglib2.0-dev, dh-autoreconf, libdbus-1-dev, libdbus-glib-1-dev, check +Standards-Version: 3.9.1 + +Package: libresource +Architecture: any +Section: embedded +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Resource policy client library + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b063812 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,12 @@ +Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 +Name: libresource +Source: git://gitorious.org/maemo-multimedia/libresource + +Files: * +Copyright: 2010, Harri Mahonen +License: LGPL-2.1 + +Files: debian/* +Copyright: 2010 Linaro Limited +License: LGPL-2.1+ + diff --git a/debian/patches/001-fixcompile.patch b/debian/patches/001-fixcompile.patch new file mode 100644 index 0000000..a5583e4 --- /dev/null +++ b/debian/patches/001-fixcompile.patch @@ -0,0 +1,13 @@ +Index: libresource/tests/Makefile.am +=================================================================== +--- libresource.orig/tests/Makefile.am 2011-01-10 17:14:48.827529309 -0600 ++++ libresource/tests/Makefile.am 2011-01-10 17:15:33.087529322 -0600 +@@ -2,7 +2,7 @@ + + resource_test_SOURCES = resource-test.c ../src/resource.c + +-resource_test_CFLAGS = -I$(top_srcdir)/src @DBUS_CFLAGS@ ++resource_test_CFLAGS = -I$(top_srcdir)/src -I/usr/include/dbus-1.0 @DBUS_CFLAGS@ + resource_test_LDADD = -lcheck \ + @DBUS_LIBS@ + diff --git a/debian/patches/debian-changes-0.21.0-git.20101126t140946.1c1b8ab-0linaro2 b/debian/patches/debian-changes-0.21.0-git.20101126t140946.1c1b8ab-0linaro2 new file mode 100644 index 0000000..4d48f81 --- /dev/null +++ b/debian/patches/debian-changes-0.21.0-git.20101126t140946.1c1b8ab-0linaro2 @@ -0,0 +1,41 @@ +Description: Upstream changes introduced in version 0.21.0-git.20101126t140946.1c1b8ab-0linaro2 + This patch has been created by dpkg-source during the package build. + Here's the last changelog entry, hopefully it gives details on why + those changes were made: + . + libresource (0.21.0-git.20101126t140946.1c1b8ab-0linaro2) natty; urgency=low + . + * Package for Linaro + . + The person named in the Author field signed this changelog entry. +Author: Tom Gall <tom.gall@linaro.org> + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: <vendor|upstream|other>, <url of original patch> +Bug: <url in upstream bugtracker> +Bug-Debian: http://bugs.debian.org/<bugnumber> +Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> +Forwarded: <no|not-needed|url proving that it has been forwarded> +Reviewed-By: <name and email of someone who approved the patch> +Last-Update: <YYYY-MM-DD> + +--- /dev/null ++++ libresource-0.21.0-git.20101126t140946.1c1b8ab/tests/debian/patches/series +@@ -0,0 +1 @@ ++001-fixcompile.patch +--- /dev/null ++++ libresource-0.21.0-git.20101126t140946.1c1b8ab/tests/.pc/.quilt_patches +@@ -0,0 +1 @@ ++debian/patches +--- /dev/null ++++ libresource-0.21.0-git.20101126t140946.1c1b8ab/tests/.pc/.version +@@ -0,0 +1 @@ ++2 +--- /dev/null ++++ libresource-0.21.0-git.20101126t140946.1c1b8ab/tests/.pc/.quilt_series +@@ -0,0 +1 @@ ++series diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..91ef030 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +001-fixcompile.patch +debian-changes-0.21.0-git.20101126t140946.1c1b8ab-0linaro2 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a99ec39 --- /dev/null +++ b/debian/rules @@ -0,0 +1,89 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_configure: + ./autogen.sh + ./configure --prefix=/usr + +override_dh_auto_test: + echo "Don't run tests" + +override_dh_usrlocal: + echo "don't run usrlocal" + +DEB_SOURCE := $(shell dpkg-parsechangelog | grep Source: | sed -e 's/Source: //') +DEB_VERSION := $(shell dpkg-parsechangelog | grep Version: | sed -e 's/Version: //') +DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed -e 's/-[^-]*$$//') +DEB_MAJOR_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -e 's/git.*//') + +GIT_URL := git://gitorious.org/maemo-multimedia/libresource +GIT_BRANCH := "master" +GIT_BRANCH_NAME := libresource + +ifneq (,$(LOCAL_BRANCH)) +LOCAL_REAL_BRANCH = $(realpath $(LOCAL_BRANCH)) +endif + + +PACKAGENAME=libresource + +GET_SOURCE = \ + set -e; \ + tmpdir=`mktemp -d -t`; \ + cd $$tmpdir; \ + echo "cloning upstream repository ..."; \ + git clone -b $(GIT_BRANCH) $(if $(LOCAL_BRANCH),$(call LOCAL_REAL_BRANCH)/$(GIT_BRANCH_NAME),$(GIT_URL)) $(GIT_BRANCH_NAME); \ + echo "getting specific upstream revision/tag: $(1)"; \ + cd `ls | head -n 1`; git checkout -b orig $(1); \ + commit_id=`git log -n1 --abbrev-commit | grep '^commit ' | sed -e 's/commit //' | sed -e 's/\.\.\.$$//'`; \ + raw=`date --utc --date="$$(git log --pretty=fuller -n1 --date=rfc | grep CommitDate: | sed -e 's/CommitDate:[^0-9]*//')" "+%Y%m%dt%H%M%S"`; \ + if echo $(2) | grep -q -c "orig" || echo $(DEB_VERSION) | grep -q -c "git"; \ + then \ + upstream_version=$(DEB_MAJOR_VERSION)-git.$$raw.$$commit_id; \ + else \ + upstream_version=$(DEB_UPSTREAM_VERSION); \ + fi; \ + cd ..; tar --exclude=.git -czf $(CURDIR)/$(DEB_SOURCE)_$$upstream_version.orig.tar.gz `ls | head -n 1`; \ + cd $(CURDIR); rm -rf $$tmpdir; + + +get-current-source:: $(if $(LOCAL_BRANCH),update-local-branch) + set -e; if echo $(DEB_VERSION) | grep -q -c "git"; \ + then \ + git_version=`echo $(DEB_VERSION) | sed -e 's/^.*git\.*\([0-9t]*\)\.\(.*\)-.*$$/\2/g'`; \ + elif echo $(DEB_VERSION) | grep -q -c "~rc"; \ + then \ + git_version=`echo $(DEB_VERSION) | sed -e 's/^\([0-9\.]*\)\(~rc\)\([0-9]\)-.*$$/\1-rc\3/'`; \ + else \ + git_version=$(DEB_UPSTREAM_VERSION); \ + fi; \ + $(call GET_SOURCE, $$git_version, "current") + +get-orig-source:: $(if $(LOCAL_BRANCH),update-local-branch) + $(call GET_SOURCE, "HEAD", "orig") + +update-local-branch:: + @echo "updating local branch ($(LOCAL_BRANCH))" + @set -e; if ! test -d $(LOCAL_BRANCH); then mkdir -p $(LOCAL_BRANCH); fi + @set -e; if ! test -d $(LOCAL_BRANCH)/$(GIT_BRANCH_NAME); then git clone $(GIT_URL) $(LOCAL_BRANCH)/$(GIT_BRANCH_NAME); fi + @set -e; cd $(LOCAL_BRANCH)/$(GIT_BRANCH_NAME); if ! `git branch | grep -q -c "$(GIT_BRANCH)"`; then git branch $(GIT_BRANCH) remotes/origin/$(GIT_BRANCH); fi + @set -e; cd $(LOCAL_BRANCH)/$(GIT_BRANCH_NAME); git checkout $(GIT_BRANCH); git pull -f + @echo "updated local branch ($(LOCAL_BRANCH))" + +get-snapshot-info:: $(if $(LOCAL_BRANCH),update-local-branch) + @set -e; \ + git_version=`echo $(DEB_VERSION) | sed -e 's/^.*git\.*\([0-9t]*\)\.\(.*\)-.*$$/\2/g'`; \ + cd $(LOCAL_BRANCH)/$(GIT_BRANCH_NAME); \ + raw=`date --utc --date="$$(git log --pretty=fuller -n1 --date=rfc $$git_version | grep CommitDate: | sed -e 's/CommitDate:[^0-9]*//')" "+%Y-%m-%d %H:%M:%S (GMT)"`; \ + git log -n1 $$git_version --format="%n%s%n%n * upstream snapshot $$raw%n + %H%n"; diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) |