Alexander Kurtakov a1fb13
%global beta_number b3
Igor Foox 8afbc9
Igor Foox 8afbc9
Summary:        Collection of tasks for Ant
Alexander Kurtakov 52dca5
Name:           ant-contrib
Igor Foox 8afbc9
Version:        1.0
Stanislav Ochotnicky 59d1e3
Release:        0.23.%{beta_number}%{?dist}
Tomas Radej dd06f6
License:        ASL 2.0 and ASL 1.1
Igor Foox 8afbc9
URL:            http://ant-contrib.sourceforge.net/
Igor Foox 8afbc9
Group:          Development/Libraries
Alexander Kurtakov a1fb13
Source0:        https://downloads.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-src.tar.bz2
Alexander Kurtakov a1fb13
Source1:        http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/1.0b3/%{name}-1.0b3.pom
Tomas Radej 6c929d
# ASL 2.0 Licence text
Tomas Radej 6c929d
# Upstream bug at https://sourceforge.net/tracker/?func=detail&aid=3590371&group_id=36177&atid=416920
Tomas Radej 6c929d
Source2:        http://www.apache.org/licenses/LICENSE-2.0.txt
Alexander Kurtakov a1fb13
Patch0:         local-ivy.patch
Tomas Radej 872eb3
Patch2:         %{name}-antservertest.patch
Tomas Radej 872eb3
Patch3:         %{name}-pom.patch
Igor Foox 8afbc9
BuildRequires:  jpackage-utils >= 1.5
Igor Foox 8afbc9
BuildRequires:  junit >= 3.8.0
Igor Foox 8afbc9
BuildRequires:  ant-junit >= 1.6.2
Igor Foox 8afbc9
BuildRequires:  xerces-j2
Igor Foox 8afbc9
BuildRequires:  bcel >= 5.0
Igor Foox 8afbc9
BuildRequires:  java-devel >= 1.4.2
Alexander Kurtakov a1fb13
BuildRequires:  apache-ivy
Stanislav Ochotnicky 59d1e3
Requires:       java-headless >= 1.4.2
Igor Foox 8afbc9
Requires:       junit >= 3.8.0
Igor Foox 8afbc9
Requires:       ant >= 1.6.2
Igor Foox 8afbc9
Requires:       xerces-j2
Alexander Kurtakov 52dca5
BuildArch:      noarch
Igor Foox 8afbc9
Igor Foox 8afbc9
%description
Alexander Kurtakov 52dca5
The Ant-Contrib project is a collection of tasks
Alexander Kurtakov 52dca5
(and at one point maybe types and other tools)
Igor Foox 8afbc9
for Apache Ant.
Igor Foox 8afbc9
Igor Foox 8afbc9
%package        javadoc
Igor Foox 8afbc9
Summary:        Javadoc for %{name}
Igor Foox 8afbc9
Group:          Documentation
Tomas Radej 248b23
Requires:       jpackage-utils
Igor Foox 8afbc9
Igor Foox 8afbc9
%description    javadoc
Alexander Kurtakov 52dca5
Api documentation for %{name}.
Igor Foox 8afbc9
Igor Foox 8afbc9
%prep
Igor Foox 8afbc9
%setup -q  -n %{name}
Alexander Kurtakov a1fb13
%patch0 -b .sav
Igor Foox 8afbc9
%patch2
Alexander Kurtakov a1fb13
Tomas Radej 872eb3
cp %{SOURCE1} %{name}-1.0b3.pom
Tomas Radej 872eb3
%patch3 -p1
Tomas Radej 872eb3
Tomas Radej 6c929d
cp %{SOURCE2} LICENSE-2.0.txt
Tomas Radej 6c929d
Alexander Kurtakov a1fb13
find -name '*.class' -exec rm -f '{}' \;
Alexander Kurtakov a1fb13
find -name '*.jar' -exec rm -f '{}' \;
Alexander Kurtakov a1fb13
Alexander Kurtakov a1fb13
sed -i "s|xercesImpl|xerces-j2|g" ivy.xml
Alexander Kurtakov a1fb13
# needs porting to latest ivy
Alexander Kurtakov a1fb13
rm -fr src/java/net/sf/antcontrib/net/URLImportTask.java
Igor Foox 8afbc9
Igor Foox 8afbc9
%build
Alexander Kurtakov a1fb13
ant dist
Igor Foox 8afbc9
Igor Foox 8afbc9
%install
Igor Foox 8afbc9
# jars
Alexander Kurtakov a1fb13
install -Dpm 644 target/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{name}.jar
Igor Foox 8afbc9
Igor Foox 8afbc9
# javadoc
Alexander Kurtakov 9c3fca
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Alexander Kurtakov a1fb13
cp -pr target/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Igor Foox 8afbc9
Alexander Kurtakov b6e5a8
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
Alexander Kurtakov b6e5a8
echo "ant/ant-contrib" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ant-contrib
Alexander Kurtakov b6e5a8
Alexander Kurtakov 8872ad
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
Tomas Radej 872eb3
install -pm 644 %{name}-1.0b3.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.ant-%{name}.pom
Alexander Kurtakov 8872ad
Alexander Kurtakov b151ce
%add_maven_depmap JPP.ant-%{name}.pom ant/%{name}.jar
Igor Foox 8afbc9
Igor Foox 8afbc9
%files
Alexander Kurtakov b6e5a8
%{_sysconfdir}/ant.d/ant-contrib
Alexander Kurtakov 52dca5
%{_javadir}/ant/*.jar
Alexander Kurtakov 8872ad
%{_mavenpomdir}/*
Alexander Kurtakov 9c3fca
%{_mavendepmapfragdir}/*
Tomas Radej 6c929d
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
Alexander Kurtakov a1fb13
%doc target/docs/manual/tasks/*
Igor Foox 8afbc9
Igor Foox 8afbc9
%files javadoc
Tomas Radej 6c929d
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
Igor Foox 8afbc9
%doc %{_javadocdir}/%{name}
Igor Foox 8afbc9
Igor Foox 8afbc9
%changelog
Stanislav Ochotnicky 59d1e3
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-0.23.b3
Stanislav Ochotnicky 59d1e3
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky 59d1e3
Dennis Gilmore 9239ba
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.22.b3
Dennis Gilmore 9239ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Dennis Gilmore 9239ba
Dennis Gilmore 587f00
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.21.b3
Dennis Gilmore 587f00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Dennis Gilmore 587f00
Tomas Radej dd06f6
* Tue Nov 27 2012 Tomas Radej <tradej@redhat.com> - 1.0-0.20.b3
Tomas Radej dd06f6
- Added ASL 1.1 licence to the licence field
Tomas Radej dd06f6
Tomas Radej 04d62b
* Tue Nov 27 2012 Tomas Radej <tradej@redhat.com> - 1.0-0.19.b3
Tomas Radej 6c929d
- Added LICENSE to javadoc (#879349)
Tomas Radej 6c929d
- Added ASL 2.0 licence text (#879354)
Tomas Radej 248b23
- Added requires on jpackage-utils in javadoc (#879356)
Tomas Radej 04d62b
Tomas Radej 872eb3
* Tue Nov 13 2012 Tomas Radej <tradej@redhat.com> - 1.0-0.18.b3
Tomas Radej 872eb3
- Used correct upstream pom + patched it
Tomas Radej 872eb3
Dennis Gilmore 5fb02a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.17.b3
Dennis Gilmore 5fb02a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore 5fb02a
Dennis Gilmore 5784b7
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.16.b3
Dennis Gilmore 5784b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Dennis Gilmore 5784b7
Alexander Kurtakov a1fb13
* Thu Dec 15 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.15.b3
Alexander Kurtakov a1fb13
- Update to beta 3.
Alexander Kurtakov a1fb13
Alexander Kurtakov b151ce
* Tue Nov 29 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.14.b2
Alexander Kurtakov b151ce
- Fix pom installed name.
Alexander Kurtakov b151ce
Alexander Kurtakov 9c3fca
* Fri Nov 25 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.13.b2
Alexander Kurtakov 9c3fca
- Adapt to current guidelines.
Alexander Kurtakov 9c3fca
Dennis Gilmore e5e5a0
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.12.b2
Dennis Gilmore e5e5a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore e5e5a0
Alexander Kurtakov 8872ad
* Fri Jan 14 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.11.b2
Alexander Kurtakov 8872ad
- Add maven pom and depmap.
Alexander Kurtakov 8872ad
Alexander Kurtakov b6e5a8
* Fri Sep 4 2009 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.10.b2
Alexander Kurtakov b6e5a8
- Install ant contrib in ant.d.
Alexander Kurtakov b6e5a8
Alexander Kurtakov 52dca5
* Fri Sep 4 2009 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.9.b2
Alexander Kurtakov 52dca5
- Drop gcj_support.
Alexander Kurtakov 52dca5
- Install as proper ant plugin.
Alexander Kurtakov 52dca5
Jesse Keating 444f91
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.8.b2
Jesse Keating 444f91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating 444f91
Jesse Keating af6a49
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.7.b2
Jesse Keating af6a49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating af6a49
Tom Callaway c9ad95
* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.6.b2
Tom Callaway c9ad95
- fix license tag
Tom Callaway c9ad95
Jesse Keating 6a9ce2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0-0.5.b2
Jesse Keating 6a9ce2
- Autorebuild for GCC 4.3
Jesse Keating 6a9ce2
Igor Foox c27bd5
* Sun Aug 03 2006 Igor Foox <ifoox@redhat.com> - 1.0-0.4.b2
Igor Foox c27bd5
- Added dist tag to release.
Igor Foox c27bd5
Igor Foox 8afbc9
* Sat Aug 02 2006 Igor Foox <ifoox@redhat.com> - 1.0-0.3.b2
Igor Foox 8afbc9
- Removed unneccessary 0 epoch from required packages.
Igor Foox 8afbc9
- Fixed dependance on specifically version 3.8.1 of junit.
Igor Foox 8afbc9
Igor Foox 8afbc9
* Tue Jun 27 2006 Igor Foox <ifoox@redhat.com> - 1.0-0.2.b2
Igor Foox 8afbc9
- Removed Class-Path from ant-contrib.jar file.
Igor Foox 8afbc9
- Renamed patches.
Igor Foox 8afbc9
Igor Foox 8afbc9
* Tue Jun 27 2006 Igor Foox <ifoox@redhat.com> - 1.0-0.1.b2
Igor Foox 8afbc9
- Fixed release number to reflect beta status
Igor Foox 8afbc9
- Removed Distribution and Vendor tags
Igor Foox 8afbc9
- Fixed duplication in postun section
Igor Foox 8afbc9
- Removed patch3, and used sed to fix line-endings instead
Igor Foox 8afbc9
Igor Foox 8afbc9
* Tue Jun 27 2006 Igor Foox <ifoox@redhat.com> - 1.0-1.b2
Igor Foox 8afbc9
- Changed release-version to comply with FE standards
Igor Foox 8afbc9
- Consolidated into -manual into main package
Igor Foox 8afbc9
- Removed ghosting of the manual symlink
Igor Foox 8afbc9
- Removed Epoch
Igor Foox 8afbc9
- Run dos2unix over some manual files that have windows line endings
Igor Foox 8afbc9
- Changed group for docs to Documentation
Igor Foox 8afbc9
- Remove unused Source1
Igor Foox 8afbc9
- Set Source0 to valid URL instead of just a file name
Igor Foox 8afbc9
- Fix indentation
Igor Foox 8afbc9
- Remove {push,pop}d and -c from %%setup
Igor Foox 8afbc9
- Changed %%defattr in the %%files section to standard (-,root,root,-)
Igor Foox 8afbc9
Igor Foox 8afbc9
* Thu Jun 1 2006 Igor Foox <ifoox@redhat.com> - 0:1.0b2-1jpp_1fc
Igor Foox 8afbc9
- Update to version 1.0b2
Igor Foox 8afbc9
- Added native compilation
Igor Foox 8afbc9
- Changed BuildRoot to what Extras expects
Igor Foox 8afbc9
Igor Foox 8afbc9
* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> - 0:0.6-4jpp
Igor Foox 8afbc9
- Upgrade to ant-1.6.2
Igor Foox 8afbc9
- BuildReq/Req ant = 0:1.6.2
Igor Foox 8afbc9
- Relax some other requirements
Igor Foox 8afbc9
Igor Foox 8afbc9
* Thu Jun 03 2004 Paul Nasrat <pauln@truemesh.com> - 0:0.6-3jpp
Igor Foox 8afbc9
- Fix missing buildrequires
Igor Foox 8afbc9
Igor Foox 8afbc9
* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 0:0.6-2jpp
Igor Foox 8afbc9
- Upgrade to Ant 1.6.X
Igor Foox 8afbc9
Igor Foox 8afbc9
* Wed Mar 24 2004 Ralph Apel <r.apel at r-apel.de> - 0:0.6-1jpp
Igor Foox 8afbc9
- First JPackage release