From fd7d41f1495c9e8a28dce5ddd3d6edb2da6d97d6e25cd479d99b3ac3102b81b5 Mon Sep 17 00:00:00 2001 From: andrea florio Date: Thu, 28 Jul 2011 14:42:13 +0000 Subject: [PATCH] Accepting request 77331 from home:Heinervdm:branches:Education Remove libQtWebKit-devel and add Fedora packages * libQtWebKit is not required to build fritzing * added some if's to make this package build for fedora too OBS-URL: https://build.opensuse.org/request/show/77331 OBS-URL: https://build.opensuse.org/package/show/Education/fritzing?expand=0&rev=3 --- fritzing.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/fritzing.spec b/fritzing.spec index 789af2d..e40afae 100644 --- a/fritzing.spec +++ b/fritzing.spec @@ -18,8 +18,11 @@ Source2: fritzing.1 # will require a more thorough approach from the Fritzing team eventually. #Patch0: fritzing-fix-app-folder.patch BuildRequires: desktop-file-utils -BuildRequires: libQtWebKit-devel BuildRequires: libqt4-devel +%if 0%{?fedora} +BuildRequires: qt gcc-c++ libstdc++-devel +%endif + BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -36,7 +39,15 @@ sed -i 's/\r//' README.txt #%patch0 %build +%if 0%{?mandriva_version} +export PATH=/usr/lib/qt4/bin:$PATH +export QTDIR=%{_prefix}/lib/qt4/ +%endif +%if 0%{?fedora} || 0%{?rhel_version} +qmake-qt4 +%else qmake +%endif make %{?_smp_mflags} %install