From 2b16f5c5f91f6e90ca6b627daad11cb635dbaed8 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Thu, 2 Aug 2012 11:19:58 +0200 Subject: Mageia 2: add support for MGA2 build in redhat packages --- .../dependencies/dbus-1-tqt/dbus-1-tqt-3.5.13.spec | 26 ++++++++++++++-------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'redhat/dependencies/dbus-1-tqt') diff --git a/redhat/dependencies/dbus-1-tqt/dbus-1-tqt-3.5.13.spec b/redhat/dependencies/dbus-1-tqt/dbus-1-tqt-3.5.13.spec index 125031f36..fbbb1c381 100644 --- a/redhat/dependencies/dbus-1-tqt/dbus-1-tqt-3.5.13.spec +++ b/redhat/dependencies/dbus-1-tqt/dbus-1-tqt-3.5.13.spec @@ -3,6 +3,10 @@ %define _variant .opt %endif +%define tde_bindir %{_prefix}/bin +%define tde_includedir %{_prefix}/include +%define tde_libdir %{_prefix}/%{_lib} + Name: dbus-1-tqt Version: 3.5.13 Release: 1%{?dist}%{?_variant} @@ -46,10 +50,14 @@ Development files for %{name} %build unset QTDIR || : ; . /etc/profile.d/qt.sh +export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" + +%{?!mgaversion:%__mkdir build; cd build} +%cmake \ + -DINCLUDE_INSTALL_DIR=%{tde_includedir} \ + -DLIB_INSTALL_DIR=%{tde_libdir} \ + .. -%__mkdir build -cd build -%cmake .. %__make %{?_smp_mflags} @@ -62,14 +70,14 @@ cd build %__rm -rf %{?buildroot} %files -%{_bindir}/dbusxml2qt3 -%{_libdir}/*.so.* +%{tde_bindir}/dbusxml2qt3 +%{tde_libdir}/*.so.* %files devel -%{_includedir}/*.h -%{_libdir}/*.so -%{_libdir}/*.la -%{_libdir}/pkgconfig/*.pc +%{tde_includedir}/*.h +%{tde_libdir}/*.so +%{tde_libdir}/*.la +%{tde_libdir}/pkgconfig/*.pc %changelog * Tue Nov 11 2011 Francois Andriot - 3.5.13-1 -- cgit v1.2.1