From f65d7ac8ca7de07e0da8d458e62f4e490e4758d59a69b8659926a4dd0ede7de6 Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Thu, 26 Nov 2015 08:23:38 +0000 Subject: [PATCH] - BuildRequire python-sphinx so that the documentation can be built. - BuildRequire makeinfo and libzip. - Build man pagres and info documentation and package them. - Enable support for creating zip archives. OBS-URL: https://build.opensuse.org/package/show/devel:tools/libabigail?expand=0&rev=7 --- libabigail.changes | 7 +++++++ libabigail.spec | 30 +++++++++++++++++++++++++----- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/libabigail.changes b/libabigail.changes index 0d35a8b..7c32625 100644 --- a/libabigail.changes +++ b/libabigail.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Nov 26 09:20:57 CET 2015 - pth@suse.de + +- BuildRequire python-sphinx so that the documentation can be built. +- BuildRequire makeinfo. +- Build man pagres and info documentation and package them. + ------------------------------------------------------------------- Sun Mar 1 09:50:56 UTC 2015 - jengelh@inai.de diff --git a/libabigail.spec b/libabigail.spec index 837a210..a1f7c33 100644 --- a/libabigail.spec +++ b/libabigail.spec @@ -1,7 +1,7 @@ # # spec file for package libabigail # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -35,10 +35,14 @@ BuildRequires: gcc-c++ >= 4.7 BuildRequires: libdw-devel BuildRequires: libebl-devel BuildRequires: libtool >= 2.2 +BuildRequires: libzip-devel +BuildRequires: makeinfo BuildRequires: pkg-config +BuildRequires: python-sphinx BuildRequires: xz BuildRequires: pkgconfig(libxml-2.0) >= 2.6.22 BuildRequires: pkgconfig(libzip) >= 0.10 +PreReq: %install_info_prereq %description ABIGAIL constructs, manipulates, (de-)serializes ABI-relevant @@ -47,8 +51,8 @@ artifacts, such as types, variable, fonctions and declarations %package -n %lname Summary: Application Binary Interface Generic Analysis and Instrumentation Library -Group: System/Libraries License: LGPL-3.0+ +Group: System/Libraries %description -n %lname ABIGAIL constructs, manipulates, (de-)serializes ABI-relevant @@ -60,8 +64,8 @@ interesting conclusions about these differences. %package devel Summary: Development files for the ABI-relevant artifact library -Group: Development/Libraries/C and C++ License: LGPL-3.0+ +Group: Development/Libraries/C and C++ Requires: %lname = %version %description devel @@ -75,8 +79,8 @@ This subpackage contains the files needed to build programs with ABIGAIL. %package tools Summary: Utilities to inspect ABI-relevant artifacts -Group: Development/Tools/Other License: LGPL-3.0+ +Group: Development/Tools/Other %description tools ABIGAIL constructs, manipulates, (de-)serializes ABI-relevant @@ -92,16 +96,26 @@ interesting conclusions about these differences. %build autoreconf -fiv %configure --includedir="%_includedir/%name" --docdir="%_docdir/%name" \ - --disable-static --enable-cxx11 + --disable-static --enable-cxx11 --disable-silent-rules make %{?_smp_mflags} +pushd doc/manuals +make man info +popd %install %make_install rm -f "%buildroot/%_libdir"/*.la +pushd doc/manuals +make DESTDIR=%buildroot install-man-and-info-doc +popd + %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig +%post tools %install_info abigail +%postun tools %install_info abigail + %files -n %lname %defattr(-,root,root) %_libdir/libabigail.so.0* @@ -112,10 +126,16 @@ rm -f "%buildroot/%_libdir"/*.la %_libdir/libabigail.so %_libdir/pkgconfig/*.pc %_datadir/aclocal/ +%_mandir/man7/libabigail.7.gz %files tools %defattr(-,root,root) %doc COPYING* %_bindir/abi* +%_mandir/man7/abicompat.7.gz +%_mandir/man7/abidiff.7.gz +%_mandir/man7/abidw.7.gz +%_mandir/man7/abilint.7.gz +%_infodir/abigail.info.gz %changelog