3 %bcond_without static_libs # static library
4 %bcond_with tests # "make check" call
6 Summary: libqb - high performance client server reusable features
7 Summary(pl.UTF-8): libqb - wysoko wydajne funkcje architektury klient-serwer
13 #Source0Download: https://github.com/ClusterLabs/libqb/releases
14 Source0: https://github.com/ClusterLabs/libqb/releases/download/v%{version}/%{name}-%{version}.tar.xz
15 # Source0-md5: ee456f27a8f460fe350404ad90709caf
16 URL: https://github.com/ClusterLabs/libqb
17 %{?with_tests:BuildRequires: check-devel >= 0.9.4}
18 BuildRequires: doxygen
19 BuildRequires: glib2-devel >= 2.0
20 BuildRequires: pkgconfig
21 BuildRequires: tar >= 1:1.22
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 libqb is a library with the primary purpose of providing high
27 performance client server reusable features. It provides high
28 performance logging, tracing, ipc, and poll.
30 %description -l pl.UTF-8
31 libqb to biblioteka, której głównym celem jest dostarczenie
32 wysoko wydajnych funkcji użytecznych przy architekturze klient-serwer.
33 Udostępnia wysoko wydajne logowanie, śledzenie, IPC oraz poll.
36 Summary: Header files for libqb library
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libqb
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
42 Header files for libqb library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki libqb.
48 Summary: Static libqb library
49 Summary(pl.UTF-8): Statyczna biblioteka libqb
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
56 %description static -l pl.UTF-8
57 Statyczna biblioteka libqb.
64 --disable-silent-rules \
65 %{!?with_static_libs:--disable-static}
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
78 # obsoleted by pkg-config
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libqb.la
81 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
91 %doc ChangeLog README.markdown
92 %attr(755,root,root) %{_sbindir}/qb-blackbox
93 %attr(755,root,root) %{_libdir}/libqb.so.*.*.*
94 %attr(755,root,root) %ghost %{_libdir}/libqb.so.0
95 %{_mandir}/man8/qb-blackbox.8*
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libqb.so
101 %{_pkgconfigdir}/libqb.pc
102 %{_mandir}/man3/qb*.h.3*
104 %if %{with static_libs}
106 %defattr(644,root,root,755)