]> git.pld-linux.org Git - packages/libbson.git/blame - libbson.spec
- PLDified, release 2
[packages/libbson.git] / libbson.spec
CommitLineData
251816fb 1Summary: Building, parsing, and iterating BSON documents
5d8b8522 2Summary(pl.UTF-8): Tworzenie, analiza i przechodzenie dokumentów BSON
251816fb 3Name: libbson
40833aed 4Version: 1.9.5
5d8b8522
JB
5Release: 2
6License: Apache v2.0 and ISC and MIT and zlib
251816fb 7Group: Libraries
5d8b8522 8#Source0Download: https://github.com/mongodb/libbson/releases/
251816fb 9Source0: https://github.com/mongodb/libbson/releases/download/%{version}/%{name}-%{version}.tar.gz
40833aed 10# Source0-md5: 716127054644aec0cf751a2c0c7693b1
251816fb 11Patch0: %{name}-1.5.0-rc3-Install-documentation-according-to-guidelines.patch
0a91ed35 12Patch1: sphinx-no-fatal-warn.patch
251816fb 13URL: https://github.com/mongodb/libbson
5d8b8522 14BuildRequires: autoconf >= 2.60
251816fb 15BuildRequires: automake
5d8b8522
JB
16BuildRequires: gcc >= 6:4.1
17BuildRequires: libtool >= 2:2.2
66ef46d4 18BuildRequires: pkgconfig
251816fb
ER
19BuildRequires: sphinx-pdg
20# Modified (with bson allocator and some warning fixes and huge indentation
21# refactoring) jsonsl is bundled <https://github.com/mnunberg/jsonsl>.
22# jsonsl upstream likes copylib approach and does not plan a release
23# <https://github.com/mnunberg/jsonsl/issues/14>.
24Provides: bundled(jsonsl)
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28This is a library providing useful routines related to building,
29parsing, and iterating BSON documents <http://bsonspec.org/>.
30
5d8b8522
JB
31%description -l pl.UTF-8
32Ta biblioteka udostępnia przydatne funkcje związane z budowaniem,
33analizą i przechodzeniem dokumentów BSON (<http://bsonspec.org/>).
34
251816fb 35%package devel
5d8b8522
JB
36Summary: Development files for libbson
37Summary(pl.UTF-8): Pliki programistyczne biblioteki libbson
251816fb
ER
38License: Apache v2.0
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
41
42%description devel
5d8b8522
JB
43This package contains the header files needed for developing
44applications that use libbson.
45
46%description devel -l pl.UTF-8
47Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
48wykorzystujących bibliotekę libbson.
251816fb
ER
49
50%prep
51%setup -q
52%patch0 -p1
0a91ed35 53%patch1 -p1
251816fb
ER
54
55# Remove pregenerated documentation
5d8b8522 56%{__rm} -r doc/html/_static doc/html/*.{html,inv,js} doc/man/*.3
251816fb
ER
57
58%build
251816fb 59%{__libtoolize}
5d8b8522 60%{__aclocal} -I build/autotools/m4
251816fb
ER
61%{__autoconf}
62%{__automake}
251816fb
ER
63# Switching experimental-features support changes ABI (bson_visitor_t type)
64%configure \
65 --disable-coverage \
66 --disable-debug \
67 --disable-debug-symbols \
68 --enable-examples \
69 --enable-extra-align \
70 --disable-html-docs \
71 --enable-libtool-lock \
72 --disable-lto \
73 --disable-maintainer-flags \
74 --enable-man-pages \
75 --disable-optimizations \
76 --enable-shared \
77 --disable-silent-rules \
78 --disable-static \
89fad65f 79 %{?with_tests:--enable-tests}
251816fb
ER
80
81# Explicit man target is needed for generating manual pages.
82# If you produced HTML pages be ware doc/conf.py injects tracking JavaScript
83# code (search for add_ga_javascript function).
84%{__make} all doc/man
85
86%if %{with tests}
87%{__make} check
88%endif
89
90%install
91rm -rf $RPM_BUILD_ROOT
5d8b8522 92
251816fb
ER
93%{__make} install \
94 DESTDIR=$RPM_BUILD_ROOT
95
5d8b8522 96# obsoleted by pkg-config
251816fb 97%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbson-1.0.la
5d8b8522
JB
98# packaged as %doc
99%{__rm} $RPM_BUILD_ROOT%{_docdir}/libbson/{ChangeLog,NEWS,README}
251816fb 100
5d8b8522
JB
101install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
102cp -p examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
251816fb
ER
103
104%clean
105rm -rf $RPM_BUILD_ROOT
106
107%post -p /sbin/ldconfig
108%postun -p /sbin/ldconfig
109
110%files
111%defattr(644,root,root,755)
5d8b8522 112%doc ChangeLog NEWS README THIRD_PARTY_NOTICES
251816fb 113%attr(755,root,root) %{_libdir}/libbson-1.0.so.*.*.*
5d8b8522 114%attr(755,root,root) %ghost %{_libdir}/libbson-1.0.so.0
251816fb
ER
115
116%files devel
117%defattr(644,root,root,755)
5d8b8522 118%attr(755,root,root) %{_libdir}/libbson-1.0.so
251816fb 119%{_includedir}/libbson-1.0
251816fb 120%{_pkgconfigdir}/libbson-1.0.pc
5d8b8522 121%{_libdir}/cmake/libbson-1.0
251816fb 122%{_mandir}/man3/bson_*.3*
5d8b8522 123%{_examplesdir}/%{name}-%{version}
This page took 0.118399 seconds and 4 git commands to generate.