5 %bcond_without static_libs # don't build static libraries
7 Summary: Library of C++11 components designed with practicality and efficiency in mind
13 Source0: https://github.com/facebook/folly/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 40c654db9055e9dd735907b0a430c16b
15 URL: https://github.com/facebook/folly/blob/master/folly/docs/Overview.md
16 BuildRequires: boost-devel >= 1.20.0
17 BuildRequires: double-conversion-devel
18 BuildRequires: double-conversion-static
19 BuildRequires: gflags-devel
20 BuildRequires: glog-devel
21 BuildRequires: gtest-devel >= 1.6.0
22 BuildRequires: libstdc++-devel
23 BuildRequires: rpmbuild(macros) >= 1.583
24 ExclusiveArch: %{x8664}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 # missing openssl linking
28 %define skip_post_check_so libfolly.so.31.0.0
31 Folly (acronymed loosely after Facebook Open Source Library) is a
32 library of C++11 components designed with practicality and efficiency
33 in mind. It complements (as opposed to competing against) offerings
34 such as Boost and of course std. In fact, we embark on defining our
35 own component only when something we need is either not available, or
36 does not meet the needed performance profile.
38 Performance concerns permeate much of Folly, sometimes leading to
39 designs that are more idiosyncratic than they would otherwise be (see
40 e.g. PackedSyncPtr.h, SmallLocks.h). Good performance at large scale
41 is a unifying theme in all of Folly.
44 Summary: Header files for %{name} library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
50 Header files for %{name} library.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe biblioteki %{name}.
56 Summary: Static %{name} library
57 Summary(pl.UTF-8): Statyczna biblioteka %{name}
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Static %{name} library.
64 %description static -l pl.UTF-8
65 Statyczna biblioteka %{name}.
70 #ln -s %{_usrsrc}/gtest folly/test/gtest-1.7.0
80 %{!?with_static_libs:--disable-static}
84 rm -rf $RPM_BUILD_ROOT
85 %{__make} -C folly install \
86 DESTDIR=$RPM_BUILD_ROOT
88 # these aren't supposed to be installed!
89 #rm $RPM_BUILD_ROOT%{_libdir}/libgtest*
92 rm -rf $RPM_BUILD_ROOT
94 %post -p /sbin/ldconfig
95 %postun -p /sbin/ldconfig
98 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/libfolly.so.*.*.*
101 %ghost %{_libdir}/libfolly.so.31
102 %attr(755,root,root) %{_libdir}/libfollybenchmark.so.*.*.*
103 %ghost %{_libdir}/libfollybenchmark.so.31
106 %defattr(644,root,root,755)
107 %{_libdir}/libfolly.so
108 %{_libdir}/libfollybenchmark.so
109 %{_libdir}/libfolly.la
110 %{_libdir}/libfollybenchmark.la
113 %if %{with static_libs}
115 %defattr(644,root,root,755)
116 %{_libdir}/libfolly.a
117 %{_libdir}/libfollybenchmark.a