Blame SPECS/ant-antunit.spec

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