]> git.pld-linux.org Git - packages/libqb.git/blame - libqb.spec
- updated to 2.0.6
[packages/libqb.git] / libqb.spec
CommitLineData
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#
6Summary: libqb - high performance client server reusable features
ba8a3cbd 7Summary(pl.UTF-8): libqb - wysoko wydajne funkcje architektury klient-serwer
fb1e495e 8Name: libqb
11c74723 9Version: 2.0.6
b8664515 10Release: 1
c92bde45 11License: LGPL v2.1+
fb1e495e 12Group: Libraries
5cf5d178
JB
13#Source0Download: https://github.com/ClusterLabs/libqb/releases
14Source0: https://github.com/ClusterLabs/libqb/releases/download/v%{version}/%{name}-%{version}.tar.xz
11c74723 15# Source0-md5: 59bd4c8e5dd4ba66750757eac69b966a
9910661b 16URL: https://github.com/ClusterLabs/libqb
c92bde45 17%{?with_tests:BuildRequires: check-devel >= 0.9.4}
fb1e495e 18BuildRequires: doxygen
c92bde45 19BuildRequires: glib2-devel >= 2.0
7089c57c 20BuildRequires: libxml2-devel >= 2.0
fb1e495e 21BuildRequires: pkgconfig
7089c57c 22BuildRequires: systemd-devel >= 1:209
c92bde45
JB
23BuildRequires: tar >= 1:1.22
24BuildRequires: xz
fb1e495e
JK
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28libqb is a library with the primary purpose of providing high
29performance client server reusable features. It provides high
30performance logging, tracing, ipc, and poll.
31
ba8a3cbd
JB
32%description -l pl.UTF-8
33libqb to biblioteka, której głównym celem jest dostarczenie
34wysoko wydajnych funkcji użytecznych przy architekturze klient-serwer.
35Udostępnia wysoko wydajne logowanie, śledzenie, IPC oraz poll.
36
fb1e495e
JK
37%package devel
38Summary: Header files for libqb library
39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libqb
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
42
43%description devel
44Header files for libqb library.
45
46%description devel -l pl.UTF-8
47Pliki nagłówkowe biblioteki libqb.
48
49%package static
50Summary: Static libqb library
51Summary(pl.UTF-8): Statyczna biblioteka libqb
52Group: Development/Libraries
53Requires: %{name}-devel = %{version}-%{release}
54
55%description static
56Static libqb library.
57
58%description static -l pl.UTF-8
59Statyczna biblioteka libqb.
60
61%prep
62%setup -q
63
64%build
65%configure \
c92bde45 66 --disable-silent-rules \
fb1e495e
JK
67 %{!?with_static_libs:--disable-static}
68%{__make}
69
70%if %{with tests}
71%{__make} check
72%endif
73
74%install
75rm -rf $RPM_BUILD_ROOT
76
77%{__make} install \
78 DESTDIR=$RPM_BUILD_ROOT
79
a09f7750
JB
80# obsoleted by pkg-config
81%{__rm} $RPM_BUILD_ROOT%{_libdir}/libqb.la
82# packaged as %doc
ba8a3cbd 83%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
fb1e495e
JK
84
85%clean
86rm -rf $RPM_BUILD_ROOT
87
88%post -p /sbin/ldconfig
89%postun -p /sbin/ldconfig
90
91%files
92%defattr(644,root,root,755)
56bebe0e 93%doc ChangeLog README.markdown
c92bde45 94%attr(755,root,root) %{_sbindir}/qb-blackbox
fb1e495e 95%attr(755,root,root) %{_libdir}/libqb.so.*.*.*
7089c57c 96%attr(755,root,root) %ghost %{_libdir}/libqb.so.100
c92bde45 97%{_mandir}/man8/qb-blackbox.8*
fb1e495e
JK
98
99%files devel
100%defattr(644,root,root,755)
ba8a3cbd 101%attr(755,root,root) %{_libdir}/libqb.so
fb1e495e
JK
102%{_includedir}/qb
103%{_pkgconfigdir}/libqb.pc
c92bde45 104%{_mandir}/man3/qb*.h.3*
7089c57c
JB
105%{_mandir}/man3/qb_*.3*
106
107# XXX: subpackage?
108%attr(755,root,root) %{_bindir}/doxygen2man
109%{_mandir}/man1/doxygen2man.1*
fb1e495e
JK
110
111%if %{with static_libs}
112%files static
113%defattr(644,root,root,755)
114%{_libdir}/libqb.a
115%endif
This page took 0.121298 seconds and 4 git commands to generate.