]> git.pld-linux.org Git - packages/libverto-jsonrpc.git/blob - libverto-jsonrpc.spec
- release 3 (json-c soname change)
[packages/libverto-jsonrpc.git] / libverto-jsonrpc.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        JSON-RPC support for libverto
6 Summary(pl.UTF-8):      Obsługa JSON-RPC dla libverto
7 Name:           libverto-jsonrpc
8 Version:        0.1.0
9 Release:        3
10 License:        MIT
11 Group:          Libraries
12 Source0:        https://fedorahosted.org/releases/l/i/libverto-jsonrpc/%{name}-%{version}.tar.gz
13 # Source0-md5:  5076eadc3e3b43f7139d0b8cf96e575d
14 Patch0:         %{name}-json.patch
15 URL:            https://fedorahosted.org/libverto/
16 BuildRequires:  autoconf >= 2.59
17 BuildRequires:  automake >= 1:1.11
18 BuildRequires:  json-c-devel
19 BuildRequires:  libtool >= 2:2
20 BuildRequires:  libverto-devel >= 0.2.4
21 BuildRequires:  pkgconfig
22 Requires:       libverto >= 0.2.4
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 A library for doing JSON-RPC over a socket, using the libverto API.
27
28 %description -l pl.UTF-8
29 Biblioteka do wykonywania JSON-RPC na gnieździe przy użyciu API
30 biblioteki libverto.
31
32 %package devel
33 Summary:        Header files for verto-jsonrpc library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki verto-jsonrpc
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       json-c-devel
38 Requires:       libverto-devel >= 0.2.4
39
40 %description devel
41 Header files for verto-jsonrpc library.
42
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki verto-jsonrpc.
45
46 %package static
47 Summary:        Static verto-jsonrpc library
48 Summary(pl.UTF-8):      Statyczna biblioteka verto-jsonrpc
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Static verto-jsonrpc library.
54
55 %description static -l pl.UTF-8
56 Statyczna biblioteka verto-jsonrpc.
57
58 %prep
59 %setup -q
60 %patch0 -p1
61
62 %build
63 %{__libtoolize}
64 %{__aclocal} -I m4
65 %{__autoconf}
66 %{__automake}
67 %configure \
68         --disable-silent-rules \
69         %{?with_static_libs:--enable-static}
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 # obsoleted by pkg-config
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libverto-jsonrpc.la
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post   -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
86
87 %files
88 %defattr(644,root,root,755)
89 %doc AUTHORS ChangeLog README
90 %attr(755,root,root) %{_libdir}/libverto-jsonrpc.so.*.*.*
91 %attr(755,root,root) %ghost %{_libdir}/libverto-jsonrpc.so.0
92
93 %files devel
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_libdir}/libverto-jsonrpc.so
96 %{_includedir}/verto-jsonrpc.h
97 %{_pkgconfigdir}/libverto-jsonrpc.pc
98
99 %if %{with static_libs}
100 %files static
101 %defattr(644,root,root,755)
102 %{_libdir}/libverto-jsonrpc.a
103 %endif
This page took 0.116079 seconds and 3 git commands to generate.