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: 9186cbf26645607d3ac48911ca214b6b
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: libxml2-devel >= 2.0
21 BuildRequires: pkgconfig
22 BuildRequires: systemd-devel >= 1:209
23 BuildRequires: tar >= 1:1.22
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 libqb is a library with the primary purpose of providing high
29 performance client server reusable features. It provides high
30 performance logging, tracing, ipc, and poll.
32 %description -l pl.UTF-8
33 libqb to biblioteka, której głównym celem jest dostarczenie
34 wysoko wydajnych funkcji użytecznych przy architekturze klient-serwer.
35 Udostępnia wysoko wydajne logowanie, śledzenie, IPC oraz poll.
38 Summary: Header files for libqb library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libqb
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 Header files for libqb library.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki libqb.
50 Summary: Static libqb library
51 Summary(pl.UTF-8): Statyczna biblioteka libqb
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
58 %description static -l pl.UTF-8
59 Statyczna biblioteka libqb.
66 --disable-silent-rules \
67 %{!?with_static_libs:--disable-static}
75 rm -rf $RPM_BUILD_ROOT
78 DESTDIR=$RPM_BUILD_ROOT
80 # obsoleted by pkg-config
81 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libqb.la
83 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
92 %defattr(644,root,root,755)
93 %doc ChangeLog README.markdown
94 %attr(755,root,root) %{_sbindir}/qb-blackbox
95 %attr(755,root,root) %{_libdir}/libqb.so.*.*.*
96 %attr(755,root,root) %ghost %{_libdir}/libqb.so.100
97 %{_mandir}/man8/qb-blackbox.8*
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/libqb.so
103 %{_pkgconfigdir}/libqb.pc
104 %{_mandir}/man3/qb*.h.3*
105 %{_mandir}/man3/qb_*.3*
108 %attr(755,root,root) %{_bindir}/doxygen2man
109 %{_mandir}/man1/doxygen2man.1*
111 %if %{with static_libs}
113 %defattr(644,root,root,755)