summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-08-02 11:19:58 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-08-02 11:19:58 +0200
commit2b16f5c5f91f6e90ca6b627daad11cb635dbaed8 (patch)
tree95626bba6231d9a52e0f1d04a8628b8caf129081 /redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec
parent14b5a10d92e8fc60d481aba0b9f690c851ed8b71 (diff)
downloadtde-packaging-2b16f5c5f91f6e90ca6b627daad11cb635dbaed8.tar.gz
tde-packaging-2b16f5c5f91f6e90ca6b627daad11cb635dbaed8.zip
Mageia 2: add support for MGA2 build in redhat packages
Diffstat (limited to 'redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec')
-rw-r--r--redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec23
1 files changed, 14 insertions, 9 deletions
diff --git a/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec b/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec
index 8020e2ee2..40247558e 100644
--- a/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec
+++ b/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec
@@ -3,6 +3,9 @@
%define _variant .opt
%endif
+%define tde_includedir %{_prefix}/include
+%define tde_libdir %{_prefix}/%{_lib}
+
Name: dbus-tqt
Version: 3.5.13
Release: 3%{?dist}%{?_variant}
@@ -28,7 +31,6 @@ BuildRequires: qt3-devel >= 3.3.8.d
Requires: qt3 >= 3.3.8.d
-#Provides: dbus-qt
%description
Dbus TQT Interface
@@ -49,10 +51,13 @@ Development files for %{name}
%build
unset QTDIR || : ; . /etc/profile.d/qt.sh
+export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
-%__mkdir build
-cd build
-%cmake ..
+%{?!mgaversion:%__mkdir build; cd build}
+%cmake \
+ -DINCLUDE_INSTALL_DIR=%{tde_includedir} \
+ -DLIB_INSTALL_DIR=%{tde_libdir} \
+ ..
%__make %{?_smp_mflags}
@@ -66,13 +71,13 @@ cd build
%__rm -rf %{?buildroot}
%files
-%{_libdir}/*.so.*
+%{tde_libdir}/*.so.*
%files devel
-%{_includedir}/dbus-1.0/*
-%{_libdir}/*.so
-%{_libdir}/*.la
-%{_libdir}/pkgconfig/*.pc
+%{tde_includedir}/dbus-1.0/*
+%{tde_libdir}/*.so
+%{tde_libdir}/*.la
+%{tde_libdir}/pkgconfig/*.pc
%changelog
* Wed May 02 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-3