2019-02-11 10:58:24 +01:00
|
|
|
#
|
|
|
|
# spec file for package osgi-compendium
|
|
|
|
#
|
2023-09-02 18:47:10 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-02-11 10:58:24 +01:00
|
|
|
#
|
|
|
|
# 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
|
2020-03-30 22:28:43 +02:00
|
|
|
Version: 7.0.0
|
2019-02-11 10:58:24 +01:00
|
|
|
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
|
2020-03-30 22:28:43 +02:00
|
|
|
Source0: https://osgi.org/download/r7/osgi.cmpn-%{version}.jar
|
2019-02-11 10:58:24 +01:00
|
|
|
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}
|
2019-02-11 20:47:00 +01:00
|
|
|
Group: Documentation/HTML
|
2019-02-11 10:58:24 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2020-03-30 22:28:43 +02:00
|
|
|
rm -r src/main/java/org/osgi/service/jaxrs
|
|
|
|
|
2019-02-11 10:58:24 +01:00
|
|
|
mkdir -p lib
|
2019-04-15 15:49:08 +02:00
|
|
|
build-jar-repository -s lib geronimo-jpa-3.0-api glassfish-servlet-api osgi-annotation osgi-core
|
2019-02-11 10:58:24 +01:00
|
|
|
|
|
|
|
%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
|
2022-12-05 10:21:18 +01:00
|
|
|
%add_maven_depmap %{name}/osgi.cmpn.pom %{name}/osgi.cmpn.jar
|
2019-02-11 10:58:24 +01:00
|
|
|
# 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
|