[openrtm-commit:02573] r956 - in branches/RELENG_1_2/OpenRTM-aist-Java: . packages packages/deb packages/deb/debian packages/rpm

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 4月 13日 (木) 15:13:31 JST


Author: kawauchi
Date: 2017-04-13 15:13:30 +0900 (Thu, 13 Apr 2017)
New Revision: 956

Added:
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/README.Debian
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/changelog
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/compat
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/control
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/control.not-multiarch
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/copyright
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/docs
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/rules
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/rules.not-multiarch
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/dpkg_build.sh
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/rpm/
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/rpm/openrtm-aist.spec.in
   branches/RELENG_1_2/OpenRTM-aist-Java/packages/rpm/rpm_build.sh
Log:
[compat,installer,->RELENG_1_2] debian and rpm package scripts and control files have been added. refs #3827

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/README.Debian
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/README.Debian	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/README.Debian	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1,28 @@
+openrtm-aist-java for Debian
+-----------------------
+Debian package of OpenRTM-aist-Java
+
+OpenRTM-aist-Java supports Debian and Ubuntu distribution.
+
+OpenRTM-aist-JavaS official deb packages might be provided for the newest
+and former major releases of Debian under the following URL.  For the
+Ubuntu distribution, deb packages might be provided for desktop
+versions of officially supported Ubuntu.
+
+- Debian package repository
+http://www.openrtm.org/pub/Linux/debian/
+
+- Ubuntu package repository
+http://www.openrtm.org/pub/Linux/ubuntu/
+
+The easyest way to install OpenRTM-aist-Java to your Debian/Ubuntu systems
+is to download installation shell script from the following URL.
+
+- Ubuntu installation script: pkg_install100_ubuntu.sh
+- Debian installation script: pkg_install100_debian.sh
+http://openrtm.org/svnroot/OpenRTM-aist/trunk/OpenRTM-aist/build/
+
+For more details about OpenRTM-aist please visit the official site.
+http://www.openrtm.org
+
+ -- Noriaki Ando <n-ando at aist.go.jp>  Mon, 12 Dec 2016 18:36:29 +0900


Property changes on: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/README.Debian
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/changelog
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/changelog	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/changelog	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1,8 @@
+openrtm-aist-java (1.2.0-0) experimental; urgency=low
+
+  * 1.2.0-0 (1.2.0-RELEASE). OpenRTM-aist-1.2.0-RELEASE
+
+ -- Noriaki Ando <n-ando at aist.go.jp>  Mon, 12 Dec 2016 18:36:29 +0900
+
+
+


Property changes on: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/changelog
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/compat
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/compat	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/compat	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1 @@
+9

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/control
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/control	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/control	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1,33 @@
+Source: openrtm-aist-java
+Section: science
+Priority: extra
+Maintainer: Noriaki Ando <n-ando at aist.go.jp>
+Build-Depends: debhelper
+Standards-Version: 3.8.4
+Homepage: http://openrtm.org
+
+Package: openrtm-aist-java
+Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, default-jdk|openjdk-7-jdk|openjdk-8-jdk, openrtm-aist-dev
+Description: OpenRTM-aist is a reference implementation of RT-Middleware
+ and RT-Component framework. RT-Component (RTC) is a component model
+ standardized in OMG (Object Management Group) as Robotic Technology
+ Component Specification 1.0 (formal/08-04-04,
+ http://www.omg.org/spec/RTC/1.0). OpenRTM-aist-Java is being developed and
+ distributed by Intelligent Systems Research Institute, National
+ Institute of Advanced Industrial Science and Technology (AIST), Japan.
+ Please see http://openrtm.org/ for more details.
+
+Package: openrtm-aist-java-example
+Architecture: any
+Multi-Arch: same
+Depends: openrtm-aist
+Description: OpenRTM-aist-Java examples
+ Example components and sources
+
+Package: openrtm-aist-java-doc
+Architecture: all
+Description: Documentation for openrtm-aist-java
+ Developer documentation.


Property changes on: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/control
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/control.not-multiarch
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/control.not-multiarch	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/control.not-multiarch	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1,17 @@
+Source: openrtp
+Section: science
+Priority: extra
+Maintainer: Noriaki Ando <n-ando at aist.go.jp>
+Build-Depends: debhelper
+Standards-Version: 3.8.4
+Homepage: http://www.openrtm.org
+
+Package: openrtp
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, default-jre, openrtm-aist-dev
+Description: OpenRTP, Open RT Platform distributed by AIST
+ OpenRTP is tool package for OpenRTM-aist and its interoperable
+ RT-Middleware implementations. OpenRTP is being developed and
+ distributed by Intelligent Systems Research Institute, National
+ Institute of Advanced Industrial Science and Technology (AIST), Japan.
+ Please see http://www.openrtm.org/ for more detail.


Property changes on: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/control.not-multiarch
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/copyright
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/copyright	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/copyright	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1,35 @@
+This package was debianized by Noriaki Ando <n-ando at aist.go.jp> on
+Mon, 12 Dec 2016 18:36:29 +0900
+
+It was downloaded from http://www.openrtm.org
+
+Upstream Author(s): 
+
+    Noriaki Ando <n-ando at aist.go.jp>
+
+Copyright: 
+
+    Copyright (C) 2003-2015
+    Noriaki Ando and the OpenRTM-aist Project team
+    Intelligent Systems Research Institute,
+    National Institute of Advanced Industrial Science and Technology (AIST),
+    Tsukuba, Japan, All rights reserved.
+
+License:
+
+    The OpenRTM-aist-Java is the dual-licensed open source software. You can
+    use, copy, distribute and/or modify this library under the terms and
+    conditions of either of the licenses below.
+    
+    1) LGPL (GNU Lesser General Public License - v 2.1)
+    See COPYING.LIB.
+    
+    2) Individual Licnese
+    You can purchase license from AIST and/or AIST's TLO to copy,
+    distribute, modify and/or sublicense the library without any
+    limitation in the terms of LGPL. The individual license should be
+    concluded with a negotiated agreement between you and AIST and/or AIST
+    TLO. To conclude individual license, contact the person responsible of
+    AIST.
+
+


Property changes on: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/copyright
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/docs
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/docs	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/docs	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1 @@
+README


Property changes on: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/docs
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/rules
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/rules	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/rules	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1,132 @@
+#!/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.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+# Multiarch support
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+# short version number
+SHORT_VER := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | cut -b 1-3)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+#config.status: configure
+#	dh_testdir
+
+#Architecture 
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+
+#build-arch-stamp:  config.status
+build-arch-stamp:
+
+	# Add here commands to compile the arch part of the package.
+	#$(MAKE) 
+	touch $@
+
+build-indep: build-indep-stamp
+#build-indep-stamp:  config.status
+build-indep-stamp:
+
+	# Add here commands to compile the indep part of the package.
+	#$(MAKE) doc
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
+
+	# Add here commands to clean up after the build process.
+	# -$(MAKE) distclean
+	#rm -f config.sub config.guess
+
+	dh_clean 
+
+install: install-indep install-arch
+install-indep:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -i 
+	dh_installdirs -i
+
+	# for openrtm-aist-java-doc package
+	(cd $(CURDIR) ; mkdir -p $(CURDIR)/debian/openrtm-aist-java-doc/usr/share/openrtm-$(SHORT_VER)/doc/java)
+	(cd $(CURDIR) ; cp -R JavaDoc $(CURDIR)/debian/openrtm-aist-java-doc/usr/share/openrtm-$(SHORT_VER)/doc/java)
+	(cd $(CURDIR) ; cp -R JavaDocEn $(CURDIR)/debian/openrtm-aist-java-doc/usr/share/openrtm-$(SHORT_VER)/doc/java)
+	
+	dh_install -i
+
+install-arch:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -s 
+	dh_installdirs -s
+
+	# for openrtm-aist-java package
+	(cd $(CURDIR) ; mkdir -p $(CURDIR)/debian/openrtm-aist-java/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-$(SHORT_VER))
+	(cd $(CURDIR) ; cp -R jar $(CURDIR)/debian/openrtm-aist-java/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-$(SHORT_VER))
+	
+	# for openrtm-aist-java-example package
+	(cd $(CURDIR) ; mkdir -p $(CURDIR)/debian/openrtm-aist-java-example/usr/share/openrtm-$(SHORT_VER)/components/java)
+	(cd $(CURDIR) ; cp -R examples/* $(CURDIR)/debian/openrtm-aist-java-example/usr/share/openrtm-$(SHORT_VER)/components/java)
+	(rm -f $(CURDIR)/debian/openrtm-aist-java-example/usr/share/openrtm-$(SHORT_VER)/components/java/*.bat)
+
+	dh_install -s
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+	dh_testdir
+	dh_testroot
+#	dh_installchangelogs ChangeLog
+#	dh_installdocs
+#	dh_installexamples
+#	dh_installman
+	dh_link
+	dh_strip
+	dh_compress 
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+	$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch 
+


Property changes on: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/rules.not-multiarch
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/rules.not-multiarch	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/rules.not-multiarch	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1,123 @@
+#!/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.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+# Multiarch support
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+#config.status: configure
+#	dh_testdir
+
+#Architecture 
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+
+#build-arch-stamp:  config.status
+build-arch-stamp:
+
+	# Add here commands to compile the arch part of the package.
+	#$(MAKE) 
+	touch $@
+
+build-indep: build-indep-stamp
+#build-indep-stamp:  config.status
+build-indep-stamp:
+
+	# Add here commands to compile the indep part of the package.
+	#$(MAKE) doc
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
+
+	# Add here commands to clean up after the build process.
+	# -$(MAKE) distclean
+	#rm -f config.sub config.guess
+
+	dh_clean 
+
+install: install-indep install-arch
+install-indep:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -i 
+	dh_installdirs -i
+	# do nothing
+	dh_install -i
+
+install-arch:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -s 
+	dh_installdirs -s
+
+	# for openrtp package
+	(cd $(CURDIR) ; mkdir -p $(CURDIR)/debian/openrtp/usr/lib/openrtm-1.1/openrtp)
+	(cd $(CURDIR) ; cp -R [a-c]* $(CURDIR)/debian/openrtp/usr/lib/openrtm-1.1/openrtp)
+	(cd $(CURDIR) ; cp -R [e-z]* $(CURDIR)/debian/openrtp/usr/lib/openrtm-1.1/openrtp)
+	(cd $(CURDIR) ; cp -R dropins $(CURDIR)/debian/openrtp/usr/lib/openrtm-1.1/openrtp)
+	(cd $(CURDIR) ; rm -rf $(CURDIR)/debian/openrtp/usr/lib/openrtm-1.1/openrtp/packages)
+	(cd $(CURDIR) ; cp openrtp $(CURDIR)/debian/openrtp/usr/bin/ ; chmod 755 $(CURDIR)/debian/openrtp/usr/bin/openrtp)
+
+	dh_install -s
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+	dh_testdir
+	dh_testroot
+#	dh_installchangelogs ChangeLog
+#	dh_installdocs
+#	dh_installexamples
+#	dh_installman
+	dh_link
+	dh_strip
+	dh_compress 
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+	$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch 
+


Property changes on: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/debian/rules.not-multiarch
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/dpkg_build.sh
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/dpkg_build.sh	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/dpkg_build.sh	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1,164 @@
+#!/bin/sh 
+#
+# Debian package build script
+#
+# the following files are constant
+# - README.Debian
+# - changelog
+# - compat
+# - control
+# - copyright
+# - dirs
+# - docs
+# - rules         
+#
+# the following files shoud be generated at make-dist
+# - files
+#
+# Package build process
+#
+# 1. edit "changelog" file with appropriate package version number
+#    like "1.1.0-2." This version number will be used for actual 
+#    deb package files.
+#
+# 2. Check permissions of the parent directory of distribution sourcecode
+#    extracted directory. (ex. parent of OpenRTM-aist-1.0.0)
+#    Package build script create deb packages there.
+#
+# 3. Run package build script debpkg_build.sh
+#    This script do everithings.
+#
+
+export PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin
+export LANG=C
+export LC_ALL=C
+
+# system information
+os=`uname -s`
+release=`uname -r`-`uname -p`
+
+dist_name=""
+dist_key=""
+
+# not support multiarch
+not_multiarch_cnmaes="lucid marveric squeeze natty oneiric"
+
+#---------------------------------------
+# Debianコードネーム取得
+#---------------------------------------
+check_codename ()
+{
+    cnames="sarge etch lenny squeeze wheezy"
+    for c in $cnames; do
+	if test -f "/etc/apt/sources.list"; then
+	    res=`grep $c /etc/apt/sources.list`
+	else
+	    echo "This distribution may not be debian/ubuntu."
+	    exit
+	fi
+	if test ! "x$res" = "x" ; then
+	    DISTRIB_CODENAME=$c
+	fi
+    done
+}
+
+# Check the lsb distribution name
+if test -f /etc/lsb-release ; then
+    . /etc/lsb-release
+    if test "x$DISTRIB_DESCRIPTION" != "x" ; then
+	dist_name=$DISTRIB_DESCRIPTION-`uname -m`
+	dist_key=$DISTRIB_ID
+    fi
+fi
+# Check the Fedora version
+if test "x$dist_name" = "x" && test -f /etc/fedora-release ; then
+    dist_name=`cat /etc/fedora-release`-`uname -m`
+    dist_key=`sed -e 's/.[^0-9]*\([0-9]\).*/fc\1/' /etc/fedora-release`
+fi
+# Check the Debian version
+if test "x$dist_name" = "x" && test -f /etc/debian_version ; then
+    dist_name="Debian"`cat /etc/debian_version`-`uname -m`
+    dist_key="Debian"
+    check_codename
+fi
+# Check the Vine version
+if test "x$dist_name" = "x" && test -f /etc/vine-release ; then
+    dist_name=`cat /etc/vine-release`-`uname -m`
+    dist_key=`sed -e 's/.*\([0-9]\)\.\([0-9]\).*/vl\1\2/' /etc/vine-release`
+fi
+# Check the TuboLinux version
+if test "x$dist_name" = "x" && test -f /etc/turbolinux-release ; then
+    dist_name=`cat /etc/tubolinux-release`-`uname -m`
+    dist_key=""
+fi
+
+if test "x$dist_name" = "x" ; then
+    dist_name=$os$release
+fi
+# Check the RedHat/Fedora version
+if test "x$dist_name" = "x" && test -f /etc/redhat-release ; then
+    dist_name=`cat /etc/redhat-release`-`uname -m`
+fi
+
+# only fedora and vine
+if test ! "x$dist_key" = "xDebian" -a ! "x$dist_key" = "xUbuntu" ; then
+    echo $dist_key
+    echo "This is not debian/ubuntu"
+    exit 0
+fi
+
+#------------------------------------------------------------
+# create "files" file
+#------------------------------------------------------------
+#if test ! -f "files" ; then
+#    PKGVER=`head -n 1 changelog | sed 's/.*(\([0-9\.\-]*\).*/\1/'`
+#    echo "openrtm-aist_"${PKGVER}"_amd64.deb main extra" > files
+#    echo "openrtm-aist-dev_"${PKGVER}"_amd64.deb main extra" >> files
+#    echo "openrtm-aist-example_"${PKGVER}"_amd64.deb main extra" >> files
+#    echo "openrtm-aist-doc_"${PKGVER}"_all.deb main extra" >> files
+#fi
+
+#------------------------------------------------------------
+# package build process
+#------------------------------------------------------------
+packagedir=`pwd`/../../
+rm -f $packagedir/packages/openrtm-aist-java*
+
+cp -r debian $packagedir
+
+# check multiarch support
+multiarch_flg="OFF"
+if test "x$dist_key" = "xDebian" || test "x$dist_key" = "xUbuntu" ; then
+    for c in $not_multiarch_cnmaes; do
+        if test $DISTRIB_CODENAME = $c ; then
+            mv $packagedir/debian/compat /tmp/compat.$$
+            echo 7 >  $packagedir/debian/compat
+            mv $packagedir/debian/rules /tmp/rules.$$
+            cp $packagedir/debian/rules.not-multiarch $packagedir/debian/rules
+            DEB_HOST_ARCH=`dpkg-architecture -qDEB_HOST_ARCH`
+            if test "x$DEB_HOST_ARCH" = "xamd64" ; then
+                sed -i -s 's/lib-arch/lib64/' $packagedir/debian/rules
+            else
+                sed -i -s 's/lib-arch/lib/' $packagedir/debian/rules
+            fi
+            mv $packagedir/debian/control /tmp/control.$$
+            cp $packagedir/debian/control.not-multiarch $packagedir/debian/control
+            multiarch_flg="ON"
+            echo "... Multiarch not supported."
+            break
+        fi
+    done
+fi
+
+chmod 755 $packagedir/debian/rules
+
+cd $packagedir
+rm -f config.status
+dpkg-buildpackage -W -us -uc -rfakeroot
+
+mv $packagedir/../openrtm* $packagedir/packages/
+if test "x$multiarch_flg" = "xON" ; then 
+    mv /tmp/compat.$$ $packagedir/debian/compat
+    mv /tmp/rules.$$ $packagedir/debian/rules
+    mv /tmp/control.$$ $packagedir/debian/control
+fi


Property changes on: branches/RELENG_1_2/OpenRTM-aist-Java/packages/deb/dpkg_build.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/rpm/openrtm-aist.spec.in
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/rpm/openrtm-aist.spec.in	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/rpm/openrtm-aist.spec.in	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1,114 @@
+#------------------------------------------------------------
+#
+# @file RPM spec file for OpenRTM-aist-Java
+# @author Noriaki Ando <n-ando at aist.go.jp>
+#
+# $Id$
+#
+
+%define pkgname        OpenRTM-aist-Java
+%define version        __VERSION__
+%define short_version  __SHORT_VERSION__
+%define distname       __DISTNAME__
+%define builddir       %{_topdir}/BUILD/%{distname}
+%define pkgver         0
+%define _unpackaged_files_terminate_build   1
+%define rtm_libdir     %{_libdir}/openrtm-%{short_version}
+%define rtm_datadir    %{_datadir}/openrtm-%{short_version}
+%global debug_package  %{nil}
+
+#------------------------------------------------------------
+# Package information
+Name: OpenRTM-aist-Java
+Version: %{version}
+Release: %{pkgver}.%{distname}
+Summary: Java modules for OpenRTM-aist
+Group: Applications/System
+License: LGPL
+URL: http://openrtm.org
+#Source0: %{pkgname}-%{version}-RELEASE.tar.gz
+Vendor: AIST <n-ando at aist.go.jp>
+
+Prefix: %{_prefix}
+BuildRoot: %{_tmppath}/%{pkgname}-%{version}-%{release}-root
+Requires: java-1.8.0-openjdk-devel
+Requires: OpenRTM-aist-devel
+
+%description
+OpenRTM-aist is a reference implementation of RTC (Robotic Technology
+Component) specification which is OMG standard. OpenRTM-aist includes
+RT-Middleware runtime environment and RTC framework. The OMG standard
+defines a component model and certain important infrastructure
+services applicable to the domain of robotics software development.
+OpenRTM-aist is being developed and distributed by Task Intelligence
+Research Group, Intelligent Systems Research Institute, National
+Institute of Advanced Industrial Science and Technology (AIST), Japan.
+Please see http://openrtm.org/ for more detail.
+
+#------------------------------------------------------------
+# doc package
+%package doc
+Summary: Documentation
+Group: Development/Libraries
+%description doc
+Developer documentation.
+
+#------------------------------------------------------------
+# example package
+%package example
+Summary: Example
+Group: Development/Libraries
+Requires: OpenRTM-aist-Java
+%description example
+Example components and sources
+
+#------------------------------------------------------------
+# install section
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{rtm_libdir}
+cp -r %{_topdir}/../../jar $RPM_BUILD_ROOT%{rtm_libdir}
+mkdir -p $RPM_BUILD_ROOT%{rtm_datadir}/doc/java
+cp -r %{_topdir}/../../JavaDoc $RPM_BUILD_ROOT%{rtm_datadir}/doc/java
+cp -r %{_topdir}/../../JavaDocEn $RPM_BUILD_ROOT%{rtm_datadir}/doc/java
+%define install_dir_example $RPM_BUILD_ROOT%{rtm_datadir}/components/java
+mkdir -p %{install_dir_example}
+cp -r %{_topdir}/../../examples/RTMExamples %{install_dir_example}
+cp %{_topdir}/../../examples/*.sh %{install_dir_example}
+cp %{_topdir}/../../examples/*.conf %{install_dir_example}
+cp %{_topdir}/../../examples/*.func %{install_dir_example}
+  
+#------------------------------------------------------------
+# clean section
+%clean
+rm -rf %{buildroot}
+
+#------------------------------------------------------------
+# core files section
+%files
+%defattr(-,root,root)
+%attr(755,root,root) %{rtm_libdir}/jar/*
+
+#------------------------------------------------------------
+# doc package file list
+%files doc
+%defattr(-,root,root,-)
+%{rtm_datadir}/doc/java/JavaDoc/*
+%{rtm_datadir}/doc/java/JavaDocEn/*
+
+#------------------------------------------------------------
+# example package file list
+%files example
+%defattr(-,root,root,-)
+%{rtm_datadir}/components/java/RTMExamples/*
+%{rtm_datadir}/components/java/*.func
+%defattr(755,root,root,-)
+%{rtm_datadir}/components/java/*.sh
+%{rtm_datadir}/components/java/*.conf
+
+#------------------------------------------------------------
+# changelog section
+%changelog
+* Wed Nov 16 2016  <n-ando at aist.go.jp> 1.2.0
+- 1.2.0-RELEASE
+

Added: branches/RELENG_1_2/OpenRTM-aist-Java/packages/rpm/rpm_build.sh
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist-Java/packages/rpm/rpm_build.sh	                        (rev 0)
+++ branches/RELENG_1_2/OpenRTM-aist-Java/packages/rpm/rpm_build.sh	2017-04-13 06:13:30 UTC (rev 956)
@@ -0,0 +1,138 @@
+#!/bin/sh
+#
+# @file rpm_build.sh
+# @author Noriaki Ando <n-ando at aist.go.jp>
+# @brief rpm package build script
+#
+# $Id$
+#
+export LC_ALL=C
+arch=`uname -i | sed -s 's/i[3-5]/i6/g'`
+
+clean_dirs()
+{
+	rm -rf *.log *.bak .rpmrc
+	dirs="BUILD RPMS SOURCES SPECS SRPMS BUILDROOT"
+	for d in $dirs; do
+	rm -rf $d
+	done
+}
+
+get_opt()
+{
+	if test "x$1" = "xclean" ; then
+		clean_dirs
+		exit 0
+	fi
+}
+
+check_distribution()
+{
+	dist_name=""
+	dist_key=""
+	FEDORA_VER=""
+	# Check the lsb distribution name
+	if test -f /etc/lsb-release ; then
+		. /etc/lsb-release
+		if test "x$DISTRIB_DESCRIPTION" != "x" ; then
+			dist_name=$DISTRIB_DESCRIPTION-`uname -m`
+		fi
+	fi
+	# Check the Fedora version
+	if test "x$dist_name" = "x" && test -f /etc/fedora-release ; then
+		dist_name=`cat /etc/fedora-release`-`uname -m`
+		dist_key=`sed -e 's/.[^0-9]*\([0-9]\+\).*/fc\1/' /etc/fedora-release`
+		FEDORA_VER=$dist_key
+	fi
+	#Check the Debian version
+	if test "x$dist_name" = "x" && test -f /etc/debian_version ; then
+		dist_name="Debian"`cat /etc/debian_version`-`uname -m`
+		dist_key=""
+	fi
+	# Check the Vine version
+	if test "x$dist_name" = "x" && test -f /etc/vine-release ; then
+		dist_name=`cat /etc/vine-release`-`uname -m`
+		dist_key=`sed -e 's/.*\([0-9]\)\.\([0-9]\).*/vl\1\2/' /etc/vine-release`
+	fi
+	# Check the TuboLinux versio
+	if test "x$dist_name" = "x" && test -f /etc/turbolinux-release ; then
+		dist_name=`cat /etc/tubolinux-release`-`uname -m`
+		dist_key=""
+	fi
+
+	if test "x$dist_name" = "x" ; then
+		dist_name=$os$release
+	fi
+	# Check the RedHat/Fedora version
+	if test "x$dist_name" = "x" && test -f /etc/redhat-release ; then
+		dist_name=`cat /etc/redhat-release`-`uname -m`
+	fi
+
+	# only fedora and vine
+	if test "x$dist_key" = "x" ; then
+		echo "This is not Feodra/Vine/Scientific/RedHat distribution"
+		exit
+	fi
+	DIST_KEY=$dist_key
+	DIST_NAME=`echo $dist_name | sed 's/[ |\(|\)]//g'`
+}
+
+get_version_info()
+{
+    rm -f build.xml
+    if test "x$VERSION_SRC" = "x" ; then
+        VERSION_SRC="http://svn.openrtm.org/OpenRTM-aist-Java/trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/build.xml"
+    fi
+    wget $VERSION_SRC
+    VERSION=`xmllint --xpath "/project/property[1]/@value" build.xml | sed -e "s/value=\"\([^\"]*\)\"/\1\n/g"`
+    SHORT_VERSION=`echo $VERSION | sed 's/\.[0-9]*$//'`
+}
+
+create_rpmbuilddir()
+{
+    clean_dirs
+    mkdir {BUILD,RPMS,SOURCES,SPECS,SRPMS}
+    mkdir RPMS/{$arch,noarch}
+    export BUILD_DIR=`pwd`
+}
+
+create_spec_file()
+{
+    sed "s/__DISTNAME__/$DIST_KEY/g" openrtm-aist.spec.in > openrtm-aist.spec.1
+    sed "s/__VERSION__/$VERSION/g" openrtm-aist.spec.1 > openrtm-aist.spec.2
+    sed "s/__SHORT_VERSION__/$SHORT_VERSION/g" openrtm-aist.spec.2 > openrtm-aist.spec.3
+    cp openrtm-aist.spec.3 SPECS/openrtm-aist.spec
+    rm openrtm-aist.spec.[0-9]
+    echo "%_topdir $BUILD_DIR" > .rpmrc
+}
+
+build_rpm()
+{
+    cd SPECS
+    rpm_def="_topdir $BUILD_DIR"
+    if rpmbuild --target "$arch" --define "$rpm_def" -ba openrtm-aist.spec ; then
+	echo "Build successful"
+    else
+	echo "Build failed"
+	exit 1
+    fi
+}
+
+copy_rpm()
+{
+    find $BUILD_DIR -name '*.rpm' -exec cp {} ${BUILD_DIR}/.. \;
+}
+
+#------------------------------
+# main
+#------------------------------
+get_opt $*
+
+check_distribution
+get_version_info
+
+create_rpmbuilddir
+create_spec_file
+
+build_rpm
+copy_rpm



openrtm-commit メーリングリストの案内