Compare commits

..

No commits in common. "rawhide" and "f42" have entirely different histories.

2 changed files with 17 additions and 9 deletions

View file

@ -20,11 +20,9 @@ Patch: %{name}-%{version}-configure-c99.patch
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: ant-openjdk25
BuildRequires: javapackages-local-openjdk25
# TODO Remove in Fedora 46
Obsoletes: %{name}-javadoc < 2.7.7-86
BuildRequires: ant
BuildRequires: java-devel
BuildRequires: javapackages-local
%description
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
@ -52,6 +50,13 @@ BuildArch: noarch
%description manual
Documentation for %{name}.
%package javadoc
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
Javadoc for %{name}.
%package C++
Summary: C++ bindings for antlr2 generated parsers
Provides: antlr-static = %{version}-%{release}
@ -71,7 +76,7 @@ sed -i 's/\r//' LICENSE.txt
%mvn_file %{name}:%{name} %{name}
%build
ant jar
ant -Dj2se.apidoc=%{_javadocdir}/java
# make expects to find it here
cp work/lib/antlr.jar .
export CLASSPATH=.
@ -88,7 +93,7 @@ chmod 0644 doc/*
# jars, POM and depmap
%mvn_artifact %{SOURCE3} work/lib/%{name}.jar
%mvn_alias %{name}:%{name} %{name}:%{name}all
%mvn_install
%mvn_install -J work/api
mkdir -p $RPM_BUILD_ROOT{%{_includedir}/%{name},%{_libdir},%{_bindir}}
@ -117,5 +122,8 @@ install -p -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir}
%license LICENSE.txt
%doc doc/*
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog
%autochangelog

View file

@ -1,7 +1,7 @@
summary: Run javapackages-specific tests
discover:
how: fmf
url: https://gitlab.com/redhat/centos-stream/tests/javapackages.git
ref: f43
url: https://src.fedoraproject.org/tests/javapackages
ref: f42
execute:
how: tmt