Blame SPECS/ant-antunit.spec

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