]> git.pld-linux.org Git - packages/dqlite.git/blob - dqlite.spec
- updated raft dependencies
[packages/dqlite.git] / dqlite.spec
1 Summary:        dqlite library - distributed SQLite engine
2 Summary(pl.UTF-8):      Biblioteka dqlite - rozproszony silnik SQLite
3 Name:           dqlite
4 Version:        1.12.0
5 Release:        1
6 License:        LGPL v3 with exception
7 Group:          Libraries
8 #Source0Download: https://github.com/canonical/dqlite/releases
9 Source0:        https://github.com/canonical/dqlite/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  700b6be842552997b18f0c43b8054676
11 URL:            https://github.com/canonical/dqlite
12 BuildRequires:  autoconf >= 2.60
13 BuildRequires:  automake >= 1:1.11
14 BuildRequires:  libtool >= 2:2
15 BuildRequires:  libuv-devel >= 1.8.0
16 BuildRequires:  pkgconfig
17 BuildRequires:  raft-devel >= 0.14.0
18 BuildRequires:  sqlite3-devel >= 3.22.0
19 Requires:       libuv >= 1.8.0
20 Requires:       raft >= 0.14.0
21 Requires:       sqlite3 >= 3.22.0
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This package provides the dqlite C library (libdqlite), which can be
26 used to expose a dqlite database over the network and replicate it
27 across a cluster of peers, using the Raft algorithm.
28
29 %description -l pl.UTF-8
30 Ten pakiet zawiera bibliotekę C dqlite (libdqlite), którą można
31 wykorzystywać do udostępnienia bazy danych dqlite przez sieć i
32 replikować ją na klaster partnerów przy użyciu algorytmu Raft.
33
34 %package devel
35 Summary:        Header files for dqlite development
36 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki dqlite
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       libuv-devel >= 1.8.0
40 Requires:       raft-devel >= 0.14.0
41 Requires:       sqlite3-devel >= 3.22.0
42
43 %description devel
44 This package contains development files for the dqlite library.
45
46 %description devel -l pl.UTF-8
47 Ten pakiet zawiera pliki nagłówkowe biblioteki dqlite.
48
49 %package static
50 Summary:        Static dqlite library
51 Summary(pl.UTF-8):      Statyczna biblioteka dqlite
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 This package contains static dqlite library.
57
58 %description static -l pl.UTF-8
59 Ten pakiet zawiera bibliotekę statyczną dqlite.
60
61 %prep
62 %setup -q
63
64 %build
65 %{__libtoolize}
66 %{__aclocal} -I m4
67 %{__autoconf}
68 %{__automake}
69 %configure \
70         --disable-silent-rules
71
72 %{__make}
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         DESTDIR=$RPM_BUILD_ROOT
79
80 # obsoleted by pkg-config
81 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdqlite.la
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)
91 %doc AUTHORS LICENSE README.md
92 %attr(755,root,root) %{_libdir}/libdqlite.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libdqlite.so.0
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libdqlite.so
98 %{_includedir}/dqlite.h
99 %{_pkgconfigdir}/dqlite.pc
100
101 %files static
102 %defattr(644,root,root,755)
103 %{_libdir}/libdqlite.a
This page took 0.181778 seconds and 4 git commands to generate.