3 %bcond_without static_libs # static libraries
5 Summary: Abseil - C++ common libraries
6 Summary(pl.UTF-8): Abseil - wspólne biblioteki C++
12 #Source0Download: https://github.com/abseil/abseil-cpp/releases
13 Source0: https://github.com/abseil/abseil-cpp/archive/refs/tags/%{version}.tar.gz
14 # Source0-md5: e0b585398b89ee92a10d8c68ef7eed48
15 URL: https://abseil.io/
16 BuildRequires: cmake >= 3.5
17 BuildRequires: libstdc++-devel >= 6:4.7
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Abseil is an open-source collection of C++ library code designed to
22 augment the C++ standard library. The Abseil library code is collected
23 from Google's own C++ code base, has been extensively tested and used
26 %description -l pl.UTF-8
27 Abseil to zbiór bibliotek C++ o otwartych źródłach, zaprojektowancych
28 jako uzupełnienie biblioteki standardowej C++. Kod bibliotek został
29 zebrany z własnego kodu C++ Google'a, obszernie przetestowany i jest
33 Summary: Header files for Abseil libraries
34 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Abseil
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
37 Requires: libstdc++-devel >= 6:4.7
40 Header files for Abseil libraries.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe bibliotek Abseil.
46 Summary: Static Abseil libraries
47 Summary(pl.UTF-8): Statyczne biblioteki Abseil
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 Static Abseil libraries.
54 %description static -l pl.UTF-8
55 Statyczne biblioteki Abseil.
61 %if %{with static_libs}
62 install -d build-static
65 -DBUILD_SHARED_LIBS=OFF
78 rm -rf $RPM_BUILD_ROOT
80 %if %{with static_libs}
81 %{__make} -C build-static install \
82 DESTDIR=$RPM_BUILD_ROOT
85 %{__make} -C build install \
86 DESTDIR=$RPM_BUILD_ROOT
89 rm -rf $RPM_BUILD_ROOT
91 %post -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
95 %defattr(644,root,root,755)
96 %doc AUTHORS FAQ.md README.md
97 %attr(755,root,root) %{_libdir}/libabsl_*.so.*.*.*
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/libabsl_*.so
103 %{_libdir}/cmake/absl
104 %{_pkgconfigdir}/absl_*.pc
106 %if %{with static_libs}
108 %defattr(644,root,root,755)
109 %{_libdir}/libabsl_*.a