!1 package init

Merge pull request !1 from small_leek/master
This commit is contained in:
openeuler-ci-bot 2020-08-12 17:13:25 +08:00 committed by Gitee
commit 0c68978477
3 changed files with 59 additions and 0 deletions

54
ant-antunit.spec Normal file
View File

@ -0,0 +1,54 @@
%global base_name antunit
Name: ant-%{base_name}
Version: 1.3
Release: 1
Summary: Provide antunit ant task
License: ASL 2.0
URL: http://ant.apache.org/antlibs/antunit/
Source0: http://www.apache.org/dist/ant/antlibs/%{base_name}/source/apache-%{name}-%{version}-src.tar.bz2
BuildArch: noarch
BuildRequires: javapackages-local ant ant-junit ant-testutil
%description
The <antunit> task drives the tests much like <junit> does for JUnit tests.
When called on a build file, the task will start a new Ant project for that
build file and scan for targets with names that start with "test". For each
such target it then will:
1. Execute the target named setUp, if there is one.
2. Execute the target itself - if this target depends on other targets the
normal Ant rules apply and the dependent targets are executed first.
3. Execute the target names tearDown, if there is one.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n apache-%{name}-%{version}
mv CONTRIBUTORS CONTRIBUTORS.orig
iconv -f ISO-8859-1 -t UTF-8 CONTRIBUTORS.orig > CONTRIBUTORS
touch -r CONTRIBUTORS.orig CONTRIBUTORS
%build
ant package
%install
%mvn_artifact %{name}-%{version}.pom build/lib/%{name}-%{version}.jar
%mvn_file ":ant-antunit" ant/ant-antunit
%mvn_install -J docs/
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
echo "ant/%{name}" > %{buildroot}%{_sysconfdir}/ant.d/%{base_name}
%files -f .mfiles
%license LICENSE NOTICE
%doc CONTRIBUTORS README README.html WHATSNEW
%config(noreplace) %{_sysconfdir}/ant.d/%{base_name}
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%changelog
* Fri Jul 24 2020 chengzihan <chengzihan2@huawei.com> - 1.3-1
- Package init

5
ant-antunit.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/apache/ant-antlibs-antunit.git
version_control: github
src_repo: apache/ant-antlibs-antunit
tag_prefix: "rel/"
seperator: "."

Binary file not shown.