|
Igor Foox |
8afbc96 |
%define gcj_support 1
|
|
Igor Foox |
8afbc96 |
%define beta_number b2
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
Summary: Collection of tasks for Ant
|
|
Igor Foox |
8afbc96 |
Name: ant-contrib
|
|
Igor Foox |
8afbc96 |
Version: 1.0
|
|
|
444f91b |
Release: 0.8.%{beta_number}%{?dist}
|
|
|
c9ad954 |
License: ASL 2.0
|
|
Igor Foox |
8afbc96 |
URL: http://ant-contrib.sourceforge.net/
|
|
Igor Foox |
8afbc96 |
Group: Development/Libraries
|
|
Igor Foox |
8afbc96 |
Source0: http://prdownloads.sourceforge.net/ant-contrib/ant-contrib-%{version}%{beta_number}-src.tar.gz
|
|
Igor Foox |
8afbc96 |
Patch0: ant-contrib-build_xml.patch
|
|
Igor Foox |
8afbc96 |
Patch2: ant-contrib-antservertest.patch
|
|
Igor Foox |
8afbc96 |
BuildRequires: jpackage-utils >= 1.5
|
|
Igor Foox |
8afbc96 |
BuildRequires: junit >= 3.8.0
|
|
Igor Foox |
8afbc96 |
BuildRequires: ant-junit >= 1.6.2
|
|
Igor Foox |
8afbc96 |
BuildRequires: ant-nodeps >= 1.6.2
|
|
Igor Foox |
8afbc96 |
BuildRequires: xerces-j2
|
|
Igor Foox |
8afbc96 |
BuildRequires: bcel >= 5.0
|
|
Igor Foox |
8afbc96 |
%if %{gcj_support}
|
|
Igor Foox |
8afbc96 |
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
|
Igor Foox |
8afbc96 |
Requires(post): java-gcj-compat >= 1.0.31
|
|
Igor Foox |
8afbc96 |
Requires(postun): java-gcj-compat >= 1.0.31
|
|
Igor Foox |
8afbc96 |
%else
|
|
Igor Foox |
8afbc96 |
BuildRequires: java-devel >= 1.4.2
|
|
Igor Foox |
8afbc96 |
Requires: java >= 1.4.2
|
|
Igor Foox |
8afbc96 |
%endif
|
|
Igor Foox |
8afbc96 |
Requires: junit >= 3.8.0
|
|
Igor Foox |
8afbc96 |
Requires: ant >= 1.6.2
|
|
Igor Foox |
8afbc96 |
Requires: xerces-j2
|
|
Igor Foox |
8afbc96 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%description
|
|
Igor Foox |
8afbc96 |
The Ant-Contrib project is a collection of tasks
|
|
Igor Foox |
8afbc96 |
(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
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%description javadoc
|
|
Igor Foox |
8afbc96 |
%{summary}.
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%prep
|
|
Igor Foox |
8afbc96 |
%setup -q -n %{name}
|
|
Igor Foox |
8afbc96 |
rm -rf test/src/net/sf/antcontrib/antclipse
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%patch0
|
|
Igor Foox |
8afbc96 |
%patch2
|
|
Igor Foox |
8afbc96 |
sed -i "s/\r//" manual/tasks/foreach.html manual/tasks/for.html
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%build
|
|
Igor Foox |
8afbc96 |
export JUNIT_VER=`rpm -q --queryformat='%%{version}' junit`
|
|
Igor Foox |
8afbc96 |
mkdir -p test/lib
|
|
Igor Foox |
8afbc96 |
(cd test/lib
|
|
Igor Foox |
8afbc96 |
ln -s $(find-jar junit-$(JUNIT_VER)) junit-$(JUNIT_VER).jar
|
|
Igor Foox |
8afbc96 |
)
|
|
Igor Foox |
8afbc96 |
export OPT_JAR_LIST="ant/ant-junit junit ant/ant-nodeps"
|
|
Igor Foox |
8afbc96 |
export CLASSPATH=
|
|
Igor Foox |
8afbc96 |
CLASSPATH=build/lib/ant-contrib-%{version}.jar:$CLASSPATH
|
|
Igor Foox |
8afbc96 |
echo $ANT_HOME
|
|
Igor Foox |
8afbc96 |
ant -Dsource=1.4 -Dversion=%{version} -Dbcel.jar=file://%{_javadir}/bcel.jar all
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%install
|
|
Igor Foox |
8afbc96 |
rm -rf $RPM_BUILD_ROOT
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
# jars
|
|
Igor Foox |
8afbc96 |
install -Dpm 644 build/lib/%{name}.jar \
|
|
Igor Foox |
8afbc96 |
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
Igor Foox |
8afbc96 |
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
# javadoc
|
|
Igor Foox |
8afbc96 |
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Igor Foox |
8afbc96 |
cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
Igor Foox |
8afbc96 |
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
|
|
Igor Foox |
8afbc96 |
rm -rf build/docs/api
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%if %{gcj_support}
|
|
Igor Foox |
8afbc96 |
%{_bindir}/aot-compile-rpm
|
|
Igor Foox |
8afbc96 |
%endif
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%clean
|
|
Igor Foox |
8afbc96 |
rm -rf $RPM_BUILD_ROOT
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%post
|
|
Igor Foox |
8afbc96 |
%if %{gcj_support}
|
|
Igor Foox |
8afbc96 |
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
Igor Foox |
8afbc96 |
then
|
|
Igor Foox |
8afbc96 |
%{_bindir}/rebuild-gcj-db
|
|
Igor Foox |
8afbc96 |
fi
|
|
Igor Foox |
8afbc96 |
%endif
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%postun
|
|
Igor Foox |
8afbc96 |
%if %{gcj_support}
|
|
Igor Foox |
8afbc96 |
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
Igor Foox |
8afbc96 |
then
|
|
Igor Foox |
8afbc96 |
%{_bindir}/rebuild-gcj-db
|
|
Igor Foox |
8afbc96 |
fi
|
|
Igor Foox |
8afbc96 |
%endif
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%files
|
|
Igor Foox |
8afbc96 |
%defattr(-,root,root,-)
|
|
Igor Foox |
8afbc96 |
%{_javadir}/*.jar
|
|
Igor Foox |
8afbc96 |
%if %{gcj_support}
|
|
Igor Foox |
8afbc96 |
%{_libdir}/gcj/%{name}
|
|
Igor Foox |
8afbc96 |
%endif
|
|
Igor Foox |
8afbc96 |
%doc build/docs/LICENSE.txt
|
|
Igor Foox |
8afbc96 |
%doc build/docs/tasks/*
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%files javadoc
|
|
Igor Foox |
8afbc96 |
%defattr(-,root,root,-)
|
|
Igor Foox |
8afbc96 |
%doc %{_javadocdir}/%{name}-%{version}
|
|
Igor Foox |
8afbc96 |
%doc %{_javadocdir}/%{name}
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
# -----------------------------------------------------------------------------
|
|
Igor Foox |
8afbc96 |
|
|
Igor Foox |
8afbc96 |
%changelog
|
|
|
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
|