summaryrefslogtreecommitdiffstats
path: root/libbson-dev.spec
blob: 058b1fb6c0fa967f1b8e0f0896146ff448842122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# remirepo spec file for libbson, from
#
# Fedora spec file for libbson
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please, preserve the changelog entries
#

#global prever beta1
Name:       libbson
Version:    1.4.0
Release:    1%{?dist}
Summary:    Building, parsing, and iterating BSON documents
Group:      System Environment/Libraries
## Installed:
# COPYING:                          ASL 2.0
# src/bson/b64_ntop.h:              ISC and MIT
# src/bson/b64_pton.h:              ISC and MIT
# src/bson/bson-md5.h:              zlib
# src/yajl/yajl_alloc.h:            ISC
# doc/man/bson_iter_symbol.3:       GFDL
## Not installed:
# configure:                        FSFUL
# aclocal.m4:                       FSFULLR
# Makefile.in:                      FSFULLR
# build/autotools/depcomp:          GPLv2+ with exceptions
# build/autotools/ltmain.sh:        GPLv2+ with exceptions
# build/autotools/m4/ax_pthread.m4  GPLv3+ with exception
# build/autotools/install-sh:       MIT and Public Domain
# doc/html/jquery.js:               (MIT or GPLv2) and (MIT, BSD GPL)
# doc/html/jquery.syntax.js:        MIT
# doc/mallard2man.py:               GPLv3+
# src/bson/bson-stdint-win32.h:     BSD
License:    ASL 2.0 and ISC and MIT and zlib
URL:        https://github.com/mongodb/%{name}
Source0:    %{url}/releases/download/%{version}%{?prever:-%{prever}}/%{name}-%{version}%{?prever:-%{prever}}.tar.gz
# Do not install COPYING, install ChangeLog, distribution specific
Patch0:     %{name}-1.3.1-Install-documentation-according-to-guidelines.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  libtool
BuildRequires:  python
# Modified yajl-2.0.4 is bundled, waiting on yajl upstream to merge libbson's
# changes, <https://github.com/lloyd/yajl/issues/161>,
# <https://jira.mongodb.org/browse/CDRIVER-601>, bug #1215182
Provides:       bundled(yajl) = 2.0.4

%description
This is a library providing useful routines related to building, parsing,
and iterating BSON documents <http://bsonspec.org/>.

%package devel
Summary:    Development files for %{name}
Group:      Development/Libraries
License:    ASL 2.0 and GFDL
Requires:   %{name}%{?_isa} = %{version}-%{release}
# gcc for standard library header files
Requires:   gcc%{?_isa}
Requires:   pkgconfig

%description devel
This package contains libraries and header files needed for developing
applications that use %{name}.

%prep
%setup -q -n %{name}-%{version}%{?prever:-%{prever}}

# Generate build scripts from sources
%if 0%{?fedora} >= 20 || 0%{?rhel} >= 7
%patch0 -p1
autoreconf --force --install
%endif


%build
%configure \
    --disable-coverage \
    --disable-debug \
    --disable-debug-symbols \
    --enable-extra-align \
    --disable-hardening \
    --disable-html-docs \
    --enable-ld-version-script \
    --disable-lto \
    --disable-maintainer-flags \
    --enable-man-pages \
    --disable-optimizations \
    --enable-shared \
    --disable-silent-rules \
    --disable-static \
    --disable-yelp
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}
find %{buildroot} -name '*.la' -exec rm -f '{}' +
# Install examples here because it's forbidden to use relative %%doc with
# installing into %%_pkgdocdir
install -d -m 0755 %{buildroot}%{_docdir}/%{name}-devel/examples
install -m 0644 -t %{buildroot}%{_docdir}/%{name}-devel/examples examples/*.c

%if 0%{?fedora} < 20 && 0%{?rhel} < 7
rm -f %{buildroot}%{_docdir}/%{name}/COPYING
install -d Changelog %{buildroot}%{_docdir}/%{name}/Changelog
%endif


%check
make %{?_smp_mflags} check

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%{!?_licensedir:%global license %%doc}
%license COPYING
# AUTHORS is empty, README etc. are installed by "make install"
%{_docdir}/%{name}
%{_libdir}/*.so.*

%files devel
%{_docdir}/%{name}-devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man3/*


%changelog
* Thu Aug 11 2016 Remi Collet <remi@fedoraproject.org> - 1.4.0-1
- update to 1.4.0

* Mon Aug  8 2016 Remi Collet <remi@fedoraproject.org> - 1.4.0-0.1.beta1
- update to 1.4.0-beta1

* Thu Mar 31 2016 Petr Pisar <ppisar@redhat.com> - 1.3.5-1
- 1.3.5 bump

* Tue Mar 15 2016 Remi Collet <remi@fedoraproject.org> - 1.3.4-1
- switch to Fedora spec file
- tweak install for EL-6 (don't run autoconf)

* Tue Mar 15 2016 Petr Pisar <ppisar@redhat.com> - 1.3.4-1
- 1.3.4 bump

* Sun Feb  7 2016 Remi Collet <remi@fedoraproject.org> - 1.3.3-1
- Update to 1.3.3

* Tue Feb  2 2016 Remi Collet <remi@fedoraproject.org> - 1.3.2-1
- Update to 1.3.2

* Thu Jan 21 2016 Remi Collet <remi@fedoraproject.org> - 1.3.1-1
- Update to 1.3.1
- workaround for man pages are no more generated / installed
  https://jira.mongodb.org/browse/CDRIVER-1069
- workaround for man pages installation broken
  https://jira.mongodb.org/browse/CDRIVER-1068

* Wed Dec 16 2015 Remi Collet <remi@fedoraproject.org> - 1.3.0-1
- Update to 1.3.0

* Tue Dec  8 2015 Remi Collet <remi@fedoraproject.org> - 1.2.3-1
- Update to 1.2.3 (1.3.0 not compatible with pecl/mongodb)

* Tue Dec  8 2015 Remi Collet <remi@fedoraproject.org> - 1.3.0-1
- Update to 1.3.0
- open https://jira.mongodb.org/browse/CDRIVER-1039
  libbson 1.3.0 man pages broken installation

* Wed Oct 14 2015 Remi Collet <remi@fedoraproject.org> - 1.2.0-1
- Update to 1.2.0

* Sun Oct  4 2015 Remi Collet <remi@fedoraproject.org> - 1.2.0-0.2.rc0
- Update to 1.2.0-rc0

* Wed Apr 22 2015 Remi Collet <remi@fedoraproject.org> - 1.2.0-0.1.beta
- Initial package
- https://jira.mongodb.org/browse/CDRIVER-621 - typo in man pages
- https://jira.mongodb.org/browse/CDRIVER-623 - bundled jayl