]>
Commit | Line | Data |
---|---|---|
fb1e495e JK |
1 | # |
2 | # Conditional build: | |
5cf5d178 JB |
3 | %bcond_without static_libs # static library |
4 | %bcond_with tests # "make check" call | |
fb1e495e JK |
5 | # |
6 | Summary: libqb - high performance client server reusable features | |
ba8a3cbd | 7 | Summary(pl.UTF-8): libqb - wysoko wydajne funkcje architektury klient-serwer |
fb1e495e | 8 | Name: libqb |
fea79cae | 9 | Version: 1.0.6 |
b8664515 | 10 | Release: 1 |
c92bde45 | 11 | License: LGPL v2.1+ |
fb1e495e | 12 | Group: Libraries |
5cf5d178 JB |
13 | #Source0Download: https://github.com/ClusterLabs/libqb/releases |
14 | Source0: https://github.com/ClusterLabs/libqb/releases/download/v%{version}/%{name}-%{version}.tar.xz | |
fea79cae | 15 | # Source0-md5: 5fa7d3d2c2eb4fd10722991100a5c190 |
9910661b | 16 | URL: https://github.com/ClusterLabs/libqb |
c92bde45 | 17 | %{?with_tests:BuildRequires: check-devel >= 0.9.4} |
fb1e495e | 18 | BuildRequires: doxygen |
c92bde45 | 19 | BuildRequires: glib2-devel >= 2.0 |
fb1e495e | 20 | BuildRequires: pkgconfig |
c92bde45 JB |
21 | BuildRequires: tar >= 1:1.22 |
22 | BuildRequires: xz | |
fb1e495e JK |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
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. | |
29 | ||
ba8a3cbd JB |
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. | |
34 | ||
fb1e495e JK |
35 | %package devel |
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} | |
40 | ||
41 | %description devel | |
42 | Header files for libqb library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki libqb. | |
46 | ||
47 | %package static | |
48 | Summary: Static libqb library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka libqb | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static libqb library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka libqb. | |
58 | ||
59 | %prep | |
60 | %setup -q | |
61 | ||
62 | %build | |
63 | %configure \ | |
c92bde45 | 64 | --disable-silent-rules \ |
fb1e495e JK |
65 | %{!?with_static_libs:--disable-static} |
66 | %{__make} | |
67 | ||
68 | %if %{with tests} | |
69 | %{__make} check | |
70 | %endif | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
a09f7750 JB |
78 | # obsoleted by pkg-config |
79 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libqb.la | |
80 | # packaged as %doc | |
ba8a3cbd | 81 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
fb1e495e JK |
82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
56bebe0e | 91 | %doc ChangeLog README.markdown |
c92bde45 | 92 | %attr(755,root,root) %{_sbindir}/qb-blackbox |
fb1e495e | 93 | %attr(755,root,root) %{_libdir}/libqb.so.*.*.* |
ba8a3cbd | 94 | %attr(755,root,root) %ghost %{_libdir}/libqb.so.0 |
c92bde45 | 95 | %{_mandir}/man8/qb-blackbox.8* |
fb1e495e JK |
96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
ba8a3cbd | 99 | %attr(755,root,root) %{_libdir}/libqb.so |
fb1e495e JK |
100 | %{_includedir}/qb |
101 | %{_pkgconfigdir}/libqb.pc | |
c92bde45 | 102 | %{_mandir}/man3/qb*.h.3* |
fb1e495e JK |
103 | |
104 | %if %{with static_libs} | |
105 | %files static | |
106 | %defattr(644,root,root,755) | |
107 | %{_libdir}/libqb.a | |
108 | %endif |