diff --git a/dwarves.changes b/dwarves.changes index 8d8d5ed..33076c6 100644 --- a/dwarves.changes +++ b/dwarves.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 1 14:38:32 UTC 2017 - mpluskal@suse.com + +- Use cmake macros + ------------------------------------------------------------------- Thu Jan 22 08:47:19 UTC 2015 - dimstar@opensuse.org diff --git a/dwarves.spec b/dwarves.spec index 49daf8e..d2a0456 100644 --- a/dwarves.spec +++ b/dwarves.spec @@ -1,7 +1,7 @@ # # spec file for package dwarves # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -23,14 +23,12 @@ Summary: DWARF utilities License: GPL-2.0 Group: Development/Tools/Debuggers Url: http://acmel.wordpress.com/ - #Git-Clone: git://git.kernel.org/pub/scm/devel/pahole/pahole #Git-Web: http://git.kernel.org/cgit/devel/pahole/pahole.git #DL-URL: http://fedorapeople.org/~acme/dwarves/ Source: http://fedorapeople.org/~acme/dwarves/%name-%version.tar.bz2 Source2: baselibs.conf Patch1: dwarves-no-DW_TAG_mutable.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake BuildRequires: libdw-devel >= 0.142 BuildRequires: libebl-devel @@ -38,6 +36,7 @@ BuildRequires: libelf-devel BuildRequires: zlib-devel # Also known by its most prominent tool Provides: pahole = %version-%release +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description dwarves is a set of tools that use the DWARF debugging information @@ -66,7 +65,7 @@ improvements in this area! Summary: DWARF processing libraries of dwarves tools Group: System/Libraries -%description -n libdwarves1 +%description -n libdwarves1 This package contains the libdwarves shared library for the dwarves toolset, providing processing for DWARF, a debugging data format for ELF files. @@ -89,14 +88,13 @@ for processing DWARF, a debugging data format for ELF files. %patch -P 1 -p1 %build -export CFLAGS="%optflags" -cmake -DCMAKE_INSTALL_PREFIX="%_prefix" -D__LIB="%_lib" . +%cmake make %{?_smp_mflags} %install -make install DESTDIR="%buildroot" +%cmake_install -%post -n libdwarves1 -p /sbin/ldconfig +%post -n libdwarves1 -p /sbin/ldconfig %postun -n libdwarves1 -p /sbin/ldconfig %files