diff --git a/abseil-cpp-rpmlintrc b/abseil-cpp-rpmlintrc deleted file mode 100644 index ab6e8b7..0000000 --- a/abseil-cpp-rpmlintrc +++ /dev/null @@ -1,5 +0,0 @@ -# This is a source package and /usr/src, warnings below are not important in -# that case. -addFilter("abseil-cpp-source.* suse-filelist-forbidden-fhs23") -addFilter("abseil-cpp-source.* hidden-file-or-dir") -addFilter("abseil-cpp-source.* non-executable-script") diff --git a/abseil-cpp.changes b/abseil-cpp.changes index 7421348..3429bbe 100644 --- a/abseil-cpp.changes +++ b/abseil-cpp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 6 08:31:58 UTC 2020 - Fabian Vogt + +- Drop source package, was only used by grpc which was switched + over to use the shared library + ------------------------------------------------------------------- Tue Oct 27 09:16:46 UTC 2020 - Jan Engelhardt diff --git a/abseil-cpp.spec b/abseil-cpp.spec index e428dd3..69271b2 100644 --- a/abseil-cpp.spec +++ b/abseil-cpp.spec @@ -16,7 +16,6 @@ # -%define src_install_dir %{_prefix}/src/%{name} Name: abseil-cpp Version: 20200225.2 Release: 0 @@ -24,7 +23,6 @@ Summary: C++11 libraries which augment the C++ stdlib License: Apache-2.0 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 @@ -43,41 +41,28 @@ 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 - -%description source -Source code of Abseil, a collection of C++11 libraries -which augment the C++ standard library. It also provides -features incorporated into C++14 and C++17 standards. - %prep %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: *; }; +cat >"%{_builddir}/abslx.sym" <<-EOF + ABSL_%{version} { global: *; }; EOF -%define build_ldflags -Wl,--version-script=%_builddir/abslx.sym +%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}/%{_prefix} %files +%license LICENSE +%doc README.md %{_libdir}/libabsl_*.so %files devel %{_includedir}/absl/ %{_libdir}/cmake/ -%files source -%license LICENSE -%doc README.md -%{src_install_dir} - %changelog