3 %bcond_without static_libs # don't build static libraries
5 Summary: C port of High Dynamic Range (HDR) histogram
6 Summary(pl.UTF-8): Port C biblioteki histogramów HDR (High Dynamic Range)
10 License: Public Domain/CC0 v1.0 or BSD
12 #Source0Download: https://github.com/HdrHistogram/HdrHistogram_c/releases
13 Source0: https://github.com/HdrHistogram/HdrHistogram_c/archive/%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 2233212a5c0b9f39445d8498eb8b8f7e
15 URL: https://github.com/HdrHistogram/HdrHistogram_c
16 BuildRequires: cmake >= 2.8
17 BuildRequires: zlib-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 C port of High Dynamic Range (HDR) histogram.
23 %description -l pl.UTF-8
24 Port C biblioteki histogramów HDR (High Dynamic Range).
27 Summary: Header files for HdrHistogram library
28 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HdrHistogram
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
33 Header files for HdrHistogram library.
35 %description devel -l pl.UTF-8
36 Pliki nagłówkowe biblioteki HdrHistogram.
39 Summary: Static HdrHistogram library
40 Summary(pl.UTF-8): Statyczna biblioteka HdrHistogram
41 Group: Development/Libraries
42 Requires: %{name}-devel = %{version}-%{release}
45 Static HdrHistogram library.
47 %description static -l pl.UTF-8
48 Statyczna biblioteka HdrHistogram.
61 rm -rf $RPM_BUILD_ROOT
63 %{__make} -C build install \
64 DESTDIR=$RPM_BUILD_ROOT
66 %{__rm} $RPM_BUILD_ROOT%{_bindir}/hdr_histogram*_test
67 %{__rm} $RPM_BUILD_ROOT%{_bindir}/perftest
70 rm -rf $RPM_BUILD_ROOT
72 %post -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
76 %defattr(644,root,root,755)
77 %doc LICENSE.txt README.md
78 %attr(755,root,root) %{_bindir}/hdr_decoder
79 %attr(755,root,root) %{_bindir}/hiccup
80 %attr(755,root,root) %{_libdir}/libhdr_histogram.so.*.*.*
81 %attr(755,root,root) %ghost %{_libdir}/libhdr_histogram.so.5
84 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_libdir}/libhdr_histogram.so
86 %dir %{_includedir}/hdr
87 %{_includedir}/hdr/hdr_*.h
89 %if %{with static_libs}
91 %defattr(644,root,root,755)
92 %{_libdir}/libhdr_histogram_static.a