From 5ca66b5bf2ac047daaf49acee9dbafc198486193 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:35:10 +0000 Subject: import rh-maven33-ant-antunit-1.2-10.13.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..03ab993 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/apache-ant-antunit-1.2-src.tar.bz2 diff --git a/.rh-maven33-ant-antunit.metadata b/.rh-maven33-ant-antunit.metadata new file mode 100644 index 0000000..d534bba --- /dev/null +++ b/.rh-maven33-ant-antunit.metadata @@ -0,0 +1 @@ +1440445fb17246d3d94f56b61207124c0890af3b SOURCES/apache-ant-antunit-1.2-src.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/ant-antunit.spec b/SPECS/ant-antunit.spec new file mode 100644 index 0000000..1308b38 --- /dev/null +++ b/SPECS/ant-antunit.spec @@ -0,0 +1,175 @@ +%global pkg_name ant-antunit +%{?scl:%scl_package %{pkg_name}} +%{?maven_find_provides_and_requires} + +%global base_name antunit + +Name: %{?scl_prefix}%{pkg_name} +Version: 1.2 +Release: 10.13%{?dist} +Summary: Provide antunit ant task +License: ASL 2.0 +URL: http://ant.apache.org/antlibs/%{base_name}/ +Source0: http://www.apache.org/dist/ant/antlibs/%{base_name}/source/apache-%{pkg_name}-%{version}-src.tar.bz2 +BuildArch: noarch + +BuildRequires: %{?scl_prefix_java_common}javapackages-tools +BuildRequires: %{?scl_prefix_java_common}ant-junit +BuildRequires: %{?scl_prefix_java_common}ant-testutil + +Requires: %{?scl_prefix_java_common}ant + + +%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 %{pkg_name} + +%description javadoc +This package contains the API documentation for %{pkg_name}. + + +%prep +%setup -q -n apache-%{pkg_name}-%{version} +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +mv CONTRIBUTORS CONTRIBUTORS.orig +iconv -f ISO-8859-1 -t UTF-8 CONTRIBUTORS.orig > CONTRIBUTORS +touch -r CONTRIBUTORS.orig CONTRIBUTORS +%{?scl:EOF} + + +%build +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +ant package +%{?scl:EOF} + + +%install +%{?scl:scl enable %{scl} - <<"EOF"} +set -e -x +# jars +install -d -m 0755 %{buildroot}%{_javadir} +install -pm 644 build/lib/%{pkg_name}-%{version}.jar %{buildroot}%{_javadir}/%{pkg_name}.jar + +# pom +install -d -m 755 %{buildroot}%{_mavenpomdir} +install -pm 644 %{pkg_name}-%{version}.pom %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}.pom +%add_maven_depmap JPP-%{pkg_name}.pom %{pkg_name}.jar + +# javadoc +install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}/ + +# OPT_JAR_LIST fragments +mkdir -p %{buildroot}%{_sysconfdir}/%{pkg_name}.d +echo "ant/ant-antunit" > %{buildroot}%{_sysconfdir}/%{pkg_name}.d/antunit +%{?scl:EOF} + + +%files -f .mfiles +%doc CONTRIBUTORS LICENSE NOTICE README README.html WHATSNEW +%dir %{_sysconfdir}/%{pkg_name}.d +%config(noreplace) %{_sysconfdir}/%{pkg_name}.d/antunit + +%files javadoc +%doc LICENSE +%{_javadocdir}/%{name} + + +%changelog +* Mon Feb 08 2016 Michal Srb - 1.2-10.13 +- Fix BR on maven-local & co. + +* Mon Jan 11 2016 Michal Srb - 1.2-10.12 +- maven33 rebuild #2 + +* Sat Jan 09 2016 Michal Srb - 1.2-10.11 +- maven33 rebuild + +* Tue Jan 13 2015 Michael Simacek - 1.2-10.10 +- Mass rebuild 2015-01-13 + +* Mon Jan 12 2015 Michael Simacek - 1.2-10.9 +- BR/R on packages from rh-java-common + +* Tue Jan 06 2015 Michael Simacek - 1.2-10.8 +- Mass rebuild 2015-01-06 + +* Mon May 26 2014 Mikolaj Izdebski - 1.2-10.7 +- Mass rebuild 2014-05-26 + +* Wed Feb 19 2014 Mikolaj Izdebski - 1.2-10.6 +- Mass rebuild 2014-02-19 + +* Tue Feb 18 2014 Mikolaj Izdebski - 1.2-10.5 +- Mass rebuild 2014-02-18 + +* Tue Feb 18 2014 Mikolaj Izdebski - 1.2-10.4 +- Remove requires on java + +* Fri Feb 14 2014 Mikolaj Izdebski - 1.2-10.3 +- SCL-ize requires and build-requires + +* Thu Feb 13 2014 Mikolaj Izdebski - 1.2-10.2 +- Rebuild to regenerate auto-requires + +* Tue Feb 11 2014 Mikolaj Izdebski - 1.2-10.1 +- First maven30 software collection build + +* Fri Dec 27 2013 Daniel Mach - 1.2-10 +- Mass rebuild 2013-12-27 + +* Wed Jul 17 2013 Mikolaj Izdebski - 1.2-9 +- Update to current packaging guidelines + +* Wed Jun 12 2013 Orion Poplawski 1.2-7 +- Update spec for new Java guidelines + +* Wed Feb 13 2013 Fedora Release Engineering - 1.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Jan 22 2013 Mikolaj Izdebski - 1.2-5 +- Remove ppc64 ExcludeArch + +* Wed Jul 18 2012 Fedora Release Engineering - 1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Feb 6 2012 Orion Poplawski 1.2-3 +- Drop junit4 references + +* Thu Jan 12 2012 Fedora Release Engineering - 1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Jan 4 2012 Orion Poplawski 1.2-1 +- Update to 1.2 + +* Mon Feb 07 2011 Fedora Release Engineering - 1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Dec 20 2010 Orion Poplawski 1.1-4 +- ExcludeArch ppc64 - no java >= 1:1.6.0 on ppc64 + +* Mon Dec 6 2010 Orion Poplawski 1.1-3 +- Rename to ant-antunit +- Drop BuildRoot and %%clean +- Drop unneeded Provides + +* Fri Oct 29 2010 Orion Poplawski 1.1-2 +- Add /etc/ant.d/antunit +- Add Requires: ant + +* Thu Oct 28 2010 Orion Poplawski 1.1-1 +- Initial package