---- protobuf-3.6.1/ruby/ext/google/protobuf_c/extconf.rb.orig 2018-10-12 18:23:59.206483460 +0200
-+++ protobuf-3.6.1/ruby/ext/google/protobuf_c/extconf.rb 2018-10-12 18:42:35.729804045 +0200
-@@ -3,17 +3,11 @@
- require 'mkmf'
-
- unless RUBY_PLATFORM =~ /mswin|mingw/
+--- protobuf-3.7.0/ruby/ext/google/protobuf_c/extconf.rb 2019-03-12 12:41:06.025000000 +0100
++++ protobuf-3.7.0/ruby/ext/google/protobuf_c/extconf.rb 2019-03-12 12:42:04.062000000 +0100
+@@ -5,19 +5,12 @@
+ if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
+ # XOPEN_SOURCE needed for strptime:
+ # https://stackoverflow.com/questions/35234152/strptime-giving-implicit-declaration-and-undefined-reference
+- $CFLAGS += " -std=c99 -O3 -DNDEBUG -D_XOPEN_SOURCE=700"
++ $CFLAGS += " -std=c99 -DNDEBUG -D_XOPEN_SOURCE=700"
+ else
- $CFLAGS += " -std=c99 -O3 -DNDEBUG"
-+ $CFLAGS += " -std=c99 -DNDEBUG"
- end
-
-
+-end
+-
+-
-if RUBY_PLATFORM =~ /linux/
- # Instruct the linker to point memcpy calls at our __wrap_memcpy wrapper.
- $LDFLAGS += " -Wl,-wrap,memcpy"
--end
--
++ $CFLAGS += " -std=c99 -DNDEBUG"
+ end
+
$objs = ["protobuf.o", "defs.o", "storage.o", "message.o",
- "repeated_field.o", "map.o", "encode_decode.o", "upb.o",
- "wrap_memcpy.o"]
-+ "repeated_field.o", "map.o", "encode_decode.o", "upb.o"]
++ "repeated_field.o", "map.o", "encode_decode.o", "upb.o" ]
create_makefile("google/protobuf_c")
Summary: Protocol Buffers - Google's data interchange format
Summary(pl.UTF-8): Protocol Buffers - format wymiany danych Google
Name: protobuf
-Version: 3.6.1
+Version: 3.7.0
Release: 1
License: BSD
Group: Libraries
#Source0Download: https://github.com/google/protobuf/releases
Source0: https://github.com/google/protobuf/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: e8ce2659ea4f5df1a1e0dbd107dd61d9
+# Source0-md5: 99ab003ca0e98c9dc40edbd60dd43633
Source1: ftdetect-proto.vim
Patch0: system-gtest.patch
Patch1: no-wrap-memcpy.patch
cp -pr ruby/lib/google/{protobuf,protobuf.rb} $RPM_BUILD_ROOT%{ruby_vendorlibdir}/google
cp -p ruby/google-protobuf.gemspec $RPM_BUILD_ROOT%{ruby_specdir}/google-protobuf-%{version}.gemspec
%endif
-cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%doc CHANGES.txt CONTRIBUTORS.txt LICENSE README.md
%attr(755,root,root) %{_bindir}/protoc
%attr(755,root,root) %{_libdir}/libprotoc.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libprotoc.so.17
+%attr(755,root,root) %ghost %{_libdir}/libprotoc.so.18
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libprotobuf.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libprotobuf.so.17
+%attr(755,root,root) %ghost %{_libdir}/libprotobuf.so.18
%files lite
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libprotobuf-lite.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libprotobuf-lite.so.17
+%attr(755,root,root) %ghost %{_libdir}/libprotobuf-lite.so.18
%files devel
%defattr(644,root,root,755)