]>
Commit | Line | Data |
---|---|---|
8bef12f6 JB |
1 | Summary: Alternative C driver for MongoDB |
2 | Summary(pl.UTF-8): Alternatywny interfejs C do MongoDB | |
3 | Name: libmongo-client | |
b767cc44 | 4 | Version: 0.1.8 |
8bef12f6 JB |
5 | Release: 1 |
6 | License: Apache v2.0 | |
7 | Group: Libraries | |
790c50dc | 8 | Source0: https://github.com/algernon/libmongo-client/archive/%{name}-%{version}.tar.gz |
b767cc44 | 9 | # Source0-md5: deef5bdfd48f2542461dd0a0aa34add6 |
8bef12f6 JB |
10 | URL: https://github.com/algernon/libmongo-client |
11 | BuildRequires: autoconf >= 2.50 | |
12 | BuildRequires: automake >= 1:1.9 | |
13 | BuildRequires: glib2-devel >= 1:2.16.0 | |
14 | BuildRequires: libtool >= 2:2.0 | |
15 | BuildRequires: pkgconfig | |
16 | Requires: glib2 >= 1:2.16.0 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _noautocompressdoc *.h | |
20 | ||
21 | %description | |
22 | This is an alternative C driver for MongoDB, with slightly different | |
23 | goals than the official one: libmongo-client is meant to be a stable | |
24 | (API, ABI and quality alike), clean, well documented and well tested | |
25 | shared library, that strives to make the most common use cases as | |
26 | convenient as possible. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | libmongo-client to alternatywny sterownik (interfejs) C dla MongoDB, | |
30 | mający nieco inne cele niż oficjalny: libmongo-client ma być stabilną | |
31 | (zarówno pod kątem API, ABI i jakości), przejrzystą, dobrze | |
32 | udokumentowaną i dobrze przetestowaną biblioteką współdzieloną, | |
33 | możliwie najwygodniejszą w większości zastosowań. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for libmongo-client library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmongo-client | |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | Requires: glib2-devel >= 1:2.16.0 | |
41 | ||
42 | %description devel | |
43 | Header files for libmongo-client library. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe biblioteki libmongo-client. | |
47 | ||
48 | %package static | |
49 | Summary: Static libmongo-client library | |
50 | Summary(pl.UTF-8): Statyczna biblioteka libmongo-client | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static libmongo-client library. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczna biblioteka libmongo-client. | |
59 | ||
60 | %prep | |
63d3429c | 61 | %setup -q -n %{name}-%{name}-%{version} |
8bef12f6 JB |
62 | |
63 | %build | |
64 | %{__libtoolize} | |
65 | %{__aclocal} | |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
69 | %configure \ | |
70 | --disable-silent-rules | |
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | install -d $RPM_BUILD_ROOT%{_examplesdir} | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | cp -a docs/tutorial/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
81 | ||
82 | # obsoleted by pkg-config | |
83 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmongo-client.la | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
fef9e42a | 93 | %doc NEWS README.md |
8bef12f6 JB |
94 | %attr(755,root,root) %{_libdir}/libmongo-client.so.*.*.* |
95 | %attr(755,root,root) %ghost %{_libdir}/libmongo-client.so.0 | |
96 | ||
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %doc docs/tutorial/*.h | |
100 | %attr(755,root,root) %{_libdir}/libmongo-client.so | |
101 | %{_includedir}/mongo-client | |
102 | %{_pkgconfigdir}/libmongo-client.pc | |
103 | %{_examplesdir}/%{name}-%{version} | |
104 | ||
105 | %files static | |
106 | %defattr(644,root,root,755) | |
107 | %{_libdir}/libmongo-client.a |