Initial packaging

This commit is contained in:
Michael Simacek 2016-10-05 18:36:45 +02:00
parent c1909c0c6d
commit 1ac0cc0a72
4 changed files with 111 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/osgi.core-6.0.0-sources.jar

75
osgi-core.spec Normal file
View File

@ -0,0 +1,75 @@
Name: osgi-core
Version: 6.0.0
Release: 2%{?dist}
License: ASL 2.0
Summary: OSGi Core API
URL: https://www.osgi.org
Source0: https://repo1.maven.org/maven2/org/osgi/osgi.core/%{version}/osgi.core-%{version}-sources.jar
Source1: https://repo1.maven.org/maven2/org/osgi/osgi.core/%{version}/osgi.core-%{version}.pom
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.osgi:org.osgi.annotation)
%description
OSGi Core Release 6, 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 -p %SOURCE1 pom.xml
mkdir -p src/main/java
mv org src/main/java/
%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
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE
%doc about.html
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
* Wed Oct 05 2016 Michael Simacek <msimacek@redhat.com> - 6.0.0-2
- Remove alias
* Tue Oct 04 2016 Michael Simacek <msimacek@redhat.com> - 6.0.0-1
- Initial packaging

34
osgi.core-6.0.0.pom Normal file
View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>org.osgi</groupId>
<artifactId>osgi.core</artifactId>
<version>6.0.0</version>
<description>OSGi Core Release 6, Interfaces and Classes for use in compiling bundles.</description>
<name>org.osgi:osgi.core</name>
<url>http://www.osgi.org/</url>
<organization>
<name>OSGi Alliance</name>
<url>http://www.osgi.org/</url>
</organization>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://opensource.org/licenses/apache2.0.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://www.osgi.org/members/git/build.git</url>
<connection>scm:git:https://www.osgi.org/members/git/build.git</connection>
<developerConnection>scm:git:https://www.osgi.org/members/git/build.git</developerConnection>
</scm>
<developers>
<developer>
<id>osgi</id>
<email>info@osgi.org</email>
<name>OSGi Alliance</name>
<organization>OSGi Alliance</organization>
</developer>
</developers>
</project>

View File

@ -0,0 +1 @@
1d6cda750e77e31fac814f5b7a5aa851 osgi.core-6.0.0-sources.jar