!2 Package init

Merge pull request !2 from 成子晗/master
This commit is contained in:
openeuler-ci-bot 2020-08-19 11:50:29 +08:00 committed by Gitee
commit 77aa6c2a0f
3 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,64 @@
%global bundle org.apache.aries.blueprint.annotation.api
Name: aries-blueprint-annotation-api
Version: 1.0.1
Release: 1
Summary: Apache Aries Blueprint Annotation API
License: ASL 2.0
URL: http://aries.apache.org/
Source0: https://repo1.maven.org/maven2/org/apache/aries/blueprint/%{bundle}/%{version}/%{bundle}-%{version}-source-release.zip
BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildArch: noarch
%description
This bundle contains the blueprint annotation api and
the corresponding XML schema.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{bundle}-%{version}
%pom_remove_parent
%pom_remove_plugin org.apache.aries.versioning:org.apache.aries.versioning.plugin
%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
<excludeDependencies>true</excludeDependencies>
<instructions>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Export-Package>${aries.osgi.export.pkg}</Export-Package>
<Import-Package>${aries.osgi.import.pkg}</Import-Package>
<Implementation-Title>Apache Aries</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
<Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
</instructions>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>'
%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
%install
%mvn_install
%files -f .mfiles
%license LICENSE NOTICE
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%changelog
* Fri Jul 24 2020 chengzihan <chengzihan2@huawei.com> - 1.0.1-1
- Package init

View File

@ -0,0 +1,4 @@
version_control: svn
src_repo: https://svn.apache.org/repos/asf/aries
tag_prefix: "org.apache.aries.blueprint.annotation.api-"
seperator: "."