diff options
author | Francois Andriot <francois.andriot@free.fr> | 2012-08-03 13:59:43 +0200 |
---|---|---|
committer | Francois Andriot <francois.andriot@free.fr> | 2012-08-03 13:59:43 +0200 |
commit | be9f9f70d960e0789e024c8285dc681302c3c3f1 (patch) | |
tree | bc4c568eb13a62af120ba51f9145337541b35be3 /redhat/dependencies | |
parent | 1f76bf54b70463addf27bc503bb58af60dc8ae58 (diff) | |
download | tde-packaging-be9f9f70d960e0789e024c8285dc681302c3c3f1.tar.gz tde-packaging-be9f9f70d960e0789e024c8285dc681302c3c3f1.zip |
RHEL/Fedora: adds support for Mandriva 2011 in packaging
Diffstat (limited to 'redhat/dependencies')
9 files changed, 173 insertions, 68 deletions
diff --git a/redhat/dependencies/arts/trinity-arts-3.5.13.spec b/redhat/dependencies/arts/trinity-arts-3.5.13.spec index 12b0b19e6..9b42341fe 100755 --- a/redhat/dependencies/arts/trinity-arts-3.5.13.spec +++ b/redhat/dependencies/arts/trinity-arts-3.5.13.spec @@ -1,13 +1,15 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt %endif -%define tde_bindir %{_prefix}/bin -%define tde_includedir %{_prefix}/include -%define tde_libdir %{_prefix}/%{_lib} +%define tde_bindir %{tde_prefix}/bin +%define tde_includedir %{tde_prefix}/include +%define tde_libdir %{tde_prefix}/%{_lib} -%define _docdir %{_prefix}/share/doc +%define tde_tdeincludedir %{tde_includedir}/kde + +%define _docdir %{tde_prefix}/share/doc Name: trinity-arts Version: 3.5.13 @@ -20,7 +22,7 @@ Vendor: Trinity Project URL: http://www.trinitydesktop.org/ Packager: Francois Andriot <francois.andriot@free.fr> -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: arts-%{version}.tar.gz @@ -39,7 +41,7 @@ BuildRequires: gsl-devel BuildRequires: libvorbis-devel BuildRequires: esound-devel -%if 0%{?mgaversion} +%if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}jack-devel BuildRequires: %{_lib}ltdl-devel %else @@ -53,7 +55,7 @@ BuildRequires: cmake >= 2.8 Requires: tqtinterface Requires: audiofile -%if "%{?_prefix}" == "/usr" +%if "%{?tde_prefix}" == "/usr" Obsoletes: arts %endif @@ -90,9 +92,15 @@ Development files for %{name} unset QTDIR || : ; . /etc/profile.d/qt.sh export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" -%{?!mgaversion:%__mkdir build; cd build} +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build +cd build +%endif + %cmake \ - -DINCLUDE_INSTALL_DIR=%{tde_includedir}/arts \ + -DCMAKE_INSTALL_PREFIX=%{tde_prefix} \ + -DBIN_INSTALL_DIR=%{tde_bindir} \ + -DINCLUDE_INSTALL_DIR=%{tde_tdeincludedir}/arts \ -DLIB_INSTALL_DIR=%{tde_libdir} \ -DPKGCONFIG_INSTALL_DIR=%{tde_libdir}/pkgconfig \ -DWITH_ALSA=ON \ @@ -123,7 +131,6 @@ export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" %{tde_libdir}/mcop/*.mcopclass %{tde_libdir}/mcop/*.mcoptype %{tde_libdir}/lib*.so.* -%{tde_libdir}/lib*.la %{tde_bindir}/artscat %{tde_bindir}/artsd %{tde_bindir}/artsdsp @@ -131,12 +138,14 @@ export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" %{tde_bindir}/artsrec %{tde_bindir}/artsshell %{tde_bindir}/artswrapper +# The '.la' files are runtime, not devel ! +%{tde_libdir}/lib*.la %files devel %defattr(-,root,root,-) %{tde_bindir}/mcopidl -%dir %{tde_includedir} -%{tde_includedir}/*/ +%{tde_tdeincludedir}/arts/ +%{tde_includedir}/artsc/ %{tde_bindir}/artsc-config %{tde_libdir}/lib*.so %{tde_libdir}/pkgconfig/*.pc diff --git a/redhat/dependencies/avahi-tqt/avahi-tqt-3.5.13.spec b/redhat/dependencies/avahi-tqt/avahi-tqt-3.5.13.spec index 938db048f..2c9c763cf 100644 --- a/redhat/dependencies/avahi-tqt/avahi-tqt-3.5.13.spec +++ b/redhat/dependencies/avahi-tqt/avahi-tqt-3.5.13.spec @@ -1,15 +1,15 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt %endif # TDE 3.5.13 specific building variables -%define tde_bindir %{_prefix}/bin -%define tde_includedir %{_prefix}/include -%define tde_datadir %{_prefix}/share +%define tde_bindir %{tde_prefix}/bin +%define tde_includedir %{tde_prefix}/include +%define tde_datadir %{tde_prefix}/share %define tde_docdir %{tde_datadir}/doc %define tde_tdedocdir %{tde_docdir}/kde -%define tde_libdir %{_prefix}/%{_lib} +%define tde_libdir %{tde_prefix}/%{_lib} Name: avahi-tqt @@ -23,7 +23,7 @@ Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> URL: http://www.trinitydesktop.org/ -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{name}-%{version}.tar.gz @@ -35,9 +35,10 @@ BuildRequires: tqtinterface-devel >= 3.5.13 BuildRequires: gettext-devel BuildRequires: dbus-devel -%if 0%{?mgaversion} +%if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}avahi-client-devel -BuildRequires: %{_lib}expat1-devel +# On Mageia 2, package is 'lib64expat1-devel', but on Mandriva, 'lib64expat-devel' +BuildRequires: %{_lib}expat%{?mgaversion:1}-devel Provides: %{_lib}avahi-qt3 %else BuildRequires: avahi-devel @@ -58,7 +59,7 @@ Requires: %{name} Summary: %{name} - Development files Group: Development/Libraries -%if 0%{?mgaversion} +%if 0%{?mgaversion} || 0%{?mdkversion} Provides: %{_lib}avahi-qt3-devel %endif @@ -89,7 +90,7 @@ export CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" ./autogen.sh %configure \ - --exec-prefix=%{_prefix} \ + --exec-prefix=%{tde_prefix} \ --bindir=%{tde_bindir} \ --datadir=%{tde_datadir} \ --docdir=%{tde_docdir} \ @@ -105,6 +106,9 @@ export CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" %__rm -rf %{?buildroot} %__make install DESTDIR=%{?buildroot} +# Removes '.a' file +%__rm -f %{?buildroot}%{tde_libdir}/libavahi-tqt.a + %clean %__rm -rf %{?buildroot} @@ -117,7 +121,6 @@ export CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" %{tde_libdir}/*.so %{tde_libdir}/*.la %{tde_libdir}/pkgconfig/*.pc -%exclude %{tde_libdir}/libavahi-tqt.a %changelog * Mon Jul 30 2012 Francois Andriot <francois.andriot@free.fr> - 3.5.13-1 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 fbbb1c381..38fff184a 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 @@ -1,11 +1,11 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt %endif -%define tde_bindir %{_prefix}/bin -%define tde_includedir %{_prefix}/include -%define tde_libdir %{_prefix}/%{_lib} +%define tde_bindir %{tde_prefix}/bin +%define tde_includedir %{tde_prefix}/include +%define tde_libdir %{tde_prefix}/%{_lib} Name: dbus-1-tqt Version: 3.5.13 @@ -17,14 +17,14 @@ Group: System Environment/Libraries Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: dbus-devel -BuildRequires: tqtinterface-devel +BuildRequires: tqtinterface-devel >= 3.5.13 # TDE 3.5.13 specific building variables BuildRequires: cmake >= 2.8 @@ -52,8 +52,13 @@ Development files for %{name} unset QTDIR || : ; . /etc/profile.d/qt.sh export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" -%{?!mgaversion:%__mkdir build; cd build} +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build +cd build +%endif + %cmake \ + -DBIN_INSTALL_DIR=%{tde_bindir} \ -DINCLUDE_INSTALL_DIR=%{tde_includedir} \ -DLIB_INSTALL_DIR=%{tde_libdir} \ .. @@ -63,7 +68,6 @@ export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" %install %__rm -rf %{?buildroot} -%__mkdir_p %{?buildroot}%{_includedir} %__make install DESTDIR=%{?buildroot} -C build %clean 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 40247558e..20f0ad55b 100644 --- a/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec +++ b/redhat/dependencies/dbus-tqt/dbus-tqt-3.5.13.spec @@ -1,10 +1,10 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt %endif -%define tde_includedir %{_prefix}/include -%define tde_libdir %{_prefix}/%{_lib} +%define tde_includedir %{tde_prefix}/include +%define tde_libdir %{tde_prefix}/%{_lib} Name: dbus-tqt Version: 3.5.13 @@ -16,14 +16,14 @@ Group: System Environment/Libraries Vendor: Trinity Project Packager: Francois Andriot <francois.andriot@free.fr> -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: dbus-devel -BuildRequires: tqtinterface-devel +BuildRequires: tqtinterface-devel >= 3.5.13 # TDE 3.5.13 specific building variables BuildRequires: cmake >= 2.8 @@ -53,7 +53,11 @@ Development files for %{name} unset QTDIR || : ; . /etc/profile.d/qt.sh export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" -%{?!mgaversion:%__mkdir build; cd build} +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build +cd build +%endif + %cmake \ -DINCLUDE_INSTALL_DIR=%{tde_includedir} \ -DLIB_INSTALL_DIR=%{tde_libdir} \ @@ -64,7 +68,6 @@ export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig" %install %__rm -rf %{?buildroot} -%__mkdir_p %{?buildroot}%{_includedir} %__make install DESTDIR=%{?buildroot} -C build %clean diff --git a/redhat/dependencies/libcaldav/libcaldav-0.6.2-fix_installation.patch b/redhat/dependencies/libcaldav/libcaldav-0.6.2-fix_installation.patch new file mode 100644 index 000000000..e1eb18ebf --- /dev/null +++ b/redhat/dependencies/libcaldav/libcaldav-0.6.2-fix_installation.patch @@ -0,0 +1,24 @@ +--- libcaldav-0.6.5/libcaldav.pc.in.ORI 2012-08-02 23:25:37.149283733 +0200 ++++ libcaldav-0.6.5/libcaldav.pc.in 2012-08-02 23:25:45.356339277 +0200 +@@ -3,8 +3,8 @@ + libdir=@libdir@ + includedir=@includedir@ + +-pkglibdir=${libdir}/@PACKAGE@ +-pkgincludedir=${includedir}/@PACKAGE@ ++pkglibdir=${libdir} ++pkgincludedir=${includedir} + + Name: libcaldav + Description: libcaldav is a client library for CalDAV +--- libcaldav-0.6.5/src/Makefile.am.ORI 2012-08-02 23:33:27.804972833 +0200 ++++ libcaldav-0.6.5/src/Makefile.am 2012-08-02 23:33:35.460457142 +0200 +@@ -37,7 +37,7 @@ + get-freebusy-report.c \ + get-freebusy-report.h + +-libcaldav_includedir=$(includedir)/libcaldav-@VERSION@ ++libcaldav_includedir=$(includedir) + libcaldav_include_HEADERS = caldav.h + + noinst_HEADERS = \ diff --git a/redhat/dependencies/libcaldav/libcaldav.spec b/redhat/dependencies/libcaldav/libcaldav.spec index f75aa3119..55d1fd70b 100644 --- a/redhat/dependencies/libcaldav/libcaldav.spec +++ b/redhat/dependencies/libcaldav/libcaldav.spec @@ -1,12 +1,12 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt %endif -%define tde_datadir %{_prefix}/share +%define tde_datadir %{tde_prefix}/share %define tde_docdir %{tde_datadir}/doc -%define tde_includedir %{_prefix}/include -%define tde_libdir %{_prefix}/%{_lib} +%define tde_includedir %{tde_prefix}/include +%define tde_libdir %{tde_prefix}/%{_lib} Name: trinity-libcaldav Version: 0.6.5 @@ -20,10 +20,14 @@ License: GPL Group: System Environment/Libraries Summary: A client library that adds support for the CalDAV protocol (rfc4791). -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Prefix: %{tde_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: libcaldav_0.6.5-2debian2.tar.gz +# [libcaldav] Fix messy installation directories +Patch1: libcaldav-0.6.2-fix_installation.patch + BuildRequires: libtool BuildRequires: glib2-devel BuildRequires: gtk2-devel @@ -35,7 +39,7 @@ Provides: libcaldav = %{version}-%{release} %if 0%{?fedora} || 0%{?rhel} >= 6 BuildRequires: libcurl-devel %else -%if 0%{?mgaversion} +%if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}curl-devel %else # Specific CURL version for TDE on RHEL 5 (and older) @@ -61,8 +65,12 @@ Provides: libcaldav-devel = %{version}-%{release} %prep %setup -q -n libcaldav-%{version} +%patch1 -p1 -b .dir %build +# CFLAGS required if CURL is installed on /opt/trinity, e.g. RHEL 5 +export CFLAGS="-I%{tde_includedir} -L%{tde_libdir} ${CFLAGS}" + autoreconf --force --install --symlink %configure \ --docdir=%{tde_docdir}/libcaldav \ @@ -75,9 +83,6 @@ autoreconf --force --install --symlink %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} -# The include files do not go in the correct directory -%__mv -f %{buildroot}%{tde_includedir}/libcaldav-0.6.2/*.h %{buildroot}%{tde_includedir} -%__rm -rf %{buildroot}%{tde_includedir}/libcaldav-0.6.2 %clean %__rm -rf %{buildroot} @@ -85,15 +90,27 @@ autoreconf --force --install --symlink %files %{tde_libdir}/*.so.* -%{tde_docdir}/libcaldav +%{tde_docdir}/libcaldav/ %files devel -%{tde_includedir}/*.h +%{tde_includedir}/caldav.h %{tde_libdir}/*.a %{tde_libdir}/*.la %{tde_libdir}/*.so %{tde_libdir}/pkgconfig/libcaldav.pc +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%post devel +/sbin/ldconfig + +%postun devel +/sbin/ldconfig + %Changelog * Sun Jul 28 2012 Francois Andriot <francois.andriot@free.fr> - 0.6.5-3 diff --git a/redhat/dependencies/libcarddav/libcarddav-0.6.5-fix_installation.patch b/redhat/dependencies/libcarddav/libcarddav-0.6.5-fix_installation.patch new file mode 100644 index 000000000..12990f87a --- /dev/null +++ b/redhat/dependencies/libcarddav/libcarddav-0.6.5-fix_installation.patch @@ -0,0 +1,24 @@ +--- libcarddav-0.6.2/libcarddav.pc.in.ORI 2012-08-02 23:38:03.688776626 +0200 ++++ libcarddav-0.6.2/libcarddav.pc.in 2012-08-02 23:38:09.055630966 +0200 +@@ -3,8 +3,8 @@ + libdir=@libdir@ + includedir=@includedir@ + +-pkglibdir=${libdir}/@PACKAGE@ +-pkgincludedir=${includedir}/@PACKAGE@ ++pkglibdir=${libdir} ++pkgincludedir=${includedir} + + Name: libcarddav + Description: libcarddav is a client library for CardDAV +--- libcarddav-0.6.2/src/Makefile.am.ORI 2012-08-02 23:39:20.990884825 +0200 ++++ libcarddav-0.6.2/src/Makefile.am 2012-08-02 23:39:36.182559576 +0200 +@@ -35,7 +35,7 @@ + lock-carddav-object.c \ + lock-carddav-object.h + +-libcarddav_includedir=$(includedir)/libcarddav-@VERSION@ ++libcarddav_includedir=$(includedir) + libcarddav_include_HEADERS = carddav.h + + noinst_HEADERS = \ diff --git a/redhat/dependencies/libcarddav/libcarddav.spec b/redhat/dependencies/libcarddav/libcarddav.spec index c3ed99db0..003bcb9af 100644 --- a/redhat/dependencies/libcarddav/libcarddav.spec +++ b/redhat/dependencies/libcarddav/libcarddav.spec @@ -1,10 +1,10 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt %endif -%define tde_includedir %{_prefix}/include -%define tde_libdir %{_prefix}/%{_lib} +%define tde_includedir %{tde_prefix}/include +%define tde_libdir %{tde_prefix}/%{_lib} Name: trinity-libcarddav Version: 0.6.2 @@ -18,14 +18,18 @@ License: GPL Group: System Environment/Libraries Summary: A portable CardDAV client implementation originally developed for the Trinity PIM suite. -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Prefix: %{tde_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: libcarddav_0.6.2-2debian2.tar.gz +# [libcarddav] Fix messy installation directories +Patch1: libcarddav-0.6.5-fix_installation.patch + %if 0%{?fedora} || 0%{?rhel} >= 6 BuildRequires: libcurl-devel %else -%if 0%{?mgaversion} +%if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}curl-devel %else # Specific CURL version for TDE on RHEL 5 (and older) @@ -55,22 +59,23 @@ Provides: libcarddav-devel = %{version}-%{release} %prep %setup -q -n libcarddav-%{version} +%patch1 -p1 -b .dir %build +# CFLAGS required if CURL is installed on /opt/trinity, e.g. RHEL 5 +export CFLAGS="-I%{tde_includedir} -L%{tde_libdir} ${CFLAGS}" + autoreconf --force --install --symlink %configure \ --includedir=%{tde_includedir} \ --libdir=%{tde_libdir} \ -%__make %{?_smp_mflags} +%__make %{?_smp_mflags} LIBTOOL=$(which libtool) %install %__rm -rf %{buildroot} -%__make install DESTDIR=%{buildroot} +%__make install DESTDIR=%{buildroot} LIBTOOL=$(which libtool) -# The include files do not go in the correct directory -%__mv -f %{buildroot}%{tde_includedir}/libcarddav-0.6.1/*.h %{buildroot}%{tde_includedir} -%__rm -rf %{buildroot}%{tde_includedir}/libcarddav-0.6.1 %clean %__rm -rf %{buildroot} @@ -86,6 +91,18 @@ autoreconf --force --install --symlink %{tde_libdir}/*.so %{tde_libdir}/pkgconfig/libcarddav.pc +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%post devel +/sbin/ldconfig + +%postun devel +/sbin/ldconfig + %Changelog * Sun Jul 28 2012 Francois Andriot <francois.andriot@free.fr> - 0.6.5-3 diff --git a/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec b/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec index 721178df8..3010ab6d5 100755 --- a/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec +++ b/redhat/dependencies/tqtinterface/tqtinterface-3.5.13.spec @@ -1,16 +1,16 @@ # If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?_prefix}" != "/usr" +%if "%{?tde_prefix}" != "/usr" %define _variant .opt -%define cmake_modules_dir %{_datadir}/cmake +%define cmake_modules_dir %{tde_prefix}/share/cmake %else %define cmake_modules_dir %{_datadir}/cmake/Modules %endif # TQT include files may conflict with QT4 includes, so we move them to a subdirectory. # Later compiled Trinity products should be aware of that ! -%define tde_bindir %{_prefix}/bin -%define tde_includedir %{_prefix}/include -%define tde_libdir %{_prefix}/%{_lib} +%define tde_bindir %{tde_prefix}/bin +%define tde_includedir %{tde_prefix}/include +%define tde_libdir %{tde_prefix}/%{_lib} Name: tqtinterface Version: 3.5.13 @@ -23,7 +23,7 @@ Vendor: Trinity Project URL: http://www.trinitydesktop.org/ Packager: Francois Andriot <francois.andriot@free.fr> -Prefix: %{_prefix} +Prefix: %{tde_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: %{name}-%{version}.tar.gz @@ -37,7 +37,7 @@ Requires: qt3 >= 3.3.8.d BuildRequires: gcc-c++ BuildRequires: pth-devel -%if 0%{?mgaversion} +%if 0%{?mgaversion} || 0%{?mdkversion} BuildRequires: %{_lib}xi-devel %else BuildRequires: libXi-devel @@ -63,7 +63,11 @@ Development files for %{name} %build unset QTDIR || : ; . /etc/profile.d/qt.sh -%{?!mgaversion:%__mkdir build; cd build} +%if 0%{?rhel} || 0%{?fedora} +%__mkdir_p build +cd build +%endif + %cmake \ -DQT_PREFIX_DIR=${QTDIR} \ -DQT_VERSION=3 \ |