|
|
af2ef5 |
%global base_name antunit
|
|
|
af2ef5 |
|
|
|
af2ef5 |
Name: ant-%{base_name}
|
|
|
af2ef5 |
Version: 1.2
|
|
|
af2ef5 |
Release: 10%{?dist}
|
|
|
af2ef5 |
Summary: Provide antunit ant task
|
|
|
af2ef5 |
Group: Development/Libraries
|
|
|
af2ef5 |
License: ASL 2.0
|
|
|
af2ef5 |
URL: http://ant.apache.org/antlibs/%{base_name}/
|
|
|
af2ef5 |
Source0: http://www.apache.org/dist/ant/antlibs/%{base_name}/source/apache-%{name}-%{version}-src.tar.bz2
|
|
|
af2ef5 |
BuildArch: noarch
|
|
|
af2ef5 |
|
|
|
af2ef5 |
BuildRequires: java-devel >= 1:1.6.0
|
|
|
af2ef5 |
BuildRequires: jpackage-utils
|
|
|
af2ef5 |
BuildRequires: ant-junit
|
|
|
af2ef5 |
BuildRequires: ant-testutil
|
|
|
af2ef5 |
|
|
|
af2ef5 |
Requires: java >= 1:1.6.0
|
|
|
af2ef5 |
Requires: jpackage-utils
|
|
|
af2ef5 |
Requires: ant
|
|
|
af2ef5 |
|
|
|
af2ef5 |
|
|
|
af2ef5 |
%description
|
|
|
af2ef5 |
The <antunit> task drives the tests much like <junit> does for JUnit tests.
|
|
|
af2ef5 |
|
|
|
af2ef5 |
When called on a build file, the task will start a new Ant project for that
|
|
|
af2ef5 |
build file and scan for targets with names that start with "test". For each
|
|
|
af2ef5 |
such target it then will:
|
|
|
af2ef5 |
|
|
|
af2ef5 |
1. Execute the target named setUp, if there is one.
|
|
|
af2ef5 |
2. Execute the target itself - if this target depends on other targets the
|
|
|
af2ef5 |
normal Ant rules apply and the dependent targets are executed first.
|
|
|
af2ef5 |
3. Execute the target names tearDown, if there is one.
|
|
|
af2ef5 |
|
|
|
af2ef5 |
|
|
|
af2ef5 |
%package javadoc
|
|
|
af2ef5 |
Summary: Javadoc for %{name}
|
|
|
af2ef5 |
|
|
|
af2ef5 |
%description javadoc
|
|
|
af2ef5 |
This package contains the API documentation for %{name}.
|
|
|
af2ef5 |
|
|
|
af2ef5 |
|
|
|
af2ef5 |
%prep
|
|
|
af2ef5 |
%setup -q -n apache-%{name}-%{version}
|
|
|
af2ef5 |
mv CONTRIBUTORS CONTRIBUTORS.orig
|
|
|
af2ef5 |
iconv -f ISO-8859-1 -t UTF-8 CONTRIBUTORS.orig > CONTRIBUTORS
|
|
|
af2ef5 |
touch -r CONTRIBUTORS.orig CONTRIBUTORS
|
|
|
af2ef5 |
|
|
|
af2ef5 |
|
|
|
af2ef5 |
%build
|
|
|
af2ef5 |
ant package
|
|
|
af2ef5 |
|
|
|
af2ef5 |
|
|
|
af2ef5 |
%install
|
|
|
af2ef5 |
# jars
|
|
|
af2ef5 |
install -d -m 0755 %{buildroot}%{_javadir}
|
|
|
af2ef5 |
install -pm 644 build/lib/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
af2ef5 |
|
|
|
af2ef5 |
# pom
|
|
|
af2ef5 |
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
af2ef5 |
install -pm 644 %{name}-%{version}.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
af2ef5 |
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
|
af2ef5 |
|
|
|
af2ef5 |
# javadoc
|
|
|
af2ef5 |
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
af2ef5 |
cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}/
|
|
|
af2ef5 |
|
|
|
af2ef5 |
# OPT_JAR_LIST fragments
|
|
|
af2ef5 |
mkdir -p %{buildroot}%{_sysconfdir}/%{name}.d
|
|
|
af2ef5 |
echo "ant/ant-antunit" > %{buildroot}%{_sysconfdir}/%{name}.d/antunit
|
|
|
af2ef5 |
|
|
|
af2ef5 |
|
|
|
af2ef5 |
%files -f .mfiles
|
|
|
af2ef5 |
%doc CONTRIBUTORS LICENSE NOTICE README README.html WHATSNEW
|
|
|
af2ef5 |
%config(noreplace) %{_sysconfdir}/%{name}.d/antunit
|
|
|
af2ef5 |
|
|
|
af2ef5 |
%files javadoc
|
|
|
af2ef5 |
%doc LICENSE
|
|
|
af2ef5 |
%{_javadocdir}/%{name}
|
|
|
af2ef5 |
|
|
|
af2ef5 |
|
|
|
af2ef5 |
%changelog
|
|
|
af2ef5 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2-10
|
|
|
af2ef5 |
- Mass rebuild 2013-12-27
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Wed Jul 17 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-9
|
|
|
af2ef5 |
- Update to current packaging guidelines
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Wed Jun 12 2013 Orion Poplawski <orion@cora.nwra.com> 1.2-7
|
|
|
af2ef5 |
- Update spec for new Java guidelines
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
|
|
|
af2ef5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Tue Jan 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-5
|
|
|
af2ef5 |
- Remove ppc64 ExcludeArch
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
|
|
|
af2ef5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Mon Feb 6 2012 Orion Poplawski <orion@cora.nwra.com> 1.2-3
|
|
|
af2ef5 |
- Drop junit4 references
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
|
|
|
af2ef5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Wed Jan 4 2012 Orion Poplawski <orion@cora.nwra.com> 1.2-1
|
|
|
af2ef5 |
- Update to 1.2
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
|
|
|
af2ef5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Mon Dec 20 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-4
|
|
|
af2ef5 |
- ExcludeArch ppc64 - no java >= 1:1.6.0 on ppc64
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Mon Dec 6 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-3
|
|
|
af2ef5 |
- Rename to ant-antunit
|
|
|
af2ef5 |
- Drop BuildRoot and %%clean
|
|
|
af2ef5 |
- Drop unneeded Provides
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Fri Oct 29 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-2
|
|
|
af2ef5 |
- Add /etc/ant.d/antunit
|
|
|
af2ef5 |
- Add Requires: ant
|
|
|
af2ef5 |
|
|
|
af2ef5 |
* Thu Oct 28 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-1
|
|
|
af2ef5 |
- Initial package
|