Fridrich Strba 2024-10-06 15:34:36 +00:00 committed by Git OBS Bridge
commit f8b7ac144c
7 changed files with 316 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

137
osgi-compendium-build.xml Normal file

File diff suppressed because one or more lines are too long

27
osgi-compendium.changes Normal file
View File

@ -0,0 +1,27 @@
-------------------------------------------------------------------
Wed Oct 2 15:57:05 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Spec file cleanup
-------------------------------------------------------------------
Sat Sep 2 21:52:09 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Regenerate the bundle manifest to correspond to what
maven-bundle-plugin generates during the maven build
-------------------------------------------------------------------
Wed Apr 1 08:52:15 UTC 2020 - Fridrich Strba <fstrba@suse.com>
- Update to upstream version 7.0.0
* no upstream changes
-------------------------------------------------------------------
Mon Apr 15 13:48:07 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Build classpath using directly the geronimo-jpa-3.0-ap instead of
the jta_api symlink
-------------------------------------------------------------------
Mon Feb 11 11:40:55 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Initial packaging of osgi-compendium 6.0.0

122
osgi-compendium.spec Normal file
View File

@ -0,0 +1,122 @@
#
# spec file for package osgi-compendium
#
# Copyright (c) 2024 SUSE LLC
#
# 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: 8.0.0
Release: 0
Summary: Interfaces and Classes for use in compiling OSGi bundles
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://www.osgi.org
Source0: https://osgi.org/download/r8/osgi.cmpn-%{version}.jar
Source1: %{name}-build.xml
BuildRequires: ant
BuildRequires: atinject
BuildRequires: cdi-api
BuildRequires: fdupes
BuildRequires: geronimo-jpa-3_0-api
BuildRequires: glassfish-servlet-api
BuildRequires: javapackages-local >= 6
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}
Group: Documentation/HTML
%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
mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .
mv META-INF/LICENSE .
mv META-INF/NOTICE .
%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_remove_dep :
%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
%pom_add_dep javax.enterprise:cdi-api::provided
%pom_add_dep javax.inject:javax.inject::provided
rm -r src/main/java/org/osgi/service/jaxrs
mkdir -p lib
build-jar-repository -s lib geronimo-jpa-3.0-api glassfish-servlet-api osgi-annotation osgi-core javax.enterprise.inject atinject
%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}
%{mvn_install_pom} 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 NOTICE
%files javadoc
%license LICENSE NOTICE
%{_javadocdir}/%{name}
%changelog

BIN
osgi.cmpn-7.0.0.jar (Stored with Git LFS) Normal file

Binary file not shown.

3
osgi.cmpn-8.0.0.jar Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f2dd5348f0c97e78588252d7730c05c065cc7b712e1892cc963ab9bf58a0c47
size 1897102