%global base_name antunit Name: ant-%{base_name} Version: 1.3 Release: %mkrel 6 Summary: Provide antunit ant task Group: Development/Java License: ASL 2.0 URL: http://ant.apache.org/antlibs/%{base_name}/ Source0: http://www.apache.org/dist/ant/antlibs/%{base_name}/source/apache-%{name}-%{version}-src.tar.bz2 BuildArch: noarch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: ant-junit BuildRequires: ant-testutil Requires: java-headless >= 1:1.6.0 Requires: jpackage-utils Requires: ant %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 # jars install -d -m 0755 %{buildroot}%{_javadir}/ant install -pm 644 build/lib/%{name}-%{version}.jar %{buildroot}%{_javadir}/ant/%{name}.jar install -d -m 0755 %{buildroot}%{_datadir}/ant/lib ln -s ../../java/ant/%{name}.jar %{buildroot}%{_datadir}/ant/lib # pom install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 %{name}-%{version}.pom %{buildroot}%{_mavenpomdir}/JPP.ant-%{name}.pom %add_maven_depmap JPP.ant-%{name}.pom ant/%{name}.jar # javadoc install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}/ # OPT_JAR_LIST fragments mkdir -p %{buildroot}%{_sysconfdir}/ant.d echo "%{base_name} ant/%{name}" > %{buildroot}%{_sysconfdir}/ant.d/%{base_name} %files -f .mfiles %doc CONTRIBUTORS LICENSE NOTICE README README.html WHATSNEW %config(noreplace) %{_sysconfdir}/ant.d/%{base_name} %{_datadir}/ant/lib/%{name}.jar %files javadoc %doc LICENSE %{_javadocdir}/%{name} %changelog * Wed Mar 02 2016 neoclust <neoclust> 1.3-6.mga6 + Revision: 982433 - Second rebuild of the java stack * Sun Feb 21 2016 neoclust <neoclust> 1.3-5.mga6 + Revision: 975439 - First rebuild of the java stack - sync package ant-antunit with fedora - imported package ant-antunit * Tue Feb 09 2016 umeabot <umeabot> 1.3-2.mga6 + Revision: 951479 - Mageia 6 Mass Rebuild * Wed Dec 31 2014 pterjan <pterjan> 1.3-1.mga5 + Revision: 807654 - Sync with Fedora 21 (update to 1.3) * Wed Oct 15 2014 umeabot <umeabot> 1.2-4.mga5 + Revision: 750707 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.2-3.mga5 + Revision: 677770 - Mageia 5 Mass Rebuild * Mon Oct 21 2013 umeabot <umeabot> 1.2-2.mga4 + Revision: 538187 - Mageia 4 Mass Rebuild * Sun Sep 29 2013 dmorgan <dmorgan> 1.2-1.mga4 + Revision: 488979 - New version * Fri Jan 11 2013 umeabot <umeabot> 1.1-4.mga3 + Revision: 345585 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Dec 04 2012 dmorgan <dmorgan> 1.1-3.mga3 + Revision: 326631 - Build with Java7 * Sun Oct 28 2012 dmorgan <dmorgan> 1.1-2.mga3 + Revision: 311255 - Java Stack Mass Rebuild * Tue Aug 02 2011 gil <gil> 1.1-1.mga2 + Revision: 131328 - edit spec file used new JP macro * Fri Jun 10 2011 gil <gil> 1.1-0.mga2 + Revision: 102791 - imported package ant-antunit * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 22 2014 Orion Poplawski <orion@cora.nwra.com> 1.3-1 - Update to 1.3 * Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-13 - Use Requires: java-headless rebuild (#1067528) * Thu Aug 15 2013 Orion Poplawski <orion@cora.nwra.com> 1.2-12 - Another attempt at fixing the install * Thu Aug 15 2013 Orion Poplawski <orion@cora.nwra.com> 1.2-11 - Fix install locations (bug 988561) * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-9 - Update to current packaging guidelines * Wed Jun 12 2013 Orion Poplawski <orion@cora.nwra.com> 1.2-7 - Update spec for new Java guidelines * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Jan 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-5 - Remove ppc64 ExcludeArch * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Feb 6 2012 Orion Poplawski <orion@cora.nwra.com> 1.2-3 - Drop junit4 references * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Jan 4 2012 Orion Poplawski <orion@cora.nwra.com> 1.2-1 - Update to 1.2 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Dec 20 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-4 - ExcludeArch ppc64 - no java >= 1:1.6.0 on ppc64 * Mon Dec 6 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-3 - Rename to ant-antunit - Drop BuildRoot and %%clean - Drop unneeded Provides * Fri Oct 29 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-2 - Add /etc/ant.d/antunit - Add Requires: ant * Thu Oct 28 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-1 - Initial package