Blame SPECS/ant-antunit.spec

5ca66b
%global pkg_name ant-antunit
5ca66b
%{?scl:%scl_package %{pkg_name}}
5ca66b
%{?maven_find_provides_and_requires}
5ca66b
5ca66b
%global base_name       antunit
5ca66b
5ca66b
Name:             %{?scl_prefix}%{pkg_name}
5ca66b
Version:          1.2
5ca66b
Release:          10.13%{?dist}
5ca66b
Summary:          Provide antunit ant task
5ca66b
License:          ASL 2.0
5ca66b
URL:              http://ant.apache.org/antlibs/%{base_name}/
5ca66b
Source0:          http://www.apache.org/dist/ant/antlibs/%{base_name}/source/apache-%{pkg_name}-%{version}-src.tar.bz2
5ca66b
BuildArch:        noarch
5ca66b
5ca66b
BuildRequires:    %{?scl_prefix_java_common}javapackages-tools
5ca66b
BuildRequires:    %{?scl_prefix_java_common}ant-junit
5ca66b
BuildRequires:    %{?scl_prefix_java_common}ant-testutil
5ca66b
5ca66b
Requires:         %{?scl_prefix_java_common}ant
5ca66b
5ca66b
5ca66b
%description
5ca66b
The <antunit> task drives the tests much like <junit> does for JUnit tests.
5ca66b
5ca66b
When called on a build file, the task will start a new Ant project for that
5ca66b
build file and scan for targets with names that start with "test". For each
5ca66b
such target it then will:
5ca66b
5ca66b
   1. Execute the target named setUp, if there is one.
5ca66b
   2. Execute the target itself - if this target depends on other targets the
5ca66b
      normal Ant rules apply and the dependent targets are executed first.
5ca66b
   3. Execute the target names tearDown, if there is one.
5ca66b
5ca66b
5ca66b
%package javadoc
5ca66b
Summary:          Javadoc for %{pkg_name}
5ca66b
5ca66b
%description javadoc
5ca66b
This package contains the API documentation for %{pkg_name}.
5ca66b
5ca66b
5ca66b
%prep
5ca66b
%setup -q -n apache-%{pkg_name}-%{version}
5ca66b
%{?scl:scl enable %{scl} - <<"EOF"}
5ca66b
set -e -x
5ca66b
mv CONTRIBUTORS CONTRIBUTORS.orig
5ca66b
iconv -f ISO-8859-1 -t UTF-8 CONTRIBUTORS.orig > CONTRIBUTORS
5ca66b
touch -r CONTRIBUTORS.orig CONTRIBUTORS
5ca66b
%{?scl:EOF}
5ca66b
5ca66b
5ca66b
%build
5ca66b
%{?scl:scl enable %{scl} - <<"EOF"}
5ca66b
set -e -x
5ca66b
ant package
5ca66b
%{?scl:EOF}
5ca66b
5ca66b
5ca66b
%install
5ca66b
%{?scl:scl enable %{scl} - <<"EOF"}
5ca66b
set -e -x
5ca66b
# jars
5ca66b
install -d -m 0755 %{buildroot}%{_javadir}
5ca66b
install -pm 644 build/lib/%{pkg_name}-%{version}.jar %{buildroot}%{_javadir}/%{pkg_name}.jar
5ca66b
5ca66b
# pom
5ca66b
install -d -m 755 %{buildroot}%{_mavenpomdir}
5ca66b
install -pm 644 %{pkg_name}-%{version}.pom %{buildroot}%{_mavenpomdir}/JPP-%{pkg_name}.pom
5ca66b
%add_maven_depmap JPP-%{pkg_name}.pom %{pkg_name}.jar
5ca66b
5ca66b
# javadoc
5ca66b
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
5ca66b
cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}/
5ca66b
5ca66b
# OPT_JAR_LIST fragments
5ca66b
mkdir -p %{buildroot}%{_sysconfdir}/%{pkg_name}.d
5ca66b
echo "ant/ant-antunit" > %{buildroot}%{_sysconfdir}/%{pkg_name}.d/antunit
5ca66b
%{?scl:EOF}
5ca66b
5ca66b
5ca66b
%files -f .mfiles
5ca66b
%doc CONTRIBUTORS LICENSE NOTICE README README.html WHATSNEW
5ca66b
%dir %{_sysconfdir}/%{pkg_name}.d
5ca66b
%config(noreplace) %{_sysconfdir}/%{pkg_name}.d/antunit
5ca66b
5ca66b
%files javadoc
5ca66b
%doc LICENSE
5ca66b
%{_javadocdir}/%{name}
5ca66b
5ca66b
5ca66b
%changelog
5ca66b
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 1.2-10.13
5ca66b
- Fix BR on maven-local & co.
5ca66b
5ca66b
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 1.2-10.12
5ca66b
- maven33 rebuild #2
5ca66b
5ca66b
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 1.2-10.11
5ca66b
- maven33 rebuild
5ca66b
5ca66b
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 1.2-10.10
5ca66b
- Mass rebuild 2015-01-13
5ca66b
5ca66b
* Mon Jan 12 2015 Michael Simacek <msimacek@redhat.com> - 1.2-10.9
5ca66b
- BR/R on packages from rh-java-common
5ca66b
5ca66b
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 1.2-10.8
5ca66b
- Mass rebuild 2015-01-06
5ca66b
5ca66b
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-10.7
5ca66b
- Mass rebuild 2014-05-26
5ca66b
5ca66b
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-10.6
5ca66b
- Mass rebuild 2014-02-19
5ca66b
5ca66b
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-10.5
5ca66b
- Mass rebuild 2014-02-18
5ca66b
5ca66b
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-10.4
5ca66b
- Remove requires on java
5ca66b
5ca66b
* Fri Feb 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-10.3
5ca66b
- SCL-ize requires and build-requires
5ca66b
5ca66b
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-10.2
5ca66b
- Rebuild to regenerate auto-requires
5ca66b
5ca66b
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-10.1
5ca66b
- First maven30 software collection build
5ca66b
5ca66b
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2-10
5ca66b
- Mass rebuild 2013-12-27
5ca66b
5ca66b
* Wed Jul 17 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-9
5ca66b
- Update to current packaging guidelines
5ca66b
5ca66b
* Wed Jun 12 2013 Orion Poplawski <orion@cora.nwra.com> 1.2-7
5ca66b
- Update spec for new Java guidelines
5ca66b
5ca66b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
5ca66b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5ca66b
5ca66b
* Tue Jan 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-5
5ca66b
- Remove ppc64 ExcludeArch
5ca66b
5ca66b
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
5ca66b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5ca66b
5ca66b
* Mon Feb 6 2012 Orion Poplawski <orion@cora.nwra.com> 1.2-3
5ca66b
- Drop junit4 references
5ca66b
5ca66b
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
5ca66b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5ca66b
5ca66b
* Wed Jan 4 2012 Orion Poplawski <orion@cora.nwra.com> 1.2-1
5ca66b
- Update to 1.2
5ca66b
5ca66b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
5ca66b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5ca66b
5ca66b
* Mon Dec 20 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-4
5ca66b
- ExcludeArch ppc64 - no java >= 1:1.6.0 on ppc64
5ca66b
5ca66b
* Mon Dec 6 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-3
5ca66b
- Rename to ant-antunit
5ca66b
- Drop BuildRoot and %%clean
5ca66b
- Drop unneeded Provides
5ca66b
5ca66b
* Fri Oct 29 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-2
5ca66b
- Add /etc/ant.d/antunit
5ca66b
- Add Requires: ant
5ca66b
5ca66b
* Thu Oct 28 2010 Orion Poplawski <orion@cora.nwra.com> 1.1-1
5ca66b
- Initial package