Blame SPECS/ant-contrib.spec

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