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
|
URL: http://javacc.org
|
||||||
Source0: https://github.com/javacc/javacc/archive/%{version}.tar.gz
|
Source0: https://github.com/javacc/javacc/archive/%{version}.tar.gz
|
||||||
BuildRequires: ant
|
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: fdupes
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
# Explicit javapackages-tools requires since scripts use
|
# Explicit javapackages-tools requires since scripts use
|
||||||
# /usr/share/java-utils/java-functions
|
# /usr/share/java-utils/java-functions
|
||||||
Requires: javapackages-tools
|
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
|
Provides: %{base_name}-bootstrap
|
||||||
Obsoletes: %{base_name}-bootstrap
|
Obsoletes: %{base_name}-bootstrap
|
||||||
%endif
|
%endif
|
||||||
@ -85,12 +86,12 @@ rm -f lib/*.jar
|
|||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
rm -f bootstrap/javacc.jar
|
rm -f bootstrap/javacc.jar
|
||||||
build-jar-repository -s -p bootstrap javacc
|
build-jar-repository -s -p bootstrap javacc
|
||||||
%endif
|
|
||||||
|
|
||||||
find ./examples -type f -exec sed -i 's/\r//' {} \;
|
find ./examples -type f -exec sed -i 's/\r//' {} \;
|
||||||
|
|
||||||
# The pom dependencies are wrong
|
# The pom dependencies are wrong
|
||||||
%pom_xpath_remove pom:project/pom:dependencies
|
%pom_xpath_remove pom:project/pom:dependencies
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{ant} \
|
%{ant} \
|
||||||
|
Loading…
Reference in New Issue
Block a user