Compare commits

..

3 Commits

Author SHA1 Message Date
Mikolaj Izdebski
53aec94142 Drop ExclusiveArch Resolves: RHEL-5365 2024-02-11 01:10:06 +00:00
Marián Konček
a70d18dc9b Update to upstream version 1.10.9
Related: RHEL-5365
2024-02-09 21:16:05 +01:00
Adam Samalik
e8ecc93afb re-import sources as agreed with the maintainer 2023-06-29 11:23:06 +02:00
5 changed files with 41 additions and 46 deletions

View File

@ -1 +1 @@
24ceef44b43cd2726c865d0de5168a84a1cb30c7 apache-ant-1.10.7-src.tar.bz2 7760da2f3f5708ee0975caf634df16d5567fffe5 apache-ant-1.10.9-src.tar.bz2

1
.gitignore vendored
View File

@ -19,3 +19,4 @@ apache-ant-1.8.4-src.tar.bz2
/apache-ant-1.10.5-src.tar.bz2 /apache-ant-1.10.5-src.tar.bz2
/apache-ant-1.10.6-src.tar.bz2 /apache-ant-1.10.6-src.tar.bz2
/apache-ant-1.10.7-src.tar.bz2 /apache-ant-1.10.7-src.tar.bz2
/apache-ant-1.10.9-src.tar.bz2

View File

@ -1,5 +1,5 @@
--- apache-ant-1.10.7/build.xml~ 2019-10-31 14:10:07.739864466 +0100 --- build.xml~ 2021-05-17 12:32:48.406394876 +0200
+++ apache-ant-1.10.7/build.xml 2019-10-31 14:10:12.018897830 +0100 +++ build.xml 2021-05-17 12:32:39.990389601 +0200
@@ -145,8 +145,6 @@ @@ -145,8 +145,6 @@
--> -->
<pathelement location="${src.junit}"/> <pathelement location="${src.junit}"/>
@ -9,7 +9,7 @@
</path> </path>
<!-- <!--
@@ -801,7 +799,6 @@ @@ -819,7 +817,6 @@
</metainf> </metainf>
<manifest> <manifest>
<attribute name="Main-Class" value="org.apache.tools.ant.Main"/> <attribute name="Main-Class" value="org.apache.tools.ant.Main"/>
@ -17,9 +17,9 @@
</manifest> </manifest>
</jar> </jar>
@@ -1543,7 +1540,25 @@ @@ -1562,7 +1559,25 @@
maxmemory="1000M" verbose="${javadoc.verbose}"
verbose="${javadoc.verbose}"> additionalparam="${javadoc.doclint.none}">
- <packageset dir="${java.dir}"/> - <packageset dir="${java.dir}"/>
+ <fileset dir="${java.dir}"> + <fileset dir="${java.dir}">

View File

@ -31,14 +31,14 @@
%global ant_home %{_datadir}/ant %global ant_home %{_datadir}/ant
Name: ant Name: ant
Version: 1.10.7 Version: 1.10.9
Release: 2%{?dist} Release: 1%{?dist}
Summary: Java build tool Summary: Java build tool
Summary(it): Tool per la compilazione di programmi java Summary(it): Tool per la compilazione di programmi java
Summary(fr): Outil de compilation pour java Summary(fr): Outil de compilation pour java
License: ASL 2.0 License: ASL 2.0
URL: https://ant.apache.org/ URL: https://ant.apache.org/
Source0: https://www.apache.org/dist/ant/source/apache-ant-%{version}-src.tar.bz2 Source0: https://archive.apache.org/dist/ant/source/apache-ant-%{version}-src.tar.bz2
Source2: apache-ant-1.8.ant.conf Source2: apache-ant-1.8.ant.conf
# manpage # manpage
Source3: ant.asciidoc Source3: ant.asciidoc
@ -62,7 +62,6 @@ BuildRequires: mvn(commons-net:commons-net)
BuildRequires: mvn(javax.mail:mail) BuildRequires: mvn(javax.mail:mail)
BuildRequires: mvn(jdepend:jdepend) BuildRequires: mvn(jdepend:jdepend)
BuildRequires: mvn(junit:junit) BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.13)
BuildRequires: mvn(org.tukaani:xz) BuildRequires: mvn(org.tukaani:xz)
BuildRequires: mvn(oro:oro) BuildRequires: mvn(oro:oro)
BuildRequires: mvn(regexp:regexp) BuildRequires: mvn(regexp:regexp)
@ -197,16 +196,6 @@ Optional apache bcel tasks for %{name}.
%description apache-bcel -l fr %description apache-bcel -l fr
Taches apache bcel optionelles pour %{name}. Taches apache bcel optionelles pour %{name}.
%package apache-log4j
Summary: Optional apache log4j tasks for %{name}
Requires: %{name} = %{version}-%{release}
%description apache-log4j
Optional apache log4j tasks for %{name}.
%description apache-log4j -l fr
Taches apache log4j optionelles pour %{name}.
%package apache-oro %package apache-oro
Summary: Optional apache oro tasks for %{name} Summary: Optional apache oro tasks for %{name}
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
@ -333,7 +322,7 @@ Javadoc pour %{name}.
%prep %prep
%setup -q -n apache-ant-%{version} %setup -q -n apache-ant-%{version}
%patch0 -p1 %patch0 -p0
# clean jar files # clean jar files
find . -name "*.jar" | xargs -t rm find . -name "*.jar" | xargs -t rm
@ -350,7 +339,7 @@ rm src/tests/junit/org/apache/tools/ant/types/selectors/SignedSelectorTest.java
src/tests/junit/org/apache/tools/mail/MailMessageTest.java src/tests/junit/org/apache/tools/mail/MailMessageTest.java
#install jars #install jars
build-jar-repository -s -p lib/optional antlr bcel javamail/mailapi jdepend junit log4j-1 oro regexp bsf commons-logging commons-net jsch xalan-j2 xml-commons-resolver xalan-j2-serializer hamcrest/core hamcrest/library xz-java junit5 opentest4j build-jar-repository -s -p lib/optional antlr bcel javamail/mailapi jdepend junit oro regexp bsf commons-logging commons-net jsch xalan-j2 xml-commons-resolver xalan-j2-serializer hamcrest/core hamcrest/library xz-java junit5 opentest4j
# fix hardcoded paths in ant script and conf # fix hardcoded paths in ant script and conf
cp -p %{SOURCE2} %{name}.conf cp -p %{SOURCE2} %{name}.conf
@ -373,6 +362,11 @@ mv LICENSE.utf8 LICENSE
# We want a hard dep on antlr # We want a hard dep on antlr
%pom_xpath_remove pom:optional src/etc/poms/ant-antlr/pom.xml %pom_xpath_remove pom:optional src/etc/poms/ant-antlr/pom.xml
# Disable tests comparing exception message
sed -i /'public void testFailOnError()'/i@org.junit.Ignore src/tests/junit/org/apache/tools/ant/taskdefs/optional/image/ImageIOTest.java
rm src/main/org/apache/tools/ant/listener/Log4jListener.java
%build %build
%{ant} jars test-jar javadocs %{ant} jars test-jar javadocs
@ -385,6 +379,8 @@ xmlto man man/%{name}.xml -o man
rm -fr build/lib/ant-jai.jar build/lib/ant-netrexx.jar rm -fr build/lib/ant-jai.jar build/lib/ant-netrexx.jar
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
rm -fr build/lib/ant-apache-log4j.jar
%install %install
# ANT_HOME and subdirs # ANT_HOME and subdirs
mkdir -p $RPM_BUILD_ROOT%{ant_home}/{lib,etc,bin} mkdir -p $RPM_BUILD_ROOT%{ant_home}/{lib,etc,bin}
@ -453,7 +449,6 @@ echo "apache-commons-logging ant/ant-commons-logging" > $RPM_BUILD_ROOT%{_syscon
echo "apache-commons-net ant/ant-commons-net" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/commons-net echo "apache-commons-net ant/ant-commons-net" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/commons-net
#echo "jai ant/ant-jai" > $RPM_BUILD_ROOT%%{_sysconfdir}/%%{name}.d/jai #echo "jai ant/ant-jai" > $RPM_BUILD_ROOT%%{_sysconfdir}/%%{name}.d/jai
echo "bcel ant/ant-apache-bcel" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-bcel echo "bcel ant/ant-apache-bcel" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-bcel
echo "log4j12 ant/ant-apache-log4j" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-log4j
echo "oro ant/ant-apache-oro" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-oro echo "oro ant/ant-apache-oro" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-oro
echo "regexp ant/ant-apache-regexp" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-regexp echo "regexp ant/ant-apache-regexp" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-regexp
echo "xalan-j2 xalan-j2-serializer ant/ant-apache-xalan2" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-xalan2 echo "xalan-j2 xalan-j2-serializer ant/ant-apache-xalan2" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-xalan2
@ -543,10 +538,6 @@ export LC_ALL=C.UTF-8
%{ant_home}/lib/%{name}-apache-bcel.jar %{ant_home}/lib/%{name}-apache-bcel.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-bcel %config(noreplace) %{_sysconfdir}/%{name}.d/apache-bcel
%files apache-log4j -f .mfiles-apache-log4j
%{ant_home}/lib/%{name}-apache-log4j.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-log4j
%files apache-oro -f .mfiles-apache-oro %files apache-oro -f .mfiles-apache-oro
%{ant_home}/lib/%{name}-apache-oro.jar %{ant_home}/lib/%{name}-apache-oro.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-oro %config(noreplace) %{_sysconfdir}/%{name}.d/apache-oro
@ -612,6 +603,9 @@ export LC_ALL=C.UTF-8
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
%changelog %changelog
* Tue Jan 30 2024 Marián Konček <mkoncek@redhat.com> - 1.10.9-1
- Update to upstream version 1.10.9
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10.7-2 * Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10.7-2
- Mass rebuild for javapackages-tools 201902 - Mass rebuild for javapackages-tools 201902

View File

@ -1 +1 @@
SHA512 (apache-ant-1.10.7-src.tar.bz2) = 5849e81aa037b9ba7f4e67057a0cde50301d183fc244673c7f11e34997b11d21c33306c07ab820bf60d454afa8ad5b159c3442427c8cb5403896f29ed179b10d SHA512 (apache-ant-1.10.9-src.tar.bz2) = 7a6c96131462dc0e1bcf41e2daa1b129a45d19302f4ee2915bb51c4cf347996fa5f8140f96653b21952decee16816476b8f258f8ad2c094a8305209cebcee4a4