1# Force out of source build 2%undefine __cmake_in_source_build 3 4# Installed library version 5%global lib_version 2206.0.0 6 7Name: abseil-cpp 8Version: 20220623.1 9Release: 3 10Summary: C++ Common Libraries 11 12License: ASL 2.0 13URL: https://abseil.io 14Source0: https://github.com/abseil/abseil-cpp/archive/%{version}/%{name}-%{version}.tar.gz 15 16Patch0: backport-Do-not-leak-maes-msse4.1-into-pkgconfig.patch 17Patch1: abseil-cpp-20210324.2-sw.patch 18%ifarch loongarch64 19Patch100: 0001-add-loongarch-suopport-for-abseil-cpp.patch 20%endif 21 22BuildRequires: cmake 23BuildRequires: gcc-c++ 24BuildRequires: make 25 26%description 27Abseil is an open-source collection of C++ library code designed to augment 28the C++ standard library. The Abseil library code is collected from 29Google's own C++ code base, has been extensively tested and used in 30production, and is the same code we depend on in our daily coding lives. 31 32In some cases, Abseil provides pieces missing from the C++ standard; in 33others, Abseil provides alternatives to the standard for special needs we've 34found through usage in the Google code base. We denote those cases clearly 35within the library code we provide you. 36 37Abseil is not meant to be a competitor to the standard library; we've just 38found that many of these utilities serve a purpose within our code base, 39and we now want to provide those resources to the C++ community as a whole. 40 41%package devel 42Summary: Development files for %{name} 43Requires: %{name}%{?_isa} = %{version}-%{release} 44Conflicts: grpc < 1.31.0-5 45 46%description devel 47Development headers for %{name} 48 49%prep 50%autosetup -p1 51 52%build 53%cmake 54 55%install 56%make_install 57 58%files 59%license LICENSE 60%doc FAQ.md README.md UPGRADES.md 61%{_libdir}/libabsl_*.so.%{lib_version} 62 63%files devel 64%{_includedir}/absl 65%{_libdir}/cmake/absl 66%{_libdir}/libabsl_*.so 67%{_libdir}/pkgconfig/*.pc 68 69%changelog 70* Mon Nov 14 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 20220623.1-3 71- add loongarch support for abseil-cpp 72 73* Fri Nov 11 2022 wuzx<wuzx1226@qq.com> - 20220623.1-2 74- Type:feature 75- CVE:NA 76- SUG:NA 77- DESC:Add sw64 architecture 78 79* Wed Nov 02 2022 xinghe <xinghe2@h-partners.com> - 20220623.1-1 80- Type:enhancement 81- ID:NA 82- SUG:NA 83- DESC: update to 20220623.1 84 85* Wed Jun 23 2021 gaihuiying <gaihuiying1@huawei.com> - 20210324.2-1 86- package init 87