From: František Dvořák Date: Tue, 11 Mar 2014 15:12:58 +0000 (+0100) Subject: rOCCI-api packaging. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=4c33998a4c933c2f604c2deace992d101ff687a7;p=rOCCI-packaging.git rOCCI-api packaging. --- diff --git a/rocci-api/debian/compat b/rocci-api/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/rocci-api/debian/compat @@ -0,0 +1 @@ +8 diff --git a/rocci-api/debian/control b/rocci-api/debian/control new file mode 100644 index 0000000..fa02344 --- /dev/null +++ b/rocci-api/debian/control @@ -0,0 +1,22 @@ +Source: ruby-rocci-api +Section: ruby +Priority: optional +Maintainer: FrantiÅ¡ek Dvořák +Standards-Version: 3.9.5 +Build-Depends: + debhelper (>= 8), gem2deb +Vcs-Browser: https://github.com/EGI-FCTF/rOCCI-api +Vcs-Git: git://github.com/EGI-FCTF/rOCCI-api.git +XS-Ruby-Versions: all + +Package: ruby-rocci-api +Architecture: all +XB-Ruby-Versions: ${ruby:Versions} +Depends: + ${misc:Depends}, ruby | ruby-interpreter, + ruby-rocci-core (>= 4.2.10), ruby-rocci-core (<< 4.3), + ruby-httparty, ruby-json +Description: Ruby OCCI API + 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 API for the rOCCI (Ruby OCCI) Framework. diff --git a/rocci-api/debian/copyright b/rocci-api/debian/copyright new file mode 100644 index 0000000..9bcd638 --- /dev/null +++ b/rocci-api/debian/copyright @@ -0,0 +1,25 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: rOCCI-api + +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-api/debian/require-rubygems.overrides b/rocci-api/debian/require-rubygems.overrides new file mode 100644 index 0000000..b997a40 --- /dev/null +++ b/rocci-api/debian/require-rubygems.overrides @@ -0,0 +1 @@ +debian/ruby-rocci-api/usr/lib/ruby/vendor_ruby/occi-api.rb diff --git a/rocci-api/debian/rules b/rocci-api/debian/rules new file mode 100755 index 0000000..5df7f46 --- /dev/null +++ b/rocci-api/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f +#export DH_VERBOSE=1 + +%: + dh $@ --buildsystem=ruby --with ruby diff --git a/rocci-api/debian/source/format b/rocci-api/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/rocci-api/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/rocci-api/gen-rocci-api.sh b/rocci-api/gen-rocci-api.sh new file mode 100755 index 0000000..bd8645b --- /dev/null +++ b/rocci-api/gen-rocci-api.sh @@ -0,0 +1,46 @@ +#! /bin/sh -e + +# +# Use these commands to create source package: +# +# rm -rf rOCCI-api +# ./gen-rocci-api.sh -S -nc -uc -us +# + +if [ -d rOCCI-api ]; then + echo "WARNING: rOCCI-api directory already exists!" +else + git clone https://github.com/EGI-FCTF/rOCCI-api.git +fi +test -n "$NO_DPKG" && exit 0 + +cd rOCCI-api + +tag=${tag:-} +uver=`grep "\ ../${p_name}_$ver.orig.tar.gz + +cp -rp ../debian . +cat < debian/changelog +${p_name} (${ver}-${age}) unstable; urgency=low + + * Debian packaging + + -- $maint `date "+%a, %d %b %Y %H:%M:%S %z"` +EOF + +dpkg-buildpackage $@