a1fb130
%global beta_number b3
Igor Foox 8afbc96
Igor Foox 8afbc96
Summary:        Collection of tasks for Ant
52dca5c
Name:           ant-contrib
Igor Foox 8afbc96
Version:        1.0
fbd50c2
Release:        0.33.%{beta_number}%{?dist}
dd06f6b
License:        ASL 2.0 and ASL 1.1
Igor Foox 8afbc96
URL:            http://ant-contrib.sourceforge.net/
a1fb130
Source0:        https://downloads.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-src.tar.bz2
6c929d9
# ASL 2.0 Licence text
6c929d9
# Upstream bug at https://sourceforge.net/tracker/?func=detail&aid=3590371&group_id=36177&atid=416920
6c929d9
Source2:        http://www.apache.org/licenses/LICENSE-2.0.txt
872eb30
Patch2:         %{name}-antservertest.patch
edfdcb1
BuildRequires:  ivy-local
edfdcb1
BuildRequires:  junit
edfdcb1
BuildRequires:  ant-junit
Igor Foox 8afbc96
BuildRequires:  xerces-j2
edfdcb1
BuildRequires:  bcel
edfdcb1
BuildRequires:  java-devel
a1fb130
BuildRequires:  apache-ivy
ac2e68f
BuildRequires:  jakarta-commons-httpclient
ac2e68f
BuildRequires:  apache-commons-logging
ac2e68f
BuildRequires:  apache-commons-parent
edfdcb1
Requires:       java-headless
edfdcb1
Requires:       junit
edfdcb1
Requires:       ant
Igor Foox 8afbc96
Requires:       xerces-j2
52dca5c
BuildArch:      noarch
Igor Foox 8afbc96
Igor Foox 8afbc96
%description
52dca5c
The Ant-Contrib project is a collection of tasks
52dca5c
(and at one point maybe types and other tools)
Igor Foox 8afbc96
for Apache Ant.
Igor Foox 8afbc96
Igor Foox 8afbc96
%package        javadoc
Igor Foox 8afbc96
Summary:        Javadoc for %{name}
Igor Foox 8afbc96
Group:          Documentation
248b237
Requires:       jpackage-utils
Igor Foox 8afbc96
Igor Foox 8afbc96
%description    javadoc
52dca5c
Api documentation for %{name}.
Igor Foox 8afbc96
Igor Foox 8afbc96
%prep
Igor Foox 8afbc96
%setup -q  -n %{name}
Igor Foox 8afbc96
%patch2
a1fb130
6c929d9
cp %{SOURCE2} LICENSE-2.0.txt
6c929d9
a1fb130
find -name '*.class' -exec rm -f '{}' \;
a1fb130
find -name '*.jar' -exec rm -f '{}' \;
a1fb130
a1fb130
sed -i "s|xercesImpl|xerces-j2|g" ivy.xml
a1fb130
# needs porting to latest ivy
a1fb130
rm -fr src/java/net/sf/antcontrib/net/URLImportTask.java
Igor Foox 8afbc96
edfdcb1
sed -i '/
edfdcb1
rm -f ivy-conf.xml
edfdcb1
edfdcb1
sed -i '/
edfdcb1
%mvn_alias : ant-contrib:
edfdcb1
Igor Foox 8afbc96
%build
edfdcb1
%ant -Divy.mode=local dist
Igor Foox 8afbc96
Igor Foox 8afbc96
%install
edfdcb1
%mvn_artifact ivy.xml target/%{name}.jar
edfdcb1
%mvn_install -J target/docs/api
Igor Foox 8afbc96
b6e5a88
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
Clément DAVID cd67c4a
echo "ant-contrib/ant-contrib" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ant-contrib
b6e5a88
4a25e8b
%files -f .mfiles
b6e5a88
%{_sysconfdir}/ant.d/ant-contrib
6c929d9
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
a1fb130
%doc target/docs/manual/tasks/*
Igor Foox 8afbc96
edfdcb1
%files javadoc -f .mfiles-javadoc
6c929d9
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
Igor Foox 8afbc96
Igor Foox 8afbc96
%changelog
fbd50c2
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.33.b3
fbd50c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fbd50c2
f87a17c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.32.b3
f87a17c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f87a17c
21d01bf
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.31.b3
21d01bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
21d01bf
8b6881f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.30.b3
8b6881f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8b6881f
7458659
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.29.b3
7458659
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7458659
4e25bbf
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.28.b3
4e25bbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4e25bbf
Clément DAVID cd67c4a
* Tue Sep 09 2014 Clément David <c.david86@gmail.com> - 1.0-0.27.b3
Clément DAVID cd67c4a
- Fix incorrect ant.d path.
Clément DAVID cd67c4a
edfdcb1
* Mon Aug 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-0.26.b3
edfdcb1
- Build using XMvn Ivy resolver
edfdcb1
1f56ca9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.25.b3
1f56ca9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1f56ca9
4a25e8b
* Wed May 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-0.24.b3
4a25e8b
- Use .mfiles generated during build
4a25e8b
Stanislav Ochotnicky 59d1e3f
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-0.23.b3
Stanislav Ochotnicky 59d1e3f
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky 59d1e3f
9239ba9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.22.b3
9239ba9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9239ba9
587f008
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.21.b3
587f008
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
587f008
dd06f6b
* Tue Nov 27 2012 Tomas Radej <tradej@redhat.com> - 1.0-0.20.b3
dd06f6b
- Added ASL 1.1 licence to the licence field
dd06f6b
04d62be
* Tue Nov 27 2012 Tomas Radej <tradej@redhat.com> - 1.0-0.19.b3
6c929d9
- Added LICENSE to javadoc (#879349)
6c929d9
- Added ASL 2.0 licence text (#879354)
248b237
- Added requires on jpackage-utils in javadoc (#879356)
04d62be
872eb30
* Tue Nov 13 2012 Tomas Radej <tradej@redhat.com> - 1.0-0.18.b3
872eb30
- Used correct upstream pom + patched it
872eb30
5fb02af
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.17.b3
5fb02af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5fb02af
5784b73
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.16.b3
5784b73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5784b73
a1fb130
* Thu Dec 15 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.15.b3
a1fb130
- Update to beta 3.
a1fb130
b151ce6
* Tue Nov 29 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.14.b2
b151ce6
- Fix pom installed name.
b151ce6
9c3fcaa
* Fri Nov 25 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.13.b2
9c3fcaa
- Adapt to current guidelines.
9c3fcaa
e5e5a0f
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.12.b2
e5e5a0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e5e5a0f
8872adf
* Fri Jan 14 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.11.b2
8872adf
- Add maven pom and depmap.
8872adf
b6e5a88
* Fri Sep 4 2009 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.10.b2
b6e5a88
- Install ant contrib in ant.d.
b6e5a88
52dca5c
* Fri Sep 4 2009 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.9.b2
52dca5c
- Drop gcj_support.
52dca5c
- Install as proper ant plugin.
52dca5c
444f91b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.8.b2
444f91b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
444f91b
af6a491
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.7.b2
af6a491
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
af6a491
c9ad954
* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-0.6.b2
c9ad954
- fix license tag
c9ad954
6a9ce23
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0-0.5.b2
6a9ce23
- Autorebuild for GCC 4.3
6a9ce23
Igor Foox c27bd56
* Sun Aug 03 2006 Igor Foox <ifoox@redhat.com> - 1.0-0.4.b2
Igor Foox c27bd56
- Added dist tag to release.
Igor Foox c27bd56
Igor Foox 8afbc96
* Sat Aug 02 2006 Igor Foox <ifoox@redhat.com> - 1.0-0.3.b2
Igor Foox 8afbc96
- Removed unneccessary 0 epoch from required packages.
Igor Foox 8afbc96
- Fixed dependance on specifically version 3.8.1 of junit.
Igor Foox 8afbc96
Igor Foox 8afbc96
* Tue Jun 27 2006 Igor Foox <ifoox@redhat.com> - 1.0-0.2.b2
Igor Foox 8afbc96
- Removed Class-Path from ant-contrib.jar file.
Igor Foox 8afbc96
- Renamed patches.
Igor Foox 8afbc96
Igor Foox 8afbc96
* Tue Jun 27 2006 Igor Foox <ifoox@redhat.com> - 1.0-0.1.b2
Igor Foox 8afbc96
- Fixed release number to reflect beta status
Igor Foox 8afbc96
- Removed Distribution and Vendor tags
Igor Foox 8afbc96
- Fixed duplication in postun section
Igor Foox 8afbc96
- Removed patch3, and used sed to fix line-endings instead
Igor Foox 8afbc96
Igor Foox 8afbc96
* Tue Jun 27 2006 Igor Foox <ifoox@redhat.com> - 1.0-1.b2
Igor Foox 8afbc96
- Changed release-version to comply with FE standards
Igor Foox 8afbc96
- Consolidated into -manual into main package
Igor Foox 8afbc96
- Removed ghosting of the manual symlink
Igor Foox 8afbc96
- Removed Epoch
Igor Foox 8afbc96
- Run dos2unix over some manual files that have windows line endings
Igor Foox 8afbc96
- Changed group for docs to Documentation
Igor Foox 8afbc96
- Remove unused Source1
Igor Foox 8afbc96
- Set Source0 to valid URL instead of just a file name
Igor Foox 8afbc96
- Fix indentation
Igor Foox 8afbc96
- Remove {push,pop}d and -c from %%setup
Igor Foox 8afbc96
- Changed %%defattr in the %%files section to standard (-,root,root,-)
Igor Foox 8afbc96
Igor Foox 8afbc96
* Thu Jun 1 2006 Igor Foox <ifoox@redhat.com> - 0:1.0b2-1jpp_1fc
Igor Foox 8afbc96
- Update to version 1.0b2
Igor Foox 8afbc96
- Added native compilation
Igor Foox 8afbc96
- Changed BuildRoot to what Extras expects
Igor Foox 8afbc96
Igor Foox 8afbc96
* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> - 0:0.6-4jpp
Igor Foox 8afbc96
- Upgrade to ant-1.6.2
Igor Foox 8afbc96
- BuildReq/Req ant = 0:1.6.2
Igor Foox 8afbc96
- Relax some other requirements
Igor Foox 8afbc96
Igor Foox 8afbc96
* Thu Jun 03 2004 Paul Nasrat <pauln@truemesh.com> - 0:0.6-3jpp
Igor Foox 8afbc96
- Fix missing buildrequires
Igor Foox 8afbc96
Igor Foox 8afbc96
* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 0:0.6-2jpp
Igor Foox 8afbc96
- Upgrade to Ant 1.6.X
Igor Foox 8afbc96
Igor Foox 8afbc96
* Wed Mar 24 2004 Ralph Apel <r.apel at r-apel.de> - 0:0.6-1jpp
Igor Foox 8afbc96
- First JPackage release