]> git.pld-linux.org Git - packages/libqb.git/blame - libqb.spec
- updated to 1.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
fea79cae 9Version: 1.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
fea79cae 15# Source0-md5: 5fa7d3d2c2eb4fd10722991100a5c190
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
fb1e495e 20BuildRequires: pkgconfig
c92bde45
JB
21BuildRequires: tar >= 1:1.22
22BuildRequires: xz
fb1e495e
JK
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26libqb is a library with the primary purpose of providing high
27performance client server reusable features. It provides high
28performance logging, tracing, ipc, and poll.
29
ba8a3cbd
JB
30%description -l pl.UTF-8
31libqb to biblioteka, której głównym celem jest dostarczenie
32wysoko wydajnych funkcji użytecznych przy architekturze klient-serwer.
33Udostępnia wysoko wydajne logowanie, śledzenie, IPC oraz poll.
34
fb1e495e
JK
35%package devel
36Summary: Header files for libqb library
37Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libqb
38Group: Development/Libraries
39Requires: %{name} = %{version}-%{release}
40
41%description devel
42Header files for libqb library.
43
44%description devel -l pl.UTF-8
45Pliki nagłówkowe biblioteki libqb.
46
47%package static
48Summary: Static libqb library
49Summary(pl.UTF-8): Statyczna biblioteka libqb
50Group: Development/Libraries
51Requires: %{name}-devel = %{version}-%{release}
52
53%description static
54Static libqb library.
55
56%description static -l pl.UTF-8
57Statyczna 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
73rm -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
84rm -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
This page took 0.089588 seconds and 4 git commands to generate.