Blame SPECS/ant-contrib.spec

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