SHA256
1
0
forked from pool/dwarves

Accepting request 453924 from devel:tools

1

OBS-URL: https://build.opensuse.org/request/show/453924
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dwarves?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2017-02-02 14:44:25 +00:00 committed by Git OBS Bridge
commit 136073b9e6
2 changed files with 11 additions and 8 deletions

View File

@ -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 Thu Jan 22 08:47:19 UTC 2015 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package dwarves # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -23,14 +23,12 @@ Summary: DWARF utilities
License: GPL-2.0 License: GPL-2.0
Group: Development/Tools/Debuggers Group: Development/Tools/Debuggers
Url: http://acmel.wordpress.com/ Url: http://acmel.wordpress.com/
#Git-Clone: git://git.kernel.org/pub/scm/devel/pahole/pahole #Git-Clone: git://git.kernel.org/pub/scm/devel/pahole/pahole
#Git-Web: http://git.kernel.org/cgit/devel/pahole/pahole.git #Git-Web: http://git.kernel.org/cgit/devel/pahole/pahole.git
#DL-URL: http://fedorapeople.org/~acme/dwarves/ #DL-URL: http://fedorapeople.org/~acme/dwarves/
Source: http://fedorapeople.org/~acme/dwarves/%name-%version.tar.bz2 Source: http://fedorapeople.org/~acme/dwarves/%name-%version.tar.bz2
Source2: baselibs.conf Source2: baselibs.conf
Patch1: dwarves-no-DW_TAG_mutable.patch Patch1: dwarves-no-DW_TAG_mutable.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake BuildRequires: cmake
BuildRequires: libdw-devel >= 0.142 BuildRequires: libdw-devel >= 0.142
BuildRequires: libebl-devel BuildRequires: libebl-devel
@ -38,6 +36,7 @@ BuildRequires: libelf-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
# Also known by its most prominent tool # Also known by its most prominent tool
Provides: pahole = %version-%release Provides: pahole = %version-%release
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
dwarves is a set of tools that use the DWARF debugging information 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 Summary: DWARF processing libraries of dwarves tools
Group: System/Libraries Group: System/Libraries
%description -n libdwarves1 %description -n libdwarves1
This package contains the libdwarves shared library for the dwarves This package contains the libdwarves shared library for the dwarves
toolset, providing processing for DWARF, a debugging data format toolset, providing processing for DWARF, a debugging data format
for ELF files. for ELF files.
@ -89,14 +88,13 @@ for processing DWARF, a debugging data format for ELF files.
%patch -P 1 -p1 %patch -P 1 -p1
%build %build
export CFLAGS="%optflags" %cmake
cmake -DCMAKE_INSTALL_PREFIX="%_prefix" -D__LIB="%_lib" .
make %{?_smp_mflags} make %{?_smp_mflags}
%install %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 %postun -n libdwarves1 -p /sbin/ldconfig
%files %files