forked from pool/protobuf21
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 004174b9ea | |||
| 326455bec0 | |||
| 3a387fcc7d | |||
| 020f93cb78 |
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 29 06:56:17 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Fix build on some architectures in SLE15 where the default
|
||||||
|
compiler gives internal compiler error
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 9 09:02:58 UTC 2024 - Christian Goll <cgoll@suse.com>
|
||||||
|
|
||||||
|
- switch to cmake buidling to that cmake projects can consume it
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 15 12:11:20 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
Thu Feb 15 12:11:20 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,9 @@
|
|||||||
%bcond_with check
|
%bcond_with check
|
||||||
%bcond_with java
|
%bcond_with java
|
||||||
%bcond_with python3
|
%bcond_with python3
|
||||||
|
%if 0%{?gcc_version} < 11
|
||||||
|
%define with_gcc 11
|
||||||
|
%endif
|
||||||
Name: protobuf21
|
Name: protobuf21
|
||||||
Version: 21.12
|
Version: 21.12
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -43,10 +46,9 @@ Provides: protobuf = %{version}
|
|||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module python-dateutil}
|
BuildRequires: %{python_module python-dateutil}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: autoconf
|
BuildRequires: cmake
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc%{?with_gcc}-c++
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -163,11 +165,16 @@ sed -i '/google_test_dir/d' python/setup.py
|
|||||||
sed -i -e '/env python/d' python/google/protobuf/internal/*.py
|
sed -i -e '/env python/d' python/google/protobuf/internal/*.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fvi
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
%configure \
|
|
||||||
--disable-static
|
|
||||||
|
|
||||||
%make_build
|
%if 0%{?with_gcc}
|
||||||
|
export CXX=g++-%{with_gcc}
|
||||||
|
export CC=gcc-%{with_gcc}
|
||||||
|
%endif
|
||||||
|
%cmake \
|
||||||
|
-Dprotobuf_BUILD_TESTS=OFF \
|
||||||
|
%{nil}
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
pushd java
|
pushd java
|
||||||
@@ -191,7 +198,7 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%cmake_install
|
||||||
install -Dm 0644 editors/proto.vim %{buildroot}%{_datadir}/vim/site/syntax/proto.vim
|
install -Dm 0644 editors/proto.vim %{buildroot}%{_datadir}/vim/site/syntax/proto.vim
|
||||||
# no need for that
|
# no need for that
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
@@ -227,22 +234,24 @@ popd
|
|||||||
|
|
||||||
%files -n libprotobuf%{sover}
|
%files -n libprotobuf%{sover}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_libdir}/libprotobuf-3.%{version}.so
|
%{_libdir}/libprotobuf.so.3.%{version}*
|
||||||
|
|
||||||
%files -n libprotoc%{sover}
|
%files -n libprotoc%{sover}
|
||||||
%{_libdir}/libprotoc-3.%{version}.so
|
%{_libdir}/libprotoc.so.3.%{version}*
|
||||||
|
|
||||||
%files -n libprotobuf-lite%{sover}
|
%files -n libprotobuf-lite%{sover}
|
||||||
%{_libdir}/libprotobuf-lite-3.%{version}.so
|
%{_libdir}/libprotobuf-lite.so.3.%{version}*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc CHANGES.txt CONTRIBUTORS.txt README.md
|
%doc CHANGES.txt CONTRIBUTORS.txt README.md
|
||||||
%{_bindir}/protoc
|
%{_bindir}/protoc
|
||||||
|
%{_bindir}/protoc-3.%{version}*
|
||||||
%{_includedir}/google
|
%{_includedir}/google
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
%{_libdir}/libprotobuf-lite.so
|
%{_libdir}/libprotobuf-lite.so
|
||||||
%{_libdir}/libprotobuf.so
|
%{_libdir}/libprotobuf.so
|
||||||
%{_libdir}/libprotoc.so
|
%{_libdir}/libprotoc.so
|
||||||
|
%{_libdir}/cmake/protobuf
|
||||||
%{_datadir}/vim
|
%{_datadir}/vim
|
||||||
|
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
|
|||||||
Reference in New Issue
Block a user