Package init
This commit is contained in:
parent
647296362d
commit
39eda5f1b4
BIN
maven-osgi-0.2.0-javadoc.jar
Normal file
BIN
maven-osgi-0.2.0-javadoc.jar
Normal file
Binary file not shown.
56
maven-osgi.spec
Normal file
56
maven-osgi.spec
Normal 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
4
maven-osgi.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: NA
|
||||||
|
src_repo: NA
|
||||||
|
tag_prefix: NA
|
||||||
|
seperator: NA
|
||||||
60
pom.xml
Normal file
60
pom.xml
Normal 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>
|
||||||
Loading…
x
Reference in New Issue
Block a user