Hello community,

here is the log from the commit of package abseil-cpp for openSUSE:Factory 
checked in at 2020-11-02 09:39:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/abseil-cpp (Old)
 and      /work/SRC/openSUSE:Factory/.abseil-cpp.new.3463 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "abseil-cpp"

Mon Nov  2 09:39:42 2020 rev:14 rq:844359 version:20200225.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/abseil-cpp/abseil-cpp.changes    2020-09-29 
19:00:08.793652727 +0200
+++ /work/SRC/openSUSE:Factory/.abseil-cpp.new.3463/abseil-cpp.changes  
2020-11-02 09:39:48.625576361 +0100
@@ -1,0 +2,6 @@
+Tue Oct 27 09:16:46 UTC 2020 - Jan Engelhardt <jeng...@inai.de>
+
+- Build shared libraries of abseil for use by grpc
+  (related to https://github.com/grpc/grpc/issues/24476)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ abseil-cpp.spec ++++++
--- /var/tmp/diff_new_pack.5s1wMq/_old  2020-11-02 09:39:49.229576941 +0100
+++ /var/tmp/diff_new_pack.5s1wMq/_new  2020-11-02 09:39:49.229576941 +0100
@@ -25,14 +25,24 @@
 URL:            https://abseil.io/
 Source0:        
https://github.com/abseil/abseil-cpp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source1:        %{name}-rpmlintrc
+BuildRequires:  c++_compiler
+BuildRequires:  cmake
 BuildRequires:  fdupes
-BuildArch:      noarch
 
 %description
 Abseil is a collection of C++11 libraries which augment the C++
 standard library. It also provides features incorporated into C++14
 and C++17 standards.
 
+%package devel
+Summary:        Header files for Abseil
+Requires:       %{name} = %{version}
+
+%description devel
+Abseil is a collection of C++11 libraries which augment the C++
+standard library.
+This package contains headers and build system files for it.
+
 %package source
 Summary:        Source code of Abseil
 
@@ -42,14 +52,28 @@
 features incorporated into C++14 and C++17 standards.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
+# let rpm/OBS have some versioning to work with when it comes to upgrades and 
rebuilds
+cat >"%_builddir/abslx.sym" <<-EOF
+       ABSL_%version { global: *; };
+EOF
+%define build_ldflags -Wl,--version-script=%_builddir/abslx.sym
+%cmake -DBUILD_SHARED_LIBS:BOOL=ON
 
 %install
+%cmake_install
 mkdir -p %{buildroot}%{src_install_dir}
 cp -r * %{buildroot}%{src_install_dir}
-%fdupes %{buildroot}%{src_install_dir}
+%fdupes %{buildroot}/%{_prefix}
+
+%files
+%{_libdir}/libabsl_*.so
+
+%files devel
+%{_includedir}/absl/
+%{_libdir}/cmake/
 
 %files source
 %license LICENSE


Reply via email to