dwarves/dwarves.spec

94 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package dwarves (Version 1.8)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: dwarves
Url: http://oops.ghostprotocols.net:81/blog
Summary: DWARF utilities
Version: 1.8
Release: 2
License: GPLv2
Group: System/Libraries
Source: http://fedorapeople.org/~acme/dwarves/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake libdw-devel libdwarf-devel libebl-devel libelf-devel
BuildRequires: libelf zlib-devel
Requires: libdwarves1 = %{version}
%requires_eq libebl
%requires_eq libdwarf
%description
DWARF utitlies
Authors:
--------
Arnaldo Carvalho de Melo <acme@redhat.com>
%package -n libdwarves1
Summary: DWARF processing libraries of dwarves tools
Group: Development/Libraries
%description -n libdwarves1
DWARF library of dwarves tools
%package -n libdwarves-devel
Summary: DWARF processing library development files
Group: Development/Libraries
Requires: libdwarves1 = %{version}-%{release}
%description -n libdwarves-devel
DWARF processing library development files
Authors:
--------
Arnaldo Carvalho de Melo <acme@redhat.com>
%prep
%setup -q -c
%build
export CFLAGS="$RPM_OPT_FLAGS"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -D__LIB=%{_lib} .
make
%install
make DESTDIR=%{buildroot} install
%post -n libdwarves1 -p /sbin/ldconfig
%postun -n libdwarves1 -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README NEWS
%{_bindir}/*
%{_mandir}/man1/pahole.1*
%files -n libdwarves1
%defattr(-,root,root)
%{_libdir}/*.*so.*
%files -n libdwarves-devel
%defattr(-,root,root)
%{_libdir}/*.*so
%{_includedir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%changelog
* Fri Feb 29 2008 dmueller@suse.de
- update to 1.6 release
* Sat Dec 01 2007 dgollub@suse.de
- initial package of dwarves