!1 Package init

Merge pull request !1 from lyn/master
This commit is contained in:
openeuler-ci-bot 2020-08-22 09:25:50 +08:00 committed by Gitee
commit fcff603818
4 changed files with 120 additions and 0 deletions

Binary file not shown.

56
maven-osgi.spec Normal file
View File

@ -0,0 +1,56 @@
Name: maven-osgi
Version: 0.2.0
Release: 1
Epoch: 1
Summary: Library for Maven-OSGi integration
License: ASL 2.0
URL: http://maven.apache.org/shared/maven-osgi
BuildArch: noarch
Source0: https://repo1.maven.org/maven2/org/apache/maven/shared/maven-osgi/0.2.0/%{name}-%{version}-javadoc.jar
Source1: http://svn.apache.org/repos/asf/maven/shared/tags/maven-osgi-0.2.0/pom.xml
BuildRequires: maven-local mvn(biz.aQute:bndlib) mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
Obsoletes: maven-shared-osgi < %{epoch}:%{version}-%{release}
Provides: maven-shared-osgi = %{epoch}:%{version}-%{release}
%description
Library for Maven-OSGi integration.
This is a replacement package for maven-shared-osgi
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
API documentation for %{name}.
%prep
%autosetup -c %{name}-%{version}
cp %{SOURCE1} .
%pom_xpath_set "pom:plugin[pom:artifactId[text()='plexus-maven-plugin']]//pom:goal[text()='descriptor']" generate-metadata
%pom_xpath_set "pom:artifactId[text()='plexus-maven-plugin']" plexus-component-metadata
%build
%mvn_build -f
%install
%mvn_install
install -d %{buildroot}/%{_datadir}/%{name}-javadoc/html
cp %_builddir/%{name}-%{version}/*.html %{buildroot}/%{_datadir}/%{name}-javadoc/html
install -d %{buildroot}/usr/share/doc/maven-osgi-javadoc
cp %_builddir/%{name}-%{version}/META-INF/LICENSE %{buildroot}/usr/share/doc/maven-osgi-javadoc
cp %_builddir/%{name}-%{version}/META-INF/NOTICE %{buildroot}/usr/share/doc/maven-osgi-javadoc
install -d %{buildroot}/usr/share/doc/maven-osgi
cp %_builddir/%{name}-%{version}/META-INF/LICENSE %{buildroot}/usr/share/doc/maven-osgi
cp %_builddir/%{name}-%{version}/META-INF/NOTICE %{buildroot}/usr/share/doc/maven-osgi
%files -f .mfiles
%doc LICENSE NOTICE
%dir %{_javadir}/%{name}
%files javadoc
%doc LICENSE NOTICE
%{_datadir}/%{name}-javadoc/html/*
%changelog
* Fri Jul 31 2020 yanan li <liyanan032@huawei.com> - 0.2.0-1
- Package init

4
maven-osgi.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA

60
pom.xml Normal file
View File

@ -0,0 +1,60 @@
<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">
<parent>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-components</artifactId>
<version>8</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>maven-osgi</artifactId>
<version>0.2.0</version>
<name>Maven OSGi integration</name>
<description>Library for Maven-OSGi integration</description>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.0.6</version>
</dependency>
<dependency>
<groupId>biz.aQute</groupId>
<artifactId>bndlib</artifactId>
<version>0.0.203</version>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-maven-plugin</artifactId>
<version>1.3.5</version>
<executions>
<execution>
<goals>
<goal>descriptor</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-7</version>
</plugin>
</plugins>
</build>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/shared/tags/maven-osgi-0.2.0</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/shared/tags/maven-osgi-0.2.0</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/maven/shared/tags/maven-osgi-0.2.0</url>
</scm>
</project>