Conditionally build without jna
This commit is contained in:
parent
b01c1fe00f
commit
089d5fcb15
17
bcel.spec
17
bcel.spec
@ -1,6 +1,8 @@
|
||||
%bcond_without jna
|
||||
|
||||
Name: bcel
|
||||
Version: 6.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Epoch: 0
|
||||
Summary: Byte Code Engineering Library
|
||||
License: ASL 2.0
|
||||
@ -10,12 +12,14 @@ Source0: http://archive.apache.org/dist/commons/bcel/source/bcel-%{versio
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
%if %{with jna}
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(net.java.dev.jna:jna)
|
||||
BuildRequires: mvn(net.java.dev.jna:jna-platform)
|
||||
BuildRequires: mvn(org.apache.commons:commons-lang3)
|
||||
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
%endif
|
||||
|
||||
%description
|
||||
The Byte Code Engineering Library (formerly known as JavaClass) is
|
||||
@ -63,7 +67,11 @@ sed -i '\|lib/dt\.jar|s|javaHome|javaHome.substring(0, javaHome.length() - 4)|'
|
||||
src/test/java/org/apache/bcel/PerformanceTest.java
|
||||
|
||||
%build
|
||||
%if %{without jna}
|
||||
%mvn_build -f
|
||||
%else
|
||||
%mvn_build
|
||||
%endif
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
@ -76,6 +84,9 @@ sed -i '\|lib/dt\.jar|s|javaHome|javaHome.substring(0, javaHome.length() - 4)|'
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
|
||||
%changelog
|
||||
* Fri Sep 22 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:6.1-2
|
||||
- Conditionally build without jna
|
||||
|
||||
* Tue Sep 19 2017 Michael Simacek <msimacek@redhat.com> - 0:6.1-1
|
||||
- Update to upstream version 6.1
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user