]> git.pld-linux.org Git - packages/libmongo-client.git/blame - libmongo-client.spec
- updated to 0.1.8
[packages/libmongo-client.git] / libmongo-client.spec
CommitLineData
8bef12f6
JB
1Summary: Alternative C driver for MongoDB
2Summary(pl.UTF-8): Alternatywny interfejs C do MongoDB
3Name: libmongo-client
b767cc44 4Version: 0.1.8
8bef12f6
JB
5Release: 1
6License: Apache v2.0
7Group: Libraries
790c50dc 8Source0: https://github.com/algernon/libmongo-client/archive/%{name}-%{version}.tar.gz
b767cc44 9# Source0-md5: deef5bdfd48f2542461dd0a0aa34add6
8bef12f6
JB
10URL: https://github.com/algernon/libmongo-client
11BuildRequires: autoconf >= 2.50
12BuildRequires: automake >= 1:1.9
13BuildRequires: glib2-devel >= 1:2.16.0
14BuildRequires: libtool >= 2:2.0
15BuildRequires: pkgconfig
16Requires: glib2 >= 1:2.16.0
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define _noautocompressdoc *.h
20
21%description
22This is an alternative C driver for MongoDB, with slightly different
23goals than the official one: libmongo-client is meant to be a stable
24(API, ABI and quality alike), clean, well documented and well tested
25shared library, that strives to make the most common use cases as
26convenient as possible.
27
28%description -l pl.UTF-8
29libmongo-client to alternatywny sterownik (interfejs) C dla MongoDB,
30mający nieco inne cele niż oficjalny: libmongo-client ma być stabilną
31(zarówno pod kątem API, ABI i jakości), przejrzystą, dobrze
32udokumentowaną i dobrze przetestowaną biblioteką współdzieloną,
33możliwie najwygodniejszą w większości zastosowań.
34
35%package devel
36Summary: Header files for libmongo-client library
37Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmongo-client
38Group: Development/Libraries
39Requires: %{name} = %{version}-%{release}
40Requires: glib2-devel >= 1:2.16.0
41
42%description devel
43Header files for libmongo-client library.
44
45%description devel -l pl.UTF-8
46Pliki nagłówkowe biblioteki libmongo-client.
47
48%package static
49Summary: Static libmongo-client library
50Summary(pl.UTF-8): Statyczna biblioteka libmongo-client
51Group: Development/Libraries
52Requires: %{name}-devel = %{version}-%{release}
53
54%description static
55Static libmongo-client library.
56
57%description static -l pl.UTF-8
58Statyczna 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
74rm -rf $RPM_BUILD_ROOT
75install -d $RPM_BUILD_ROOT%{_examplesdir}
76
77%{__make} install \
78 DESTDIR=$RPM_BUILD_ROOT
79
80cp -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
86rm -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
This page took 0.130674 seconds and 4 git commands to generate.