This commit is contained in:
parent
ec30368d47
commit
0ccc239ed4
17
javacc.spec
17
javacc.spec
@ -32,18 +32,19 @@ Group: Development/Libraries/Java
|
||||
URL: http://javacc.org
|
||||
Source0: https://github.com/javacc/javacc/archive/%{version}.tar.gz
|
||||
BuildRequires: ant
|
||||
BuildArch: noarch
|
||||
%if %{with bootstrap}
|
||||
Name: %{base_name}-bootstrap
|
||||
BuildRequires: javapackages-tools
|
||||
Provides: %{base_name}
|
||||
%else
|
||||
Name: %{base_name}
|
||||
BuildRequires: %{base_name}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: javapackages-local
|
||||
# Explicit javapackages-tools requires since scripts use
|
||||
# /usr/share/java-utils/java-functions
|
||||
Requires: javapackages-tools
|
||||
BuildArch: noarch
|
||||
%if %{with bootstrap}
|
||||
Name: %{base_name}-bootstrap
|
||||
Provides: %{base_name}
|
||||
%else
|
||||
Name: %{base_name}
|
||||
BuildRequires: %{base_name}
|
||||
Provides: %{base_name}-bootstrap
|
||||
Obsoletes: %{base_name}-bootstrap
|
||||
%endif
|
||||
@ -85,12 +86,12 @@ rm -f lib/*.jar
|
||||
%if %{without bootstrap}
|
||||
rm -f bootstrap/javacc.jar
|
||||
build-jar-repository -s -p bootstrap javacc
|
||||
%endif
|
||||
|
||||
find ./examples -type f -exec sed -i 's/\r//' {} \;
|
||||
|
||||
# The pom dependencies are wrong
|
||||
%pom_xpath_remove pom:project/pom:dependencies
|
||||
%endif
|
||||
|
||||
%build
|
||||
%{ant} \
|
||||
|
Loading…
Reference in New Issue
Block a user