!1 osgi-annotation : init package

Merge pull request !1 from openeuler-net/init
This commit is contained in:
openeuler-ci-bot 2019-12-17 17:33:20 +08:00 committed by Gitee
commit 2c840b048d
3 changed files with 100 additions and 0 deletions

66
osgi-annotation.spec Normal file
View File

@ -0,0 +1,66 @@
Name: osgi-annotation
Version: 6.0.0
Release: 9
Summary: Annotations for use in compiling bundles
License: ASL 2.0
URL: http://www.osgi.org/
Source0: http://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}-sources.jar
Source1: http://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}.pom
BuildArch: noarch
BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin)
Provides: %{name}-javadoc = %{version}-%{release}
Obsoletes: %{name}-javadoc < %{version}-%{release}
%description
%{summary}
%prep
%autosetup -c -n %{name}-%{version}
mkdir -p src/main/resources
mv about.html src/main/resources
mkdir -p src/main/java
mv org src/main/java
cp -p %{SOURCE1} pom.xml
%pom_xpath_inject pom:project "
<packaging>bundle</packaging>
<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>"
%mvn_alias org.osgi:osgi.annotation org.osgi:org.osgi.annotation
%build
%mvn_build
%install
%mvn_install
%files
%defattr(-,root,root)
%license LICENSE
%dir %{_javadir}/osgi-annotation
%dir %{_mavenpomdir}/osgi-annotation
%{_datadir}/java/*
%{_datadir}/javadoc/*
%{_datadir}/maven-poms/*
%{_datadir}/maven-metadata/*
%changelog
* Wed Dec 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 6.0.0-9
- Package init

Binary file not shown.

34
osgi.annotation-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.annotation</artifactId>
<version>6.0.0</version>
<description>OSGi Annotation Release 6, Annotations for use in compiling bundles.</description>
<name>org.osgi:osgi.annotation</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>