This commit is contained in:
commit
4202adcfdf
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
135
osgi-compendium-build.xml
Normal file
135
osgi-compendium-build.xml
Normal file
@ -0,0 +1,135 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="osgi.cmpn" default="package" basedir=".">
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Build environment properties -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<property file="build.properties"/>
|
||||
|
||||
|
||||
<property name="compiler.source" value="1.6"/>
|
||||
<property name="compiler.target" value="${compiler.source}"/>
|
||||
|
||||
<property name="project.artifactId" value="osgi.cmpn"/>
|
||||
<property name="project.groupId" value="org.osgi"/>
|
||||
<property name="project.version" value="6.0.0"/>
|
||||
<property name="project.description" value="OSGi Compendium Release 6, Interfaces and Classes for use in compiling bundles."/>
|
||||
<property name="project.organization.name" value="OSGi Alliance"/>
|
||||
|
||||
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
|
||||
<property name="build.dir" value="target"/>
|
||||
<property name="build.outputDir" value="${build.dir}/classes"/>
|
||||
<property name="build.srcDir" value="src/main/java"/>
|
||||
<property name="build.resourceDir" value="src/main/resources"/>
|
||||
|
||||
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Defining classpaths -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<path id="build.classpath">
|
||||
<fileset dir="lib">
|
||||
<include name="**/*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Cleaning up target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${build.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile" description="Compile the code">
|
||||
<mkdir dir="${build.outputDir}"/>
|
||||
<javac destdir="${build.outputDir}"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
encoding="UTF-8"
|
||||
optimize="false"
|
||||
deprecation="true"
|
||||
target="${compiler.target}"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
source="${compiler.source}">
|
||||
<src>
|
||||
<pathelement location="${build.srcDir}"/>
|
||||
</src>
|
||||
<classpath refid="build.classpath"/>
|
||||
</javac>
|
||||
<copy todir="${build.outputDir}">
|
||||
<fileset dir="${build.resourceDir}"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Javadoc target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||
<javadoc sourcepath="${build.srcDir}"
|
||||
packagenames="*"
|
||||
destdir="${reporting.outputDirectory}/apidocs"
|
||||
access="protected"
|
||||
source="${compiler.source}"
|
||||
verbose="false"
|
||||
version="true"
|
||||
use="true"
|
||||
author="true"
|
||||
splitindex="false"
|
||||
nodeprecated="false"
|
||||
nodeprecatedlist="false"
|
||||
notree="false"
|
||||
noindex="false"
|
||||
nohelp="false"
|
||||
nonavbar="false"
|
||||
serialwarn="false"
|
||||
encoding="UTF-8"
|
||||
linksource="false"
|
||||
breakiterator="false">
|
||||
<classpath refid="build.classpath"/>
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Package target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="package" depends="compile" description="Package the application">
|
||||
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
basedir="${build.outputDir}"
|
||||
excludes="**/package.html">
|
||||
<manifest>
|
||||
<attribute name="Bundle-Description" value="${project.description}"/>
|
||||
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||
<attribute name="Bundle-Name" value="${project.artifactId}"/>
|
||||
<attribute name="Bundle-SymbolicName" value="${project.artifactId}"/>
|
||||
<attribute name="Bundle-Vendor" value="${project.organization.name}"/>
|
||||
<attribute name="Bundle-Version" value="${project.version}"/>
|
||||
<attribute name="Export-Package" value="org.osgi.util.xml;version="1.0.1";uses:="javax.xml.parsers,org.osgi.framework",org.osgi.util.function;version="1.0",org.osgi.util.promise;version="1.0";uses:="org.osgi.util.function",org.osgi.util.position;version="1.0.1";uses:="org.osgi.util.measurement",org.osgi.util.measurement;version="1.0.1",org.osgi.namespace.contract;version="1.0";uses:="org.osgi.resource",org.osgi.namespace.extender;version="1.0.1";uses:="org.osgi.resource",org.osgi.namespace.service;version="1.0";uses:="org.osgi.resource",org.osgi.application;version="1.0";uses:="org.osgi.framework",org.osgi.service.async;version="1.0";uses:="org.osgi.framework,org.osgi.util.promise",org.osgi.service.async.delegate;version="1.0";uses:="org.osgi.util.promise",org.osgi.service.provisioning;version="1.2",org.osgi.service.useradmin;version="1.1";uses:="org.osgi.framework",org.osgi.service.subsystem;version="1.1";uses:="org.osgi.framework,org.osgi.resource",org.osgi.service.wireadmin;version="1.0.1";uses:="org.osgi.framework",org.osgi.service.rest;version="1.0.0",org.osgi.service.rest.client;version="1.0.0";uses:="org.osgi.framework.dto,org.osgi.framework.startlevel.dto",org.osgi.service.log;version="1.3";uses:="org.osgi.framework",org.osgi.service.device;version="1.1";uses:="org.osgi.framework",org.osgi.service.dmt;version="2.0.1",org.osgi.service.dmt.spi;version="2.0";uses:="org.osgi.service.dmt",org.osgi.service.dmt.notification.spi;version="2.0";uses:="org.osgi.service.dmt.notification",org.osgi.service.dmt.notification;version="2.0";uses:="org.osgi.service.dmt",org.osgi.service.dmt.security;version="2.0",org.osgi.service.component.annotations;version="1.3",org.osgi.service.component;version="1.3";uses:="org.osgi.framework",org.osgi.service.component.runtime;version="1.3";uses:="org.osgi.framework,org.osgi.service.component.runtime.dto,org.osgi.util.promise",org.osgi.service.component.runtime.dto;version="1.3";uses:="org.osgi.dto,org.osgi.framework.dto",org.osgi.service.repository;version="1.1";uses:="org.osgi.resource,org.osgi.util.promise",org.osgi.service.coordinator;version="1.0.2";uses:="org.osgi.framework",org.osgi.service.jpa;version="1.0";uses:="javax.persistence",org.osgi.service.http.context;version="1.0";uses:="javax.servlet.http,org.osgi.framework",org.osgi.service.http.whiteboard;version="1.0",org.osgi.service.http;version="1.2.1";uses:="javax.servlet,javax.servlet.http",org.osgi.service.http.runtime;version="1.0";uses:="org.osgi.service.http.runtime.dto",org.osgi.service.http.runtime.dto;version="1.0";uses:="org.osgi.dto,org.osgi.framework.dto",org.osgi.service.monitor;version="1.0",org.osgi.service.deploymentadmin;version="1.1";uses:="org.osgi.framework",org.osgi.service.deploymentadmin.spi;version="1.0.1";uses:="org.osgi.framework,org.osgi.service.deploymentadmin",org.osgi.service.event;version="1.3.1";uses:="org.osgi.framework",org.osgi.service.prefs;version="1.1.1",org.osgi.service.jdbc;version="1.0";uses:="javax.sql",org.osgi.service.metatype.annotations;version="1.3",org.osgi.service.metatype;version="1.3";uses:="org.osgi.framework",org.osgi.service.upnp;version="1.2",org.osgi.service.jndi;version="1.0";uses:="javax.naming,javax.naming.directory",org.osgi.service.serviceloader;version="1.0";uses:="org.osgi.resource",org.osgi.service.resolver;version="1.0.1";uses:="org.osgi.resource",org.osgi.service.application;version="1.1";uses:="org.osgi.framework",org.osgi.service.remoteserviceadmin;version="1.1.0";uses:="org.osgi.framework",org.osgi.service.remoteserviceadmin.namespace;version="1.0.0";uses:="org.osgi.resource",org.osgi.service.blueprint.reflect;version="1.0.1",org.osgi.service.blueprint.container;version="1.0.2";uses:="org.osgi.framework,org.osgi.service.blueprint.reflect",org.osgi.service.cm;version="1.5";uses:="org.osgi.framework""/>
|
||||
<attribute name="Import-Package" value="javax.naming,javax.naming.directory,javax.persistence;version="[3.0,4)",javax.servlet;version="[3.1,4)",javax.servlet.http;version="[3.1,4)",javax.sql,javax.xml.parsers,org.osgi.dto;version="[1.0,2)",org.osgi.framework;version="[1.8,2)",org.osgi.framework.dto;version="[1.8,2)",org.osgi.framework.startlevel.dto;version="[1.0,2)",org.osgi.resource;version="[1.0,2)",org.osgi.service.blueprint.reflect;version="[1.0,2)",org.osgi.service.component.runtime.dto;version="[1.3,2)",org.osgi.service.deploymentadmin;version="[1.1,2)",org.osgi.service.dmt;version="[2.0,3)",org.osgi.service.dmt.notification;version="[2.0,3)",org.osgi.service.http.runtime.dto;version="[1.0,2)",org.osgi.util.function;version="[1.0,2)",org.osgi.util.measurement;version="[1.0,2)",org.osgi.util.promise;version="[1.0,1.1)""/>
|
||||
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
|
||||
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
|
||||
<attribute name="JavaPackages-Version" value="${project.version}"/>
|
||||
<attribute name="Require-Capability" value="osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${compiler.target}))""/>
|
||||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- A dummy target for the package named after the type it creates -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
||||
|
||||
</project>
|
116
osgi-compendium.spec
Normal file
116
osgi-compendium.spec
Normal file
@ -0,0 +1,116 @@
|
||||
#
|
||||
# spec file for package osgi-compendium
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: osgi-compendium
|
||||
Version: 6.0.0
|
||||
Release: 0
|
||||
Summary: Interfaces and Classes for use in compiling OSGi bundles
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
URL: http://www.osgi.org
|
||||
Source0: https://osgi.org/download/r6/osgi.cmpn-%{version}.jar
|
||||
Source1: %{name}-build.xml
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: geronimo-jpa-3_0-api
|
||||
BuildRequires: glassfish-servlet-api
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: osgi-annotation
|
||||
BuildRequires: osgi-core
|
||||
BuildRequires: unzip
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
OSGi Compendium, Interfaces and Classes for use in compiling bundles.
|
||||
|
||||
%package javadoc
|
||||
Summary: API documentation for %{name}
|
||||
|
||||
%description javadoc
|
||||
This package provides %{summary}.
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
cp %{SOURCE1} build.xml
|
||||
|
||||
rm -r org
|
||||
find -name '*.class' -delete
|
||||
|
||||
mkdir -p src/main/{java,resources}
|
||||
mv OSGI-OPT/src/org src/main/java/
|
||||
mv xmlns src/main/resources
|
||||
|
||||
# J2ME stuff
|
||||
rm -r src/main/java/org/osgi/service/io
|
||||
|
||||
mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .
|
||||
|
||||
%pom_xpath_inject pom:project '
|
||||
<packaging>bundle</packaging>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-Name>${project.artifactId}</Bundle-Name>
|
||||
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>'
|
||||
|
||||
%pom_add_dep org.osgi:osgi.annotation::provided
|
||||
%pom_add_dep org.osgi:osgi.core::provided
|
||||
%pom_add_dep javax.servlet:javax.servlet-api::provided
|
||||
%pom_add_dep javax.persistence:persistence-api::provided
|
||||
|
||||
mkdir -p lib
|
||||
build-jar-repository -s lib jpa_api glassfish-servlet-api osgi-annotation osgi-core
|
||||
|
||||
%build
|
||||
ant jar javadoc
|
||||
|
||||
%install
|
||||
# jar
|
||||
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
||||
install -pm 0644 target/osgi.cmpn-%{version}.jar %{buildroot}%{_javadir}/%{name}/osgi.cmpn.jar
|
||||
# pom
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/osgi.cmpn.pom
|
||||
%add_maven_depmap %{name}/osgi.cmpn.pom %{name}/osgi.cmpn.jar
|
||||
# javadoc
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE
|
||||
%doc about.html
|
||||
|
||||
%files javadoc
|
||||
%license LICENSE
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
3
osgi.cmpn-6.0.0.jar
Normal file
3
osgi.cmpn-6.0.0.jar
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dbe06105a0e3e46bc88425b3d7c682a2d8b6bd055341913b6c37e998c00c9176
|
||||
size 958829
|
Loading…
x
Reference in New Issue
Block a user