]> git.pld-linux.org Git - packages/riemann-c-client.git/blame - riemann-c-client.spec
- updated to 1.10.4
[packages/riemann-c-client.git] / riemann-c-client.spec
CommitLineData
a4a194c3
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
777c18b2 4
a4a194c3
JB
5Summary: Riemann client library
6Summary(pl.UTF-8): Biblioteka kliencka Riemann
7Name: riemann-c-client
13064d43 8Version: 1.10.4
fba8e036 9Release: 1
a4a194c3
JB
10License: LGPL v3+
11Group: Libraries
fba8e036 12#Source0Download: https://github.com/algernon/riemann-c-client/releases
a4a194c3 13Source0: https://github.com/algernon/riemann-c-client/archive/%{name}-%{version}.tar.gz
13064d43 14# Source0-md5: 716a0385233b8fbcff13de1a5b4cea10
fba8e036 15Patch0: %{name}-dep.patch
a4a194c3
JB
16URL: https://github.com/algernon/riemann-c-client
17BuildRequires: autoconf >= 2.50
18BuildRequires: automake
19BuildRequires: check-devel
20BuildRequires: gnutls-devel >= 2.8
21BuildRequires: json-c-devel >= 0.11
22BuildRequires: libtool >= 2:2
23BuildRequires: pkgconfig
24BuildRequires: protobuf-c-devel
25Requires: json-c >= 0.11
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29This is a C client library for the Riemann monitoring system,
30providing a convenient and simple API, high test coverage and a
31copyleft license, along with API and ABI stability.
32
33%description -l pl.UTF-8
34Ten pakiet zawiera przeznaczoną dla języka C bibliotekę kliencką
35systemu monitorowania Riemann, udostępniającą wygodne i proste API,
36mającą duże pokrycie testami oraz licencję typu copyleft, a także
37stabilne API i ABI.
38
39%package devel
40Summary: Header files for riemann-client library
41Summary(pl.UTF-8): Pliki nagłówkowe biblioteki riemann-client
42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
777c18b2 44Requires: protobuf-c-devel
a4a194c3
JB
45
46%description devel
47Header files for riemann-client library.
48
49%description devel -l pl.UTF-8
50Pliki nagłówkowe biblioteki riemann-client.
51
52%package static
53Summary: Static riemann-client library
54Summary(pl.UTF-8): Statyczna biblioteka riemann-client
55Group: Development/Libraries
56Requires: %{name}-devel = %{version}-%{release}
57
58%description static
59Static riemann-client library.
60
61%description static -l pl.UTF-8
62Statyczna biblioteka riemann-client.
63
64%prep
65%setup -q -n %{name}-%{name}-%{version}
fba8e036 66%patch0 -p1
a4a194c3
JB
67
68%build
69%{__libtoolize}
70%{__aclocal}
71%{__autoconf}
72%{__autoheader}
73%{__automake}
74%configure \
1f64b3b5 75 --disable-silent-rules \
a4a194c3 76 %{!?with_static_libs:--disable-static}
1f64b3b5 77
fba8e036 78%{__make}
a4a194c3
JB
79
80%install
81rm -rf $RPM_BUILD_ROOT
82
83%{__make} install \
84 DESTDIR=$RPM_BUILD_ROOT
85
86%{__rm} $RPM_BUILD_ROOT%{_libdir}/libriemann-client.la
87
88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%post -p /sbin/ldconfig
92%postun -p /sbin/ldconfig
93
94%files
95%defattr(644,root,root,755)
96%doc NEWS.md README.md
97%attr(755,root,root) %{_bindir}/riemann-client
98%attr(755,root,root) %{_libdir}/libriemann-client.so.*.*.*
99%attr(755,root,root) %ghost %{_libdir}/libriemann-client.so.0
100%{_mandir}/man1/riemann-client.1*
101
102%files devel
103%defattr(644,root,root,755)
104%attr(755,root,root) %{_libdir}/libriemann-client.so
105%{_includedir}/riemann
106%{_pkgconfigdir}/riemann-client.pc
107
108%if %{with static_libs}
109%files static
110%defattr(644,root,root,755)
111%{_libdir}/libriemann-client.a
112%endif
This page took 0.118484 seconds and 4 git commands to generate.