diff --git a/5.3.0.tar.gz b/5.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..6f2e8e5040e39ce0356f0f06ebf502b1c5c9d79c Binary files /dev/null and b/5.3.0.tar.gz differ diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 7d80ca3119b7cd79bcab4a7ad059ba03be432e2c..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -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/) diff --git a/README.md b/README.md deleted file mode 100644 index f4e5d000ade3cfae755262520eb3abf96d408255..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -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/) diff --git a/javapackages-tools.spec b/javapackages-tools.spec new file mode 100644 index 0000000000000000000000000000000000000000..0f76b90048c0fb37a1f9dbc1ed5b890d512f0b57 --- /dev/null +++ b/javapackages-tools.spec @@ -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 - 5.3.0-2 +- Package init