!1 add package javapackages-tools

Merge pull request !1 from 严志华/master
This commit is contained in:
openeuler-ci-bot 2019-12-31 18:13:27 +08:00 committed by Gitee
commit 6fa67529f4
4 changed files with 117 additions and 75 deletions

BIN
5.3.0.tar.gz Normal file

Binary file not shown.

View File

@ -1,36 +0,0 @@
# javapackages-tools
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,39 +0,0 @@
# javapackages-tools
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

117
javapackages-tools.spec Normal file
View File

@ -0,0 +1,117 @@
%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}/maven-metadata/javapackages-metadata.xml$
%global _python_bytecompile_extra 0
Name: javapackages-tools
Version: 5.3.0
Release: 2
Summary: Support for Java packaging with macros and scripts
License: BSD
URL: https://github.com/fedora-java/javapackages
Source0: https://github.com/fedora-java/javapackages/archive/%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils which make asciidoc xmlto python3-devel python3-lxml
BuildRequires: python3-setuptools python3-nose python3-six
Requires: javapackages-filesystem = %{version}-%{release} coreutils
Requires: findutils which java-1.8.0-openjdk-headless
Provides: jpackage-utils = %{version}-%{release} mvn(com.sun:tools) = SYSTEM
Provides: mvn(sun.jdk:jconsole) = SYSTEM
%description
The javapackages-tools package contains macros and scripts to support Java packaging.
%package -n javapackages-filesystem
Summary: Filesystem layout for java packages
Provides: eclipse-filesystem = %{version}-%{release}
Obsoletes: eclipse-filesystem < 2
%description -n javapackages-filesystem
The javapackages-filesystem package contains some basic directories into which
Java packages install their content.
%package -n maven-local
Summary: Support macros and scripts for maven packaging
Requires: %{name} = %{version}-%{release} javapackages-local = %{version}-%{release}
Requires: xmvn-minimal xmvn-mojo xmvn-connector-aether
Requires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
Requires: mvn(org.apache.maven.plugins:maven-jar-plugin)
Requires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
Requires: mvn(org.apache.maven.plugins:maven-resources-plugin)
Requires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
Requires: mvn(junit:junit) mvn(org.apache.maven.surefire:surefire-junit4)
Requires: mvn(org.apache.maven.surefire:surefire-testng)
%description -n maven-local
The maven-local package contains macros and scripts to support packaging Maven artifacts.
%package -n gradle-local
Summary: Gradle's local mode
Requires: %{name} = %{version}-%{release} javapackages-local = %{version}-%{release}
Requires: gradle >= 2.2.1-2 xmvn-connector-gradle
%description -n gradle-local
The gradle-local package implements local mode for Gradle, which allows artifact resolution
when using XMvn resolver.
%package -n ivy-local
Summary: Local mode for Apache Ivy
Requires: %{name} = %{version}-%{release} javapackages-local = %{version}-%{release}
Requires: apache-ivy >= 2.3.0-8 xmvn-connector-ivy
%description -n ivy-local
The ivy-local package implements local mode for Apache Ivy, which allows artifact
resolution when using XMvn resolver.
%package -n python3-javapackages
Summary: Java packaging's Module for handling various files
Requires: python3-lxml python3-six
Obsoletes: python-javapackages < %{version}-%{release}
%description -n python3-javapackages
The python3-javapackages package is a module for handling, querying and manipulating
of various files for Java packaging in Linux distributions.
%package -n javapackages-local
Summary: Support of java packaging with Non-essential macros and scripts
Requires: %{name} = %{version}-%{release} xmvn-install xmvn-subst
Requires: xmvn-resolve java-1.8.0-openjdk-devel
Requires: python3-javapackages = %{version}-%{release} python3
%description -n javapackages-local
The javapackages-local package contains non-essential macros and scripts which supports
Java packaging.
%prep
%autosetup -n javapackages-%{version} -p1
%build
%configure --pyinterpreter=%{__python3} --rpmmacrodir=%{rpmmacrodir} \
--default_jdk=%{?_root_prefix}%{!?_root_prefix:%{_prefix}}/lib/jvm/java-1.8.0-openjdk \
--default_jre=%{?_root_prefix}%{!?_root_prefix:%{_prefix}}/lib/jvm/jre-1.8.0-openjdk
./build
%install
./install
sed -e 's/.[17]$/&*/' -i files-*
%check
./check
%files -f files-tools
%files -n ivy-local -f files-ivy
%files -n maven-local
%files -n gradle-local -f files-gradle
%files -n javapackages-filesystem -f files-filesystem
%files -n javapackages-local -f files-local
%files -n python3-javapackages -f files-python
%license LICENSE
%changelog
* Tue Dec 10 2019 yanzhihua4 <yanzhihua4@huawei.com> - 5.3.0-2
- Package init