[Jpackage-commits] dist/bnd1/JPP-6 Makefile, NONE, 1.1 bnd-1.43.0.pom, NONE, 1.1 bnd1.spec, NONE, 1.1 bndlib-1.43.0.pom, NONE, 1.1 sources, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Mon Oct 17 22:19:04 CEST 2011


Update of /home/projects/jpackage/cvs/dist/bnd1/JPP-6
In directory ryu.zarb.org:/tmp/cvs-serv6379/JPP-6

Added Files:
	Makefile bnd-1.43.0.pom bnd1.spec bndlib-1.43.0.pom sources 
Log Message:
Import bnd1 into JPP-6

--- NEW FILE: bnd-1.43.0.pom ---
<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
  <modelVersion>4.0.0</modelVersion>
  <groupId>biz.aQute</groupId>
  <artifactId>bnd</artifactId>
  <version>1.43.0</version>
  <description>
    A library for manipulating and generating bundles
  </description>
  <name>aQute Bundle Tool Library</name>
  <url>http://www.aQute.biz/Code/Bnd</url>
  <scm>
    <url>git://github.com/bnd/bnd.git</url>
    <connection>git://github.com/bnd/bnd.git</connection>
    <developerConnection>git://github.com/bnd/bnd.git</developerConnection>
  </scm>
  <organization>
    <name>aQute SARL</name>
    <url>http://www.aQute.biz</url>
  </organization>
  <developers>
    <developer>
      <id>Peter.Kriens at aQute.biz</id>
      <name>Peter.Kriens</name>
      <email>Peter.Kriens at aQute.biz</email>
      <organization>aQute</organization>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>
        All files contained in this JAR are licensed under the Apache
         2.0 license, unless noted differently in their source (see
         swing2swt).
      </name>
      <url>http://www.opensource.org/licenses/apache2.0.php</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
</project>

--- NEW FILE: sources ---
382cc773e18f1537c0303a0d228912c2  bnd-1.43.0.tar.bz2

--- NEW FILE: Makefile ---
# Makefile for source rpm: bnd1
# $Id: Makefile,v 1.1 2011/10/17 20:19:02 jpackage Exp $
NAME := bnd1
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)

--- NEW FILE: bnd1.spec ---
# Copyright (c) 2000-2011, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define section   free

Name:           bnd1
Version:        1.43.0
Release:        1%{?dist}
Epoch:          0
Summary:        BND OSGi bundle tools
Group:          Development/Libraries/Java
License:        Apache Software License 2.0
URL:            http://www.aqute.biz/Code/Bnd
Source0:        bnd-1.43.0.tar.bz2
# git clone git://github.com/bnd/bnd.git && cd bnd && git archive HEAD > ../bnd-1.43.0.tar && bzip2 ../bnd-1.43.0.tar
Source1:        bndlib-1.43.0.pom
Source2:        bnd-1.43.0.pom
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  ant >= 0:1.7.1
BuildRequires:  org.osgi.core
BuildRequires:  org.osgi.compendium
BuildRequires:  eclipse-jdt
BuildRequires:  eclipse-swt
BuildRequires:  eclipse-pde
BuildRequires:  eclipse-rcp
BuildRequires:  eclipse-platform

Requires:       java-devel >= 0:1.6.0
%if %{gcj_support}
BuildRequires:  java-gcj-compat-devel
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Bnd is the swiss army knife of OSGi bundles. It is used in 
many different incarnations to reduce the effort to create 
bundles from projects or jars using a myriad of tools like 
ant, maven, bndtools, sigil, eclipse, etc. 

#%package        javadoc
#Summary:        Javadoc for %{name}
#Group:          Development/Documentation
#
#%description    javadoc
#%{summary}.

%prep
%setup -q -c
for j in $(find . -name "*.jar"); do 
    mv $j $j.no
done
mv cnf/repo/biz.aQute.bnd/biz.aQute.bnd-latest.jar.no cnf/repo/biz.aQute.bnd/biz.aQute.bnd-latest.jar
ln -s $(ls /usr/lib*/eclipse/dropins/jdt/plugins/org.junit_3.8.2*/junit.jar) cnf/repo/com.springsource.junit/com.springsource.junit-3.8.2.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.core.runtime_3.*.jar) cnf/repo/org.eclipse.core.runtime/org.eclipse.core.runtime-3.3.100.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.core.resources_3.*.jar) cnf/repo/org.eclipse.core.resources/org.eclipse.core.resources-3.3.1.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.core.commands_3.*.jar) cnf/repo/org.eclipse.core.commands/org.eclipse.core.commands-3.3.0.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.debug.core_3.*.jar) cnf/repo/org.eclipse.debug.core/org.eclipse.debug.core-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.debug.ui_3.*.jar) cnf/repo/org.eclipse.debug.ui/org.eclipse.debug.ui-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.debug.ui_3.*.jar) cnf/repo/org.eclipse.jdt.debug.ui/org.eclipse.jdt.debug.ui-3.2.102.jar
ln -s $(ls /usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.launching_3.*.jar) cnf/repo/org.eclipse.jdt.launching/org.eclipse.jdt.launching-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.core_3.*.jar) cnf/repo/org.eclipse.jdt.core/org.eclipse.jdt.core-3.3.3.jar
mv cnf/repo/junit.osgi/junit.osgi-3.8.2.jar.no cnf/repo/junit.osgi/junit.osgi-3.8.2.jar
mv cnf/repo/org.eclipse.jdt.junit/org.eclipse.jdt.junit-3.3.2.jar.no cnf/repo/org.eclipse.jdt.junit/org.eclipse.jdt.junit-3.3.2.jar
#ln -s $(ls /usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.junit_3.*.jar) cnf/repo/org.eclipse.jdt.junit/org.eclipse.jdt.junit-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/dropins/jdt/plugins/org.eclipse.jdt.ui_3.*.jar) cnf/repo/org.eclipse.jdt.ui/org.eclipse.jdt.ui-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.jface.text_3.*.jar) cnf/repo/org.eclipse.jface.text/org.eclipse.jface.text-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.jface_3.*.jar) cnf/repo/org.eclipse.jface/org.eclipse.jface-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.text_3.*.jar) cnf/repo/org.eclipse.text/org.eclipse.text-3.3.0.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.ui_3.*.jar) cnf/repo/org.eclipse.ui/org.eclipse.ui-3.3.1.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.ui.editors_3.*.jar) cnf/repo/org.eclipse.ui.editors/org.eclipse.ui.editors-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.ui.workbench.texteditor_3.*.jar) cnf/repo/org.eclipse.ui.workbench.texteditor/org.eclipse.ui.workbench.texteditor-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.ui.workbench_3.*.jar) cnf/repo/org.eclipse.ui.ide/org.eclipse.ui.ide-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.ui.ide_3.*.jar) cnf/repo/org.eclipse.ui.workbench/org.eclipse.ui.workbench-3.3.2.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.equinox.registry_3.*.jar) cnf/repo/org.eclipse.equinox.registry/org.eclipse.equinox.registry-3.3.1.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.equinox.common_3.*.jar) cnf/repo/org.eclipse.equinox.common/org.eclipse.equinox.common-3.3.0.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.core.jobs_3.*.jar) cnf/repo/org.eclipse.core.jobs/org.eclipse.core.jobs-3.3.1.jar
ln -s $(build-classpath ant) cnf/repo/org.apache.tools.ant/org.apache.tools.ant-1.7.1.jar
ln -s $(ls /usr/lib*/eclipse/plugins/org.eclipse.osgi_3.*.jar) cnf/repo/org.eclipse.osgi/org.eclipse.osgi-3.5.1.jar
ln -s $(build-classpath org.osgi.compendium) cnf/repo/osgi.cmpn/osgi.cmpn-4.0.0.jar
ln -s $(build-classpath org.osgi.compendium) cnf/repo/osgi.cmpn/osgi.cmpn-4.0.1.jar
ln -s $(build-classpath org.osgi.compendium) cnf/repo/osgi.cmpn/osgi.cmpn-4.1.0.jar
ln -s $(build-classpath org.osgi.compendium) cnf/repo/osgi.cmpn/osgi.cmpn-4.2.0.jar
ln -s $(build-classpath org.osgi.compendium) cnf/repo/osgi.cmpn/osgi.cmpn-4.2.1.jar
ln -s $(build-classpath org.osgi.core) cnf/repo/osgi.core/osgi.core-4.2.1.jar

mv cnf/repo/ee.minimum/ee.minimum-1.0.0.jar.no cnf/repo/ee.minimum/ee.minimum-1.0.0.jar
mv cnf/repo/ee.minimum/ee.minimum-1.1.0.jar.no cnf/repo/ee.minimum/ee.minimum-1.1.0.jar
mv cnf/repo/ee.minimum/ee.minimum-1.1.1.jar.no cnf/repo/ee.minimum/ee.minimum-1.1.1.jar
mv cnf/repo/ee.minimum/ee.minimum-1.1.3.jar.no cnf/repo/ee.minimum/ee.minimum-1.1.3.jar
mv cnf/repo/ee.minimum/ee.minimum-1.2.0.jar.no cnf/repo/ee.minimum/ee.minimum-1.2.0.jar
mv cnf/repo/ee.minimum/ee.minimum-1.2.1.jar.no cnf/repo/ee.minimum/ee.minimum-1.2.1.jar

ln -s $(ls /usr/lib*/eclipse/swt-gtk-3.?.jar) cnf/repo/org.eclipse.swt.carbon.macosx/org.eclipse.swt.carbon.macosx-3.3.3.jar
#mv cnf/repo/org.eclipse.swt/org.eclipse.swt-3.3.2.jar.no cnf/repo/org.eclipse.swt/org.eclipse.swt-3.3.2.jar
#ln -s $(build-classpath maven2/empty-dep) cnf/repo/org.eclipse.swt.carbon.macosx/org.eclipse.swt.carbon.macosx-3.3.3.jar


%build
export ANT_OPTS="-Xmx128m -XX:MaxPermSize=128m"
ant

%install
rm -rf $RPM_BUILD_ROOT

install -d 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -m 644 biz.aQute.bndlib/tmp/biz.aQute.bndlib.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/bndlib-%{version}.jar
install -m 644 biz.aQute.bnd/tmp/biz.aQute.bnd.annotation.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/annotation-%{version}.jar
install -m 644 biz.aQute.bnd/tmp/biz.aQute.bnd.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/bnd-%{version}.jar
install -m 644 biz.aQute.junit/tmp/biz.aQute.junit.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/junit-%{version}.jar
install -m 644 biz.aQute.launcher/tmp/biz.aQute.launcher.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/launcher-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)


# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE1} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-bndlib.pom
%add_to_maven_depmap biz.aQute bndlib %{version} JPP/%{name} bndlib

install -m 644 %{SOURCE2} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-bnd.pom
%add_to_maven_depmap biz.aQute bnd %{version} JPP/%{name} bnd

##
#install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
#cp -pr dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
#ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%if %{gcj_support}
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(0644,root,root,0755)
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%if %{gcj_support}
%dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}*%{version}.jar.*
%endif

#%files javadoc
#%defattr(0644,root,root,0755)
#%doc %{_javadocdir}/%{name}-%{version}
#%doc %{_javadocdir}/%{name}


%changelog
* Mon Oct 17 2011 Ralph Apel <r.apel at r-apel.de> 0:1.43.0-1
- 1.43.0

* Thu Feb 24 2011 Ralph Apel <r.apel at r-apel.de> 0:1.16.0-1
- First release


--- NEW FILE: bndlib-1.43.0.pom ---
<project xmlns='http://maven.apache.org/POM/4.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd'>
  <modelVersion>4.0.0</modelVersion>
  <groupId>biz.aQute</groupId>
  <artifactId>bndlib</artifactId>
  <version>1.43.0</version>
  <description>A library for manipulating and generating bundles</description>
  <name>aQute Bundle Tool Library</name>
  <url>http://www.aQute.biz/Code/Bnd</url>
  <scm>
    <url>git://github.com/bnd/bnd.git</url>
    <connection>git://github.com/bnd/bnd.git</connection>
    <developerConnection>git://github.com/bnd/bnd.git</developerConnection>
  </scm>
  <organization>
    <name>aQute SARL</name>
    <url>http://www.aQute.biz</url>
  </organization>
  <developers>
    <developer>
      <id>Peter.Kriens at aQute.biz</id>
      <name>Peter.Kriens</name>
      <email>Peter.Kriens at aQute.biz</email>
      <organization>aQute</organization>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>All files contained in this JAR are licensed under the Apache 2.0 license, unless noted differently in their source (see swing2swt).</name>
      <url>http://www.opensource.org/licenses/apache2.0.php</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
</project>



More information about the JPackage-commits mailing list