You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
581 lines
13 KiB
581 lines
13 KiB
12 years ago
|
%define tde_version 14.0.0
|
||
|
|
||
|
# Always install under standard prefix
|
||
|
%define tde_prefix /usr
|
||
|
%define tde_bindir %{tde_prefix}/bin
|
||
|
%define tde_datadir %{tde_prefix}/share
|
||
|
%define tde_includedir %{tde_prefix}/include
|
||
|
%define tde_libdir %{tde_prefix}/%{_lib}
|
||
|
|
||
|
# The following QT4 packages should NOT be installed to
|
||
|
# allow QT3 compilation (please uninstall them prior to compile)
|
||
|
# qt
|
||
|
# qt-sqlite
|
||
|
# qt-mysql
|
||
|
# qt-x11
|
||
|
# qt-devel
|
||
|
# ...maybe others !!!!
|
||
|
|
||
|
Name: trinity-tqt3
|
||
|
Version: 14.0.0%{?preversion:_%{preversion}}
|
||
|
Release: 1%{?dist}
|
||
|
Summary: The shared library for the Trinity Qt 3 GUI toolkit
|
||
|
|
||
|
License: QPL or GPLv2 or GPLv3
|
||
|
Group: System Environment/Libraries
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{tde_version}-%{release}-root-%(%{__id_u} -n)
|
||
|
Url: http://www.trinitydesktop.org
|
||
|
|
||
|
Prefix: %{tde_prefix}
|
||
|
|
||
|
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||
|
|
||
|
# [tqt3] Build shared libraries
|
||
|
Patch1: tqt3-14.0.0-shared_lib.patch
|
||
|
# [tqt3] Fix FTBFS
|
||
|
Patch2: tqt3-14.0.0-fix_ftbfs.patch
|
||
|
|
||
|
BuildRequires: desktop-file-utils
|
||
|
BuildRequires: libmng-devel
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libjpeg-devel
|
||
|
BuildRequires: libpng-devel
|
||
|
BuildRequires: zlib-devel
|
||
|
BuildRequires: giflib-devel
|
||
|
BuildRequires: perl
|
||
|
BuildRequires: sed
|
||
|
BuildRequires: findutils
|
||
|
BuildRequires: cups-devel
|
||
|
BuildRequires: tar
|
||
|
BuildRequires: freetype-devel
|
||
|
BuildRequires: fontconfig-devel
|
||
|
|
||
|
# Xrender support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libXrender-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: libxrender-devel
|
||
|
%endif
|
||
|
|
||
|
# Xrandr support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libXrandr-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: libxrandr-devel
|
||
|
%endif
|
||
|
|
||
|
# Xcursor support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libXcursor-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: libxcursor-devel
|
||
|
%endif
|
||
|
|
||
|
# Xinerama support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libXinerama-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: libxinerama-devel
|
||
|
%endif
|
||
|
|
||
|
# Xft support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libXft-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: libxft-devel
|
||
|
%endif
|
||
|
|
||
|
# Xext support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libXext-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: libxext-devel
|
||
|
%endif
|
||
|
|
||
|
# X11 support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libX11-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: libx11-devel
|
||
|
%endif
|
||
|
|
||
|
# SM support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libSM-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: libsm-devel
|
||
|
%endif
|
||
|
|
||
|
# ICE support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libICE-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: libice-devel
|
||
|
%endif
|
||
|
|
||
|
# XT support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libXt-devel
|
||
|
%endif
|
||
|
|
||
|
# XMU support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libXmu-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: libxmu-devel
|
||
|
%endif
|
||
|
|
||
|
# XI support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: libXi-devel
|
||
|
%endif
|
||
|
|
||
|
# Xorg support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: xorg-x11-proto-devel
|
||
|
%endif
|
||
|
|
||
|
# MESA support
|
||
|
%if 0%{?rhel} || 0%{?fedora}
|
||
|
BuildRequires: mesa-libGL-devel
|
||
|
BuildRequires: mesa-libGLU-devel
|
||
|
%endif
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
BuildRequires: mesaglu-devel
|
||
|
%endif
|
||
|
|
||
|
BuildRequires: desktop-file-utils
|
||
|
BuildRequires: mysql-devel
|
||
|
BuildRequires: postgresql-devel
|
||
|
BuildRequires: unixODBC-devel
|
||
|
BuildRequires: sqlite-devel
|
||
|
|
||
|
# Firebird support
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
%define with_ibase 1
|
||
|
BuildRequires: firebird-devel
|
||
|
%endif
|
||
|
|
||
|
# x86_64 specific stuff
|
||
|
%if "%{_lib}" != "lib"
|
||
|
%if 0%{?mdkversion} || ( 0%{?mgaversion} && 0%{?mgaversion} <= 2)
|
||
|
BuildRequires: linux32
|
||
|
%else
|
||
|
BuildRequires: util-linux
|
||
|
%endif
|
||
|
%endif
|
||
|
|
||
|
Requires(post): /sbin/ldconfig
|
||
|
Requires(postun): /sbin/ldconfig
|
||
|
Requires: coreutils
|
||
|
Requires: fontconfig >= 2.0
|
||
|
Requires: /etc/ld.so.conf.d
|
||
|
|
||
|
%if 0%{?mdkversion} || 0%{?mgaversion}
|
||
|
Obsoletes: %{_lib}qt3
|
||
|
Provides: %{_lib}qt3 = 3.3.8.d
|
||
|
%endif
|
||
|
|
||
|
|
||
|
%description
|
||
|
TQt is a GUI software toolkit which simplifies the task of writing and
|
||
|
maintaining GUI (Graphical User Interface) applications
|
||
|
for the X Window System.
|
||
|
|
||
|
TQt is written in C++ and is fully object-oriented.
|
||
|
|
||
|
This package contains the shared library needed to run TQt 3
|
||
|
applications, as well as the README files for TQt 3.
|
||
|
|
||
|
%post
|
||
|
/sbin/ldconfig || :
|
||
|
|
||
|
%postun
|
||
|
/sbin/ldconfig || :
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc FAQ LICENSE* README* changes*
|
||
|
%dir %{tde_libdir}/tqt3/plugins
|
||
|
%dir %{tde_libdir}/tqt3/plugins/sqldrivers
|
||
|
#%dir %{tde_libdir}/tqt3/plugins/styles
|
||
|
%{tde_datadir}/tqt3/translations/
|
||
|
%dir %{tde_libdir}/tqt3/plugins/designer
|
||
|
%{tde_libdir}/tqt3/plugins/designer/libcppeditor.so
|
||
|
%{tde_libdir}/tqt3/plugins/designer/libdlgplugin.so
|
||
|
%{tde_libdir}/tqt3/plugins/designer/libgladeplugin.so
|
||
|
%{tde_libdir}/tqt3/plugins/designer/libkdevdlgplugin.so
|
||
|
%{tde_libdir}/tqt3/plugins/designer/librcplugin.so
|
||
|
%{tde_libdir}/tqt3/plugins/designer/libwizards.so
|
||
|
%dir %{tde_libdir}/tqt3/plugins/imageformats
|
||
|
%{tde_libdir}/tqt3/plugins/imageformats/libqmng.so
|
||
|
%dir %{tde_libdir}/tqt3/plugins/inputmethods
|
||
|
%{tde_libdir}/tqt3/plugins/inputmethods/libqimsw-multi.so
|
||
|
%{tde_libdir}/tqt3/plugins/inputmethods/libqimsw-none.so
|
||
|
%{tde_libdir}/tqt3/plugins/inputmethods/libqsimple.so
|
||
|
%{tde_libdir}/tqt3/plugins/inputmethods/libqxim.so
|
||
|
%{tde_libdir}/libtqt-mt.so.3
|
||
|
%{tde_libdir}/libtqt-mt.so.3.3
|
||
|
%{tde_libdir}/libtqt-mt.so.3.3.8
|
||
|
%{tde_libdir}/libtqt-mt.la
|
||
|
%{tde_libdir}/libtqui.so.1
|
||
|
%{tde_libdir}/libtqui.so.1.0
|
||
|
%{tde_libdir}/libtqui.so.1.0.0
|
||
|
%{tde_libdir}/libdesignercore.so.1
|
||
|
%{tde_libdir}/libdesignercore.so.1.0
|
||
|
%{tde_libdir}/libdesignercore.so.1.0.0
|
||
|
%{tde_libdir}/libeditor.so.1
|
||
|
%{tde_libdir}/libeditor.so.1.0
|
||
|
%{tde_libdir}/libeditor.so.1.0.0
|
||
|
%{tde_libdir}/libqassistantclient.so.1
|
||
|
%{tde_libdir}/libqassistantclient.so.1.0
|
||
|
%{tde_libdir}/libqassistantclient.so.1.0.0
|
||
|
|
||
|
##########
|
||
|
|
||
|
%package config
|
||
|
Summary: Graphical configuration tool for programs using Qt 3
|
||
|
Group: User Interface/Desktops
|
||
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
||
|
%description config
|
||
|
TQt is a GUI software toolkit which simplifies the task of writing and
|
||
|
maintaining GUI (Graphical User Interface) applications
|
||
|
for the X Window System.
|
||
|
|
||
|
TQt is written in C++ and is fully object-oriented.
|
||
|
|
||
|
This package contains a graphical configuration tool for programs using TQt 3.
|
||
|
|
||
|
%files config
|
||
|
%defattr(-,root,root,-)
|
||
|
%{tde_bindir}/tqtconfig
|
||
|
|
||
|
##########
|
||
|
|
||
|
%package devel
|
||
|
Summary: Development files for the Qt 3 GUI toolkit
|
||
|
Group: Development/Libraries
|
||
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
||
|
%description devel
|
||
|
The %{name}-devel package contains the files necessary to develop
|
||
|
applications using the TQt GUI toolkit: the header files, the TQt meta
|
||
|
object compiler.
|
||
|
|
||
|
Install %{name}-devel if you want to develop GUI applications using the TQt 3
|
||
|
toolkit.
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root,-)
|
||
|
%{tde_bindir}/conv2ui
|
||
|
%{tde_bindir}/qvfb
|
||
|
%{tde_bindir}/tqmoc
|
||
|
%{tde_bindir}/tquic
|
||
|
%{tde_bindir}/findtr
|
||
|
%{tde_bindir}/qt20fix
|
||
|
%{tde_bindir}/qtrename140
|
||
|
%{tde_bindir}/tqassistant
|
||
|
%{tde_bindir}/qm2ts
|
||
|
%{tde_bindir}/tqmake
|
||
|
%{tde_bindir}/tqembed
|
||
|
%{tde_bindir}/tqlinguist
|
||
|
%{tde_bindir}/tqlupdate
|
||
|
%{tde_bindir}/tqlrelease
|
||
|
%{tde_bindir}/createcw
|
||
|
%{tde_bindir}/makeqpf
|
||
|
%{tde_bindir}/mergetr
|
||
|
%{tde_bindir}/msg2qm
|
||
|
%{tde_datadir}/tqt3/mkspecs/
|
||
|
%{tde_datadir}/tqt3/phrasebooks/
|
||
|
%{tde_includedir}/tqt3/
|
||
|
%{tde_libdir}/libdesignercore.prl
|
||
|
%{tde_libdir}/libdesignercore.so
|
||
|
%{tde_libdir}/libeditor.prl
|
||
|
%{tde_libdir}/libeditor.so
|
||
|
%{tde_libdir}/libqassistantclient.prl
|
||
|
%{tde_libdir}/libqassistantclient.so
|
||
|
%{tde_libdir}/libtqt-mt.so
|
||
|
%{tde_libdir}/libtqt-mt.prl
|
||
|
%{tde_libdir}/libtqui.so
|
||
|
%{tde_libdir}/libtqui.prl
|
||
|
%{tde_libdir}/pkgconfig/tqt-mt.pc
|
||
|
|
||
|
|
||
|
%post devel
|
||
|
/sbin/ldconfig || :
|
||
|
|
||
|
%postun devel
|
||
|
/sbin/ldconfig || :
|
||
|
|
||
|
##########
|
||
|
|
||
|
%package devel-docs
|
||
|
Summary: Documentation for the TQt 3 GUI toolkit
|
||
|
Group: Development/Libraries
|
||
|
Requires: %{name}-devel = %{version}-%{release}
|
||
|
|
||
|
%description devel-docs
|
||
|
The %{name}-devel-docs package contains the man pages, the HTML documentation and
|
||
|
example programs for TQt 3.
|
||
|
|
||
|
%files devel-docs
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc examples
|
||
|
%doc tutorial
|
||
|
%{tde_datadir}/tqt3/doc/html/
|
||
|
|
||
|
##########
|
||
|
|
||
|
%package ODBC
|
||
|
Summary: ODBC drivers for TQt 3's SQL classes
|
||
|
Group: System Environment/Libraries
|
||
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
||
|
%description ODBC
|
||
|
ODBC driver for TQt 3's SQL classes (QSQL)
|
||
|
|
||
|
%files ODBC
|
||
|
%defattr(-,root,root,-)
|
||
|
%{tde_libdir}/tqt3/plugins/sqldrivers/libqsqlodbc.so
|
||
|
|
||
|
##########
|
||
|
|
||
|
%package MySQL
|
||
|
Summary: MySQL drivers for TQt 3's SQL classes
|
||
|
Group: System Environment/Libraries
|
||
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
||
|
%description MySQL
|
||
|
MySQL driver for TQt 3's SQL classes (QSQL)
|
||
|
|
||
|
%files MySQL
|
||
|
%defattr(-,root,root,-)
|
||
|
%{tde_libdir}/tqt3/plugins/sqldrivers/libqsqlmysql.so
|
||
|
|
||
|
##########
|
||
|
|
||
|
%package PostgreSQL
|
||
|
Summary: PostgreSQL drivers for TQt 3's SQL classes
|
||
|
Group: System Environment/Libraries
|
||
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
||
|
%description PostgreSQL
|
||
|
PostgreSQL driver for TQt 3's SQL classes (QSQL)
|
||
|
|
||
|
%files PostgreSQL
|
||
|
%defattr(-,root,root,-)
|
||
|
%{tde_libdir}/tqt3/plugins/sqldrivers/libqsqlpsql.so
|
||
|
|
||
|
##########
|
||
|
|
||
|
%package sqlite
|
||
|
Summary: sqlite drivers for TQt 3's SQL classes
|
||
|
Group: System Environment/Libraries
|
||
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
||
|
%description sqlite
|
||
|
sqlite driver for TQt 3's SQL classes (QSQL)
|
||
|
|
||
|
%files sqlite
|
||
|
%defattr(-,root,root,-)
|
||
|
%{tde_libdir}/tqt3/plugins/sqldrivers/libqsqlite.so
|
||
|
|
||
|
##########
|
||
|
|
||
|
%if %{?with_ibase}
|
||
|
%package ibase
|
||
|
Summary: ibase drivers for TQt 3's SQL classes
|
||
|
Group: System Environment/Libraries
|
||
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
||
|
%description ibase
|
||
|
ibase driver for TQt 3's SQL classes (QSQL)
|
||
|
|
||
|
%files ibase
|
||
|
%defattr(-,root,root,-)
|
||
|
%{tde_libdir}/tqt3/plugins/sqldrivers/libqsqlibase.so
|
||
|
%endif
|
||
|
|
||
|
##########
|
||
|
|
||
|
%package designer
|
||
|
Summary: In3erface designer (IDE) for the Qt 3 toolkit
|
||
|
Group: Development/Tools
|
||
|
Requires: %{name}-devel = %{version}-%{release}
|
||
|
|
||
|
%description designer
|
||
|
The %{name}-designer package contains an User Interface designer tool
|
||
|
for the TQt 3 toolkit.
|
||
|
|
||
|
%files designer
|
||
|
%defattr(-,root,root,-)
|
||
|
%{tde_bindir}/tqdesigner
|
||
|
%{tde_datadir}/tqt3/templates/
|
||
|
|
||
|
##########
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||
|
%patch1 -p1 -b .sharedlibs
|
||
|
%patch2 -p1 -b .ftbfs
|
||
|
|
||
|
%build
|
||
|
unset QTDIR QTINC QTLIB
|
||
|
export QTDIR=$(pwd)
|
||
|
export PATH=${QTDIR}/stripbin:${QTDIR}/bin:$PATH
|
||
|
export MANPATH=${QTDIR}/doc/man:$MANPATH
|
||
|
export LD_LIBRARY_PATH=${QTDIR}/lib:$LD_LIBRARY_PATH
|
||
|
|
||
|
# Checks for supplementary include dir
|
||
|
INCDIRS=""
|
||
|
for d in \
|
||
|
/usr/include/fontconfig \
|
||
|
/usr/include/pgsql/server \
|
||
|
/usr/include/postgresql/server \
|
||
|
/usr/include/Xft2 \
|
||
|
/usr/include/Xft2/X11/Xft \
|
||
|
/usr/include/mysql \
|
||
|
/usr/include/libpng15 \
|
||
|
; do
|
||
|
if [ -d "${d}" ]; then
|
||
|
INCDIRS="${INCDIRS} -I${d}"
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
# Checks for supplementary library dirs
|
||
|
LIBDIRS=""
|
||
|
for d in \
|
||
|
%{_libdir}/mysql \
|
||
|
%{_libdir}/pgsql \
|
||
|
; do
|
||
|
if [ -d "${d}" ]; then
|
||
|
LIBDIRS="${LIBDIRS} -L${d}"
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
# build shared, threaded (default) libraries
|
||
|
echo yes | ./configure \
|
||
|
${INCDIRS} \
|
||
|
${LIBDIRS} \
|
||
|
-L%{_libdir} \
|
||
|
-prefix "%{tde_prefix}" \
|
||
|
-libdir "%{tde_libdir}" \
|
||
|
-sysconfdir "%{_sysconfdir}/tqt3" \
|
||
|
-datadir "%{tde_datadir}/tqt3" \
|
||
|
-headerdir "%{tde_includedir}/tqt3" \
|
||
|
-docdir "%{tde_datadir}/tqt3/doc" \
|
||
|
-plugindir "%{tde_libdir}/tqt3/plugins" \
|
||
|
-translationdir "%{tde_datadir}/tqt3/translations" \
|
||
|
\
|
||
|
-thread \
|
||
|
-shared \
|
||
|
-fast \
|
||
|
-no-exceptions \
|
||
|
%if "%{_lib}" == "lib64"
|
||
|
-platform linux-g++-64 \
|
||
|
%else
|
||
|
-platform linux-g++ \
|
||
|
%endif
|
||
|
\
|
||
|
-nis \
|
||
|
-no-pch \
|
||
|
-cups \
|
||
|
-stl \
|
||
|
-ipv6 \
|
||
|
\
|
||
|
-sm \
|
||
|
-xshape \
|
||
|
-xinerama \
|
||
|
-xcursor \
|
||
|
-xrandr \
|
||
|
-xrender \
|
||
|
-xft \
|
||
|
-tablet \
|
||
|
-xkb \
|
||
|
\
|
||
|
-system-zlib \
|
||
|
-system-libpng \
|
||
|
-system-libmng \
|
||
|
-system-libjpeg \
|
||
|
-system-nas-sound \
|
||
|
\
|
||
|
-enable-opengl \
|
||
|
-dlopen-opengl \
|
||
|
\
|
||
|
-qt-gif \
|
||
|
-qt-imgfmt-png \
|
||
|
-qt-imgfmt-jpeg \
|
||
|
-plugin-imgfmt-mng \
|
||
|
\
|
||
|
-plugin-sql-odbc \
|
||
|
-plugin-sql-psql \
|
||
|
-plugin-sql-mysql \
|
||
|
%{?with_ibase:-plugin-sql-ibase} \
|
||
|
-plugin-sql-sqlite \
|
||
|
\
|
||
|
-lfontconfig \
|
||
|
-inputmethod \
|
||
|
-glibmainloop
|
||
|
|
||
|
|
||
|
# Fix bad headers
|
||
|
rm -rf include/ntqinputcontext.h include/ntqinputcontextfactory.h include/ntqinputcontextplugin.h
|
||
|
ln -s ../src/kernel/ntqinputcontext.h include/ntqinputcontext.h
|
||
|
ln -s ../src/inputmethod/ntqinputcontextfactory.h include/ntqinputcontextfactory.h
|
||
|
ln -s ../src/inputmethod/ntqinputcontextplugin.h include/ntqinputcontextplugin.h
|
||
|
|
||
|
# proceed
|
||
|
#%__make %{?_smp_mflags} symlinks src-qmake src-moc
|
||
|
%__make %{?_smp_mflags} sub-src sub-plugins sub-tools
|
||
|
|
||
|
# build conv2ui
|
||
|
%__make -C tools/designer/tools/conv2ui
|
||
|
|
||
|
# build qvfb
|
||
|
%__make -C tools/qvfb
|
||
|
|
||
|
# fix .prl files
|
||
|
%__sed -i lib/*.prl -e "s|${QTDIR}|%{tde_datadir}/tqt3|g"
|
||
|
|
||
12 years ago
|
# fix QTDIR in 'qmake.conf'
|
||
|
%__sed -i mkspecs/*/qmake.conf -e "s|^QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT = \$(QTDIR)/include/tqt3|"
|
||
|
|
||
12 years ago
|
|
||
|
%install
|
||
|
%__rm -rf %{buildroot}
|
||
|
|
||
|
%__make -C src INSTALL_ROOT=%{?buildroot} install_target
|
||
|
%__make INSTALL_ROOT=%{?buildroot} install
|
||
|
%__make INSTALL_ROOT=%{?buildroot} plugins-install
|
||
|
|
||
|
%__install -m755 bin/qtrename140 %{?buildroot}%{_bindir}
|
||
|
%__install -m755 bin/qt20fix %{?buildroot}%{_bindir}
|
||
|
%__install -m755 bin/findtr %{?buildroot}%{_bindir}
|
||
|
|
||
|
# install conv2ui
|
||
|
%__install -m755 bin/conv2ui %{?buildroot}%{_bindir}/conv2ui
|
||
|
|
||
|
# install qvfb
|
||
|
%__install -m755 tools/qvfb/qvfb %{?buildroot}%{_bindir}/qvfb
|
||
|
|
||
|
|
||
|
%clean
|
||
|
%__rm -rf %{buildroot}
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Mon Feb 13 2012 Francois Andriot <francois.andriot@free.fr> - 14.0.0-1
|
||
|
- Initial build for TDE R14.0.0
|