summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/librpm-tizen.changes3
-rw-r--r--packaging/librpm-tizen.spec6
2 files changed, 8 insertions, 1 deletions
diff --git a/packaging/librpm-tizen.changes b/packaging/librpm-tizen.changes
index 541a33b6b..3b3fd68c9 100644
--- a/packaging/librpm-tizen.changes
+++ b/packaging/librpm-tizen.changes
@@ -1,3 +1,6 @@
+* Thu Feb 22 2013 Qiang Zhang <qiang.z.zhang@intel.com> 4.10.91.tizen20121215
+- packaging: fix build for CentOS
+
* Thu Feb 21 2013 Markus Lehtonen <markus.lehtonen@linux.intel.com> 4.10.91.tizen20121215
- packaging: Drop bdb sources
- packaging: fix build for Fedora (18)
diff --git a/packaging/librpm-tizen.spec b/packaging/librpm-tizen.spec
index e9db6ae04..21b0b0592 100644
--- a/packaging/librpm-tizen.spec
+++ b/packaging/librpm-tizen.spec
@@ -18,7 +18,7 @@ BuildRequires: gzip
BuildRequires: libtool
BuildRequires: make
BuildRequires: patch
-%if 0%{?fedora}
+%if 0%{?fedora} || 0%{?centos_version}
BuildRequires: popt-devel
%else
BuildRequires: pkgconfig(popt)
@@ -26,7 +26,11 @@ BuildRequires: pkgconfig(popt)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(nss)
BuildRequires: pkg-config
+%if 0%{?centos_version}
+BuildRequires: python-devel
+%else
BuildRequires: pkgconfig(python) >= 2.6
+%endif
# Disable security
%if 0
BuildRequires: uthash-devel