rOCCI-core packaging.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 11 Mar 2014 14:53:29 +0000 (15:53 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 11 Mar 2014 16:51:49 +0000 (17:51 +0100)
rocci-core/debian/compat [new file with mode: 0644]
rocci-core/debian/control [new file with mode: 0644]
rocci-core/debian/copyright [new file with mode: 0644]
rocci-core/debian/require-rubygems.overrides [new file with mode: 0644]
rocci-core/debian/ruby-rocci-core.docs [new file with mode: 0644]
rocci-core/debian/rules [new file with mode: 0755]
rocci-core/debian/source/format [new file with mode: 0644]
rocci-core/gen-rocci-core.sh [new file with mode: 0755]

diff --git a/rocci-core/debian/compat b/rocci-core/debian/compat
new file mode 100644 (file)
index 0000000..45a4fb7
--- /dev/null
@@ -0,0 +1 @@
+8
diff --git a/rocci-core/debian/control b/rocci-core/debian/control
new file mode 100644 (file)
index 0000000..2f01491
--- /dev/null
@@ -0,0 +1,19 @@
+Source: ruby-rocci-core
+Section: ruby
+Priority: optional
+Maintainer: František Dvořák <valtri@civ.zcu.cz>
+Standards-Version: 3.9.5
+Build-Depends:
+    debhelper (>= 8), gem2deb
+Vcs-Browser: https://github.com/EGI-FCTF/rOCCI-core
+Vcs-Git: git://github.com/EGI-FCTF/rOCCI-core.git
+XS-Ruby-Versions: all
+
+Package: ruby-rocci-core
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${misc:Depends}, ruby | ruby-interpreter
+Description: Ruby OCCI Core
+ OCCI (the Open Cloud Computing Interface) is a standard by the Open Grid Forum,
+ specifying a protocol and API to perform various remote management tasks in
+ clouds. This package provides Core of the rOCCI (Ruby OCCI) Framework.
diff --git a/rocci-core/debian/copyright b/rocci-core/debian/copyright
new file mode 100644 (file)
index 0000000..1775751
--- /dev/null
@@ -0,0 +1,25 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: rOCCI-core
+
+Files: *
+Copyright: Copyright (c) 2012 GWDG
+License: Apache 2.0
+
+License: Apache 2.0
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+ .
+      http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the full text of the Apache Software License version 2 can
+ be found in the file `/usr/share/common-licenses/Apache-2.0'.
diff --git a/rocci-core/debian/require-rubygems.overrides b/rocci-core/debian/require-rubygems.overrides
new file mode 100644 (file)
index 0000000..a0dfb16
--- /dev/null
@@ -0,0 +1 @@
+debian/ruby-rocci-core/usr/lib/ruby/vendor_ruby/occi-core.rb
diff --git a/rocci-core/debian/ruby-rocci-core.docs b/rocci-core/debian/ruby-rocci-core.docs
new file mode 100644 (file)
index 0000000..b83c332
--- /dev/null
@@ -0,0 +1,3 @@
+AUTHORS
+LICENSE
+README.md
diff --git a/rocci-core/debian/rules b/rocci-core/debian/rules
new file mode 100755 (executable)
index 0000000..5df7f46
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+%:
+       dh $@ --buildsystem=ruby --with ruby
diff --git a/rocci-core/debian/source/format b/rocci-core/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/rocci-core/gen-rocci-core.sh b/rocci-core/gen-rocci-core.sh
new file mode 100755 (executable)
index 0000000..9b31f75
--- /dev/null
@@ -0,0 +1,46 @@
+#! /bin/sh -e
+
+#
+# Use these commands to create source package:
+#
+#  rm -rf rOCCI-core
+#  ./gen-rocci-core.sh -S -nc -uc -us
+#
+
+if [ -d rOCCI-core ]; then
+       echo "WARNING: rOCCI-core directory already exists!"
+else
+       git clone https://github.com/EGI-FCTF/rOCCI-core.git
+fi
+test -n "$NO_DPKG" && exit 0
+
+cd rOCCI-core
+
+tag=${tag:-}
+uver=`grep "\<VERSION =" lib/occi/version.rb | sed "s/.*VERSION\s*=\s*[\"']\(.*\)[\"'].*/\1/" | sed "s/.\(alpha\|beta\|rc\)/~\1/"`
+dver=`date "+%Y%m%d"`
+if [ -z "$tag" ]; then
+       ver="$uver+$dver"
+else
+       ver="$uver"
+fi
+age=${age:-"1"}
+maint="František Dvořák <valtri@civ.zcu.cz>"
+p_name="ruby-rocci-core"
+
+if [ -n "$tag" ]; then
+       git checkout "$tag"
+fi
+rm -rf .git .gitignore
+tar -cf - ../rOCCI-core | gzip --best > ../${p_name}_$ver.orig.tar.gz
+
+cp -rp ../debian .
+cat <<EOF > debian/changelog
+${p_name} (${ver}-${age}) unstable; urgency=low
+
+  * Debian packaging
+
+ -- $maint  `date "+%a, %d %b %Y %H:%M:%S %z"`
+EOF
+
+dpkg-buildpackage $@