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: autoconf
17 BuildRequires: automake
18 BuildRequires: boost-devel >= 1.20.0
19 BuildRequires: double-conversion-devel
20 BuildRequires: gflags-devel
21 BuildRequires: glog-devel
22 BuildRequires: gtest-devel >= 1.6.0
23 BuildRequires: libevent-devel
24 BuildRequires: libstdc++-devel
25 BuildRequires: libtool
27 BuildRequires: openssl-devel
29 BuildRequires: python-modules
30 BuildRequires: rpmbuild(macros) >= 1.583
31 ExclusiveArch: %{x8664}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 # missing openssl linking
35 %define skip_post_check_so libfolly.so.31.0.0
38 Folly (acronymed loosely after Facebook Open Source Library) is a
39 library of C++11 components designed with practicality and efficiency
40 in mind. It complements (as opposed to competing against) offerings
41 such as Boost and of course std. In fact, we embark on defining our
42 own component only when something we need is either not available, or
43 does not meet the needed performance profile.
45 Performance concerns permeate much of Folly, sometimes leading to
46 designs that are more idiosyncratic than they would otherwise be (see
47 e.g. PackedSyncPtr.h, SmallLocks.h). Good performance at large scale
48 is a unifying theme in all of Folly.
51 Summary: Header files for %{name} library
52 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
57 Header files for %{name} library.
59 %description devel -l pl.UTF-8
60 Pliki nagłówkowe biblioteki %{name}.
63 Summary: Static %{name} library
64 Summary(pl.UTF-8): Statyczna biblioteka %{name}
65 Group: Development/Libraries
66 Requires: %{name}-devel = %{version}-%{release}
69 Static %{name} library.
71 %description static -l pl.UTF-8
72 Statyczna biblioteka %{name}.
77 #ln -s %{_usrsrc}/gtest folly/test/gtest-1.7.0
87 %{!?with_static_libs:--disable-static}
91 rm -rf $RPM_BUILD_ROOT
92 %{__make} -C folly install \
93 DESTDIR=$RPM_BUILD_ROOT
95 # these aren't supposed to be installed!
96 #rm $RPM_BUILD_ROOT%{_libdir}/libgtest*
99 rm -rf $RPM_BUILD_ROOT
101 %post -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
105 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libfolly.so.*.*.*
108 %ghost %{_libdir}/libfolly.so.31
109 %attr(755,root,root) %{_libdir}/libfollybenchmark.so.*.*.*
110 %ghost %{_libdir}/libfollybenchmark.so.31
113 %defattr(644,root,root,755)
114 %{_libdir}/libfolly.so
115 %{_libdir}/libfollybenchmark.so
116 %{_libdir}/libfolly.la
117 %{_libdir}/libfollybenchmark.la
120 %if %{with static_libs}
122 %defattr(644,root,root,755)
123 %{_libdir}/libfolly.a
124 %{_libdir}/libfollybenchmark.a