[btparser] minor build fixes

Jiří Moskovčák jmoskovc at fedoraproject.org
Thu Aug 2 12:25:20 UTC 2012


commit eeb74f2b5c44b05f3efc18840e17581c15105873
Author: Jiri Moskovcak <jmoskovc at redhat.com>
Date:   Thu Aug 2 14:17:56 2012 +0200

    minor build fixes

 btparser.spec |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/btparser.spec b/btparser.spec
index 22297df..c8d2d58 100644
--- a/btparser.spec
+++ b/btparser.spec
@@ -1,3 +1,5 @@
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
 Name: btparser
 Version: 0.18
 Release: 2%{?dist}
@@ -6,7 +8,21 @@ Group: Development/Libraries
 License: GPLv2+
 URL: http://fedorahosted.org/btparser
 Source0: https://fedorahosted.org/released/btparser/btparser-%{version}.tar.xz
+BuildRequires: glib2-devel >= 2.21
+%if 0%{?suse_version}
+BuildRequires: python-devel
+BuildRequires: libelf-devel
+Requires: libelf
+%else
 BuildRequires: python2-devel
+BuildRequires: elfutils-devel
+BuildRequires: elfutils-libelf-devel
+Requires: elfutils-libs
+Requires: elfutils-libelf
+%endif
+BuildRequires: binutils-devel
+Requires: glib2 >= 2.21
+Requires: binutils
 
 %description
 Btparser is a backtrace parser and analyzer, which works with
@@ -77,6 +93,9 @@ make check
 %{python_sitearch}/%{name}/*
 
 %changelog
+* Thu Aug 02 2012 Jiri Moskovcak <jmoskovc at redhat.com> - 0.18-2
+- build fixes
+
 * Tue Jul 31 2012 Jiri Moskovcak <jmoskovc at redhat.com> - 0.18-1
 - New upstream release
 


More information about the scm-commits mailing list