[packages/libbson] - PLDified, release 2
qboosh
qboosh at pld-linux.org
Sat Mar 30 17:13:37 CET 2019
commit 5d8b8522fa5ab2991a0ac7982cfefd6dc708fdb3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 30 17:19:39 2019 +0100
- PLDified, release 2
libbson.spec | 54 ++++++++++++++++++++++++++++++++----------------------
1 file changed, 32 insertions(+), 22 deletions(-)
---
diff --git a/libbson.spec b/libbson.spec
index 9ae6b0b..c58fff7 100644
--- a/libbson.spec
+++ b/libbson.spec
@@ -1,18 +1,20 @@
Summary: Building, parsing, and iterating BSON documents
+Summary(pl.UTF-8): Tworzenie, analiza i przechodzenie dokumentów BSON
Name: libbson
Version: 1.9.5
-Release: 1
-License: ASL 2.0 and ISC and MIT and zlib
+Release: 2
+License: Apache v2.0 and ISC and MIT and zlib
Group: Libraries
+#Source0Download: https://github.com/mongodb/libbson/releases/
Source0: https://github.com/mongodb/libbson/releases/download/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 716127054644aec0cf751a2c0c7693b1
Patch0: %{name}-1.5.0-rc3-Install-documentation-according-to-guidelines.patch
Patch1: sphinx-no-fatal-warn.patch
URL: https://github.com/mongodb/libbson
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.60
BuildRequires: automake
-BuildRequires: coreutils
-BuildRequires: libtool
+BuildRequires: gcc >= 6:4.1
+BuildRequires: libtool >= 2:2.2
BuildRequires: pkgconfig
BuildRequires: sphinx-pdg
# Modified (with bson allocator and some warning fixes and huge indentation
@@ -26,15 +28,24 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
This is a library providing useful routines related to building,
parsing, and iterating BSON documents <http://bsonspec.org/>.
+%description -l pl.UTF-8
+Ta biblioteka udostępnia przydatne funkcje związane z budowaniem,
+analizą i przechodzeniem dokumentów BSON (<http://bsonspec.org/>).
+
%package devel
-Summary: Development files for %{name}
+Summary: Development files for libbson
+Summary(pl.UTF-8): Pliki programistyczne biblioteki libbson
License: Apache v2.0
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-This package contains libraries and header files needed for developing
-applications that use %{name}.
+This package contains the header files needed for developing
+applications that use libbson.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
+wykorzystujących bibliotekę libbson.
%prep
%setup -q
@@ -42,14 +53,13 @@ applications that use %{name}.
%patch1 -p1
# Remove pregenerated documentation
-rm -r doc/html/_static doc/html/*.{html,inv,js} doc/man/*.3
+%{__rm} -r doc/html/_static doc/html/*.{html,inv,js} doc/man/*.3
%build
-%{__aclocal} -I build/autotools/m4
%{__libtoolize}
+%{__aclocal} -I build/autotools/m4
%{__autoconf}
%{__automake}
-
# Switching experimental-features support changes ABI (bson_visitor_t type)
%configure \
--disable-coverage \
@@ -79,15 +89,17 @@ rm -r doc/html/_static doc/html/*.{html,inv,js} doc/man/*.3
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbson-1.0.la
+# packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/libbson/{ChangeLog,NEWS,README}
-# Install examples here because it's forbidden to use relative %%doc with
-# installing into %%_pkgdocdir
-install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-devel/examples
-install -t $RPM_BUILD_ROOT%{_docdir}/%{name}-devel/examples examples/*.c
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -p examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -97,17 +109,15 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc COPYING THIRD_PARTY_NOTICES
-# AUTHORS is empty, README etc. are installed by "make install"
-%{_docdir}/%{name}
+%doc ChangeLog NEWS README THIRD_PARTY_NOTICES
%attr(755,root,root) %{_libdir}/libbson-1.0.so.*.*.*
-%ghost %{_libdir}/libbson-1.0.so.0
+%attr(755,root,root) %ghost %{_libdir}/libbson-1.0.so.0
%files devel
%defattr(644,root,root,755)
-%{_docdir}/%{name}-devel
+%attr(755,root,root) %{_libdir}/libbson-1.0.so
%{_includedir}/libbson-1.0
-%{_libdir}/libbson-1.0.so
-%{_libdir}/cmake/libbson-1.0
%{_pkgconfigdir}/libbson-1.0.pc
+%{_libdir}/cmake/libbson-1.0
%{_mandir}/man3/bson_*.3*
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libbson.git/commitdiff/5d8b8522fa5ab2991a0ac7982cfefd6dc708fdb3
More information about the pld-cvs-commit
mailing list