Compare commits
8 Commits
master
...
master-ris
Author | SHA1 | Date |
---|---|---|
David Abdurachmanov | 07791f7dbc | |
David Abdurachmanov | 65c2d6762b | |
David Abdurachmanov | 8eb16a4cfe | |
David Abdurachmanov | 4f78b5453e | |
David Abdurachmanov | 2d86c76e0a | |
David Abdurachmanov | 3aee0e6c62 | |
David Abdurachmanov | 655cc8d61c | |
David Abdurachmanov | 2286d99952 |
|
@ -1,14 +1,18 @@
|
|||
# Build -python subpackage
|
||||
%bcond_without python
|
||||
# Build -java subpackage
|
||||
%ifnarch riscv64
|
||||
%bcond_without java
|
||||
%else
|
||||
%bcond_with java
|
||||
%endif
|
||||
|
||||
#global rcver rc2
|
||||
|
||||
Summary: Protocol Buffers - Google's data interchange format
|
||||
Name: protobuf
|
||||
Version: 3.11.4
|
||||
Release: 1%{?dist}
|
||||
Release: 1.0.riscv64%{?dist}
|
||||
License: BSD
|
||||
URL: https://github.com/protocolbuffers/protobuf
|
||||
Source: https://github.com/protocolbuffers/protobuf/archive/v%{version}%{?rcver}/%{name}-%{version}%{?rcver}-all.tar.gz
|
||||
|
@ -215,7 +219,7 @@ rm -r java/util/src/main/java/com/google/protobuf/util
|
|||
|
||||
# This test is incredibly slow on arm
|
||||
# https://github.com/google/protobuf/issues/2389
|
||||
%ifarch %{arm} s390x
|
||||
%ifarch %{arm} s390x riscv64
|
||||
mv java/core/src/test/java/com/google/protobuf/IsValidUtf8Test.java \
|
||||
java/core/src/test/java/com/google/protobuf/IsValidUtf8Test.java.slow
|
||||
mv java/core/src/test/java/com/google/protobuf/DecodeUtf8Test.java \
|
||||
|
@ -229,6 +233,7 @@ rm -f src/solaris/libstdc++.la
|
|||
iconv -f iso8859-1 -t utf-8 CONTRIBUTORS.txt > CONTRIBUTORS.txt.utf8
|
||||
mv CONTRIBUTORS.txt.utf8 CONTRIBUTORS.txt
|
||||
export PTHREAD_LIBS="-lpthread"
|
||||
export CXXFLAGS="%{build_cxxflags} -Wno-type-limits"
|
||||
./autogen.sh
|
||||
%configure
|
||||
|
||||
|
@ -241,7 +246,7 @@ popd
|
|||
%endif
|
||||
|
||||
%if %{with java}
|
||||
%ifarch s390x %{arm}
|
||||
%ifarch s390x %{arm} riscv64
|
||||
export MAVEN_OPTS=-Xmx1024m
|
||||
%endif
|
||||
%mvn_build -s -- -f java/pom.xml
|
||||
|
@ -361,6 +366,10 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir}
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed May 20 2020 David Abdurachmanov <david.abdurachmanov@sifive.com> - 3.11.4-1.0.riscv64
|
||||
- Disable slow tests on riscv64
|
||||
- Disable java sub-package for riscv64 (build errors)
|
||||
|
||||
* Tue Mar 31 2020 Adrian Reber <adrian@lisas.de> - 3.11.4-1
|
||||
- Update to 3.11.4
|
||||
|
||||
|
|
Loading…
Reference in New Issue