diff --git a/ant-antunit.spec b/ant-antunit.spec new file mode 100644 index 0000000..de5f7e7 --- /dev/null +++ b/ant-antunit.spec @@ -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 task drives the tests much like 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 - 1.3-1 +- Package init diff --git a/ant-antunit.yaml b/ant-antunit.yaml new file mode 100644 index 0000000..d632013 --- /dev/null +++ b/ant-antunit.yaml @@ -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: "." diff --git a/apache-ant-antunit-1.3-src.tar.bz2 b/apache-ant-antunit-1.3-src.tar.bz2 new file mode 100644 index 0000000..6373b7f Binary files /dev/null and b/apache-ant-antunit-1.3-src.tar.bz2 differ