]>
Commit | Line | Data |
---|---|---|
e295dd53 AM |
1 | Summary: %{name} library |
2 | Summary(pl.UTF-8): Biblioteka %{name} | |
3 | Name: dqlite | |
4 | Version: 0.2.4 | |
0da1dd5d | 5 | Release: 2 |
e295dd53 AM |
6 | License: Public Domain |
7 | Group: Libraries | |
8 | Source0: https://github.com/CanonicalLtd/dqlite/archive/v%{version}.tar.gz | |
9 | # Source0-md5: 35a3001090b7df1a679bfc4ac996b8b6 | |
10 | URL: https://github.com/CanonicalLtd/dqlite | |
11 | BuildRequires: autoconf >= 2.50 | |
12 | BuildRequires: automake | |
13 | BuildRequires: libtool | |
fb824929 AM |
14 | BuildRequires: sqlite3-devel(wal_replication) |
15 | Requires: sqlite3(wal_replication) | |
e295dd53 AM |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
e295dd53 AM |
18 | %description |
19 | This repository provides the dqlite C library (libdqlite), which can | |
20 | be used to expose a %{name} database over the network and replicate it | |
21 | across a cluster of peers, using the Raft algorithm. | |
22 | ||
23 | %package devel | |
24 | Summary: Header files for %{name} development | |
25 | Summary(pl.UTF-8): Pliki nagłówkowe %{name} | |
26 | Group: Development/Libraries | |
fb824929 AM |
27 | Requires: %{name} = %{version}-%{release} |
28 | Requires: sqlite3-devel(wal_replication) | |
e295dd53 AM |
29 | |
30 | %description devel | |
31 | This package contains development files for the %{name} library. | |
32 | ||
33 | %package static | |
34 | Summary: Static libraries for %{name} development | |
35 | Summary(pl.UTF-8): Statyczne biblioteki %{name} | |
36 | Group: Development/Libraries | |
37 | Requires: %{name}-devel = %{version}-%{release} | |
38 | ||
39 | %description static | |
40 | This package contains static %{name} library. | |
41 | ||
42 | %prep | |
43 | %setup -q | |
44 | ||
45 | %build | |
46 | %{__libtoolize} | |
47 | %{__aclocal} | |
48 | %{__autoheader} | |
49 | %{__autoconf} | |
50 | %{__automake} | |
51 | ||
52 | %configure \ | |
53 | --disable-silent-rules | |
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %post -p /sbin/ldconfig | |
66 | %postun -p /sbin/ldconfig | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc README.md | |
71 | %attr(755,root,root) %{_libdir}/libdqlite.so.*.*.* | |
72 | %attr(755,root,root) %ghost %{_libdir}/libdqlite.so.0 | |
73 | ||
74 | %files devel | |
75 | %defattr(644,root,root,755) | |
76 | %attr(755,root,root) %{_libdir}/libdqlite.so | |
77 | %{_libdir}/libdqlite.la | |
78 | %{_includedir}/dqlite.h | |
79 | %{_pkgconfigdir}/dqlite.pc | |
80 | ||
81 | %files static | |
82 | %defattr(644,root,root,755) | |
83 | %{_libdir}/libdqlite.a |