RPM Packaging: update dependencies

pull/3/head
François Andriot 10 years ago
parent ee2e91e1bf
commit 18d51ed4d1

@ -21,6 +21,13 @@
%define tde_includedir %{tde_prefix}/include %define tde_includedir %{tde_prefix}/include
%define tde_libdir %{tde_prefix}/%{_lib} %define tde_libdir %{tde_prefix}/%{_lib}
%if 0%{?mdkversion} || 0%{?mdkversion} || 0%{?pclinuxos}
%define libavahi %{_lib}avahi
%else
%define libavahi libavahi
%endif
Name: trinity-avahi-tqt Name: trinity-avahi-tqt
Epoch: 2 Epoch: 2
Version: 0.6.30 Version: 0.6.30
@ -43,7 +50,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
BuildRequires: libtqt3-mt-devel >= 3.5.0
BuildRequires: libtqt4-devel >= 1:4.2.0 BuildRequires: libtqt4-devel >= 1:4.2.0
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -53,9 +59,6 @@ BuildRequires: libtool
# GETTEXT support # GETTEXT support
BuildRequires: gettext-devel BuildRequires: gettext-devel
# GLIB2 support
BuildRequires: glib2-devel
# DBUS support # DBUS support
%if 0%{?suse_version} %if 0%{?suse_version}
BuildRequires: dbus-1-devel BuildRequires: dbus-1-devel
@ -64,7 +67,7 @@ BuildRequires: dbus-1-devel
BuildRequires: dbus-devel BuildRequires: dbus-devel
%endif %endif
# AVAHI support # AVAHI support
%if 0%{?mgaversion} || 0%{?mdkversion} %if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: %{_lib}avahi-client-devel BuildRequires: %{_lib}avahi-client-devel
%endif %endif
@ -72,7 +75,7 @@ BuildRequires: %{_lib}avahi-client-devel
BuildRequires: avahi-devel BuildRequires: avahi-devel
%endif %endif
# EXPAT support # EXPAT support
%if 0%{?rhel} || 0%{?fedora} %if 0%{?rhel} || 0%{?fedora}
BuildRequires: expat-devel BuildRequires: expat-devel
%endif %endif
@ -80,12 +83,15 @@ BuildRequires: expat-devel
BuildRequires: libexpat-devel BuildRequires: libexpat-devel
%endif %endif
# UUID support # NAS support
%if 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} || 0%{?rhel} >= 6 %if 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: libuuid-devel %define with_nas 1
BuildRequires: nas-devel
%endif %endif
%if 0%{?rhel} == 5
BuildRequires: e2fsprogs-devel # XT support
%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
BuildRequires: libXt-devel
%endif %endif
%description %description
@ -100,18 +106,15 @@ into a TQt main loop application.
########## ##########
%package -n libavahi-tqt %package -n %{libavahi}-tqt1
Summary: Avahi TQt integration library Summary: Avahi TQt integration library
Group: System/Libraries Group: System/Libraries
Provides: libavahi-tqt1 = %{?epoch:%{epoch}:}%{version}-%{release}
%if 0%{?mgaversion} || 0%{?mdkversion}
Provides: %{_lib}avahi-qt3
%endif
Obsoletes: trinity-avahi-tqt < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: trinity-avahi-tqt < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: trinity-avahi-tqt = %{?epoch:%{epoch}:}%{version}-%{release} Provides: trinity-avahi-tqt = %{?epoch:%{epoch}:}%{version}-%{release}
%description -n libavahi-tqt %description -n %{libavahi}-tqt1
Avahi is a fully LGPL framework for Multicast DNS Service Discovery. Avahi is a fully LGPL framework for Multicast DNS Service Discovery.
It allows programs to publish and discover services and hosts It allows programs to publish and discover services and hosts
running on a local network with no specific configuration. For running on a local network with no specific configuration. For
@ -121,32 +124,39 @@ print to, files to look at and people to talk to.
This library contains the interface to integrate the Avahi libraries This library contains the interface to integrate the Avahi libraries
into a TQt main loop application. into a TQt main loop application.
%post -n libavahi-tqt %post -n %{libavahi}-tqt1
/sbin/ldconfig || : /sbin/ldconfig || :
%postun -n libavahi-tqt %postun -n %{libavahi}-tqt1
/sbin/ldconfig || : /sbin/ldconfig || :
%files -n libavahi-tqt %files -n %{libavahi}-tqt1
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libavahi-tqt.so.1 %{_libdir}/libavahi-tqt.so.1
%{_libdir}/libavahi-tqt.so.1.0.0 %{_libdir}/libavahi-tqt.so.1.0.0
########## ##########
%package -n libavahi-tqt-devel %package -n %{libavahi}-tqt1-devel
Summary: Avahi TQt integration library (Development Files) Summary: Avahi TQt integration library (Development Files)
Group: Development/Libraries Group: Development/Libraries/C and C++
Requires: libavahi-tqt = %{?epoch:%{epoch}:}%{version}-%{release} Provides: libavahi-tqt1-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%if 0%{?mgaversion} || 0%{?mdkversion} Requires: %{libavahi}-tqt1 = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{_lib}avahi-qt3-devel Requires: libtqt4-devel >= 1:4.2.0
%endif
Obsoletes: trinity-avahi-tqt-devel < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: trinity-avahi-tqt-devel < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: trinity-avahi-tqt-devel = %{?epoch:%{epoch}:}%{version}-%{release} Provides: trinity-avahi-tqt-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%description -n libavahi-tqt-devel # AVAHI support
%if 0%{?mgaversion} || 0%{?mdkversion}
Requires: %{_lib}avahi-client-devel
%endif
%if 0%{?suse_version} || 0%{?rhel} || 0%{?fedora}
Requires: avahi-devel
%endif
%description -n %{libavahi}-tqt1-devel
Avahi is a fully LGPL framework for Multicast DNS Service Discovery. Avahi is a fully LGPL framework for Multicast DNS Service Discovery.
It allows programs to publish and discover services and hosts It allows programs to publish and discover services and hosts
running on a local network with no specific configuration. For running on a local network with no specific configuration. For
@ -156,13 +166,13 @@ print to, files to look at and people to talk to.
This library contains the interface to integrate the Avahi libraries This library contains the interface to integrate the Avahi libraries
into a TQt main loop application. into a TQt main loop application.
%post -n libavahi-tqt-devel %post -n %{libavahi}-tqt1-devel
/sbin/ldconfig || : /sbin/ldconfig || :
%postun -n libavahi-tqt-devel %postun -n %{libavahi}-tqt1-devel
/sbin/ldconfig || : /sbin/ldconfig || :
%files -n libavahi-tqt-devel %files -n %{libavahi}-tqt1-devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_includedir}/avahi-tqt/ %{_includedir}/avahi-tqt/
%{_libdir}/libavahi-tqt.so %{_libdir}/libavahi-tqt.so

@ -18,6 +18,12 @@
# TDE specific variables # TDE specific variables
%define tde_version 14.0.0 %define tde_version 14.0.0
%if 0%{?mdkversion} || 0%{?mdkversion} || 0%{?pclinuxos}
%define libtqt3 %{_lib}tqt3
%else
%define libtqt3 libtqt3
%endif
Name: trinity-tqt3 Name: trinity-tqt3
Version: 3.5.0 Version: 3.5.0
@ -170,12 +176,18 @@ BuildRequires: libxmu-devel
%endif %endif
# XI support # XI support
%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} %if 0%{?rhel} == 4
BuildRequires: libXi-devel BuildRequires: xorg-x11-devel
%endif %endif
%if 0%{?mgaversion} %if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: %{_lib}xi-devel BuildRequires: %{_lib}xi-devel
%endif %endif
%if 0%{?suse_version} >= 1220 || 0%{?rhel} >= 5 || 0%{?fedora}
BuildRequires: libXi-devel
%endif
%if 0%{?suse_version} == 1140
BuildRequires: libXi6-devel
%endif
# Xorg support # Xorg support
%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} %if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
@ -232,9 +244,10 @@ BuildRequires: util-linux
########## ##########
%package -n libtqt3-mt %package -n %{libtqt3}-mt
Summary: TQt GUI Library (Threaded runtime version), Version 3 Summary: TQt GUI Library (Threaded runtime version), Version 3
Group: System/GUI/Other Group: System/GUI/Other
Provides: libtqt3-mt = %{version}-%{release}
Requires(post): /sbin/ldconfig Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig Requires(postun): /sbin/ldconfig
@ -242,18 +255,18 @@ Requires: coreutils
Requires: fontconfig >= 2.0 Requires: fontconfig >= 2.0
Requires: /etc/ld.so.conf.d Requires: /etc/ld.so.conf.d
%description -n libtqt3-mt %description -n %{libtqt3}-mt
This is the Trolltech TQt library, version 3. It's necessary for This is the Trolltech TQt library, version 3. It's necessary for
applications that link against the libtqt-mt.so.3, e.g. all Trinity applications that link against the libtqt-mt.so.3, e.g. all Trinity
applications. applications.
%post -n libtqt3-mt %post -n %{libtqt3}-mt
/sbin/ldconfig || : /sbin/ldconfig || :
%postun -n libtqt3-mt %postun -n %{libtqt3}-mt
/sbin/ldconfig || : /sbin/ldconfig || :
%files -n libtqt3-mt %files -n %{libtqt3}-mt
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc FAQ LICENSE* README* changes* %doc FAQ LICENSE* README* changes*
%dir %{_libdir}/tqt3/ %dir %{_libdir}/tqt3/
@ -281,10 +294,11 @@ applications.
########### ###########
%package -n libtqt3-mt-devel %package -n %{libtqt3}-mt-devel
Summary: TQt development files (Threaded) Summary: TQt development files (Threaded)
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Requires: libtqt3-mt = %{version}-%{release} Provides: libtqt3-mt-devel = %{version}-%{release}
Requires: %{libtqt3}-mt = %{version}-%{release}
Requires: glibc-devel Requires: glibc-devel
Requires: fontconfig-devel Requires: fontconfig-devel
@ -308,12 +322,18 @@ Requires: e2fsprogs-devel
%endif %endif
# XI support # XI support
%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} %if 0%{?rhel} == 4
Requires: libXi-devel Requires: xorg-x11-devel
%endif %endif
%if 0%{?mgaversion} %if 0%{?mgaversion} || 0%{?mdkversion}
Requires: %{_lib}xi-devel Requires: %{_lib}xi-devel
%endif %endif
%if 0%{?suse_version} >= 1220 || 0%{?rhel} >= 5 || 0%{?fedora}
Requires: libXi-devel
%endif
%if 0%{?suse_version} == 1140
Requires: libXi6-devel
%endif
# Xrender support # Xrender support
%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} %if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
@ -388,7 +408,7 @@ Requires: libice-devel
%endif %endif
%description -n libtqt3-mt-devel %description -n %{libtqt3}-mt-devel
TQt is a C++ class library optimized for graphical user interface TQt is a C++ class library optimized for graphical user interface
development. This package contains the libtqt-mt.so symlink, necessary development. This package contains the libtqt-mt.so symlink, necessary
for building threaded TQt applications as well as the libtqui.so symlink for building threaded TQt applications as well as the libtqui.so symlink
@ -402,13 +422,13 @@ anymore but which are still used by some programs. So if you encounter
problems with missing header files, please install this package first problems with missing header files, please install this package first
before you send a bugreport. before you send a bugreport.
%post -n libtqt3-mt-devel %post -n %{libtqt3}-mt-devel
/sbin/ldconfig || : /sbin/ldconfig || :
%postun -n libtqt3-mt-devel %postun -n %{libtqt3}-mt-devel
/sbin/ldconfig || : /sbin/ldconfig || :
%files -n libtqt3-mt-devel %files -n %{libtqt3}-mt-devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libtqt-mt.la %{_libdir}/libtqt-mt.la
%{_libdir}/libtqt-mt.so %{_libdir}/libtqt-mt.so
@ -741,97 +761,103 @@ before you send a bugreport.
########## ##########
%package -n libtqt3-mt-mysql %package -n %{libtqt3}-mt-mysql
Summary: MySQL database driver for TQt3 (Threaded) Summary: MySQL database driver for TQt3 (Threaded)
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Provides: libtqt3-mt-mysql = %{version}-%{release}
Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n libtqt3-mt-mysql %description -n %{libtqt3}-mt-mysql
This package contains the threaded MySQL plugin for TQt3. Install it if This package contains the threaded MySQL plugin for TQt3. Install it if
you intend to use or write TQt programs that are to access a MySQL DB. you intend to use or write TQt programs that are to access a MySQL DB.
%files -n libtqt3-mt-mysql %files -n %{libtqt3}-mt-mysql
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/tqt3/plugins/sqldrivers/libqsqlmysql.so %{_libdir}/tqt3/plugins/sqldrivers/libqsqlmysql.so
########## ##########
%package -n libtqt3-mt-odbc %package -n %{libtqt3}-mt-odbc
Summary: ODBC database driver for TQt3 (Threaded) Summary: ODBC database driver for TQt3 (Threaded)
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Provides: libtqt3-mt-odbc = %{version}-%{release}
Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n libtqt3-mt-odbc %description -n %{libtqt3}-mt-odbc
This package contains the threaded ODBC plugin for TQt3. Install it if This package contains the threaded ODBC plugin for TQt3. Install it if
you intend to use or write TQt programs that are to access an ODBC DB. you intend to use or write TQt programs that are to access an ODBC DB.
%files -n libtqt3-mt-odbc %files -n %{libtqt3}-mt-odbc
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/tqt3/plugins/sqldrivers/libqsqlodbc.so %{_libdir}/tqt3/plugins/sqldrivers/libqsqlodbc.so
########## ##########
%package -n libtqt3-mt-psql %package -n %{libtqt3}-mt-psql
Summary: PostgreSQL database driver for TQt3 (Threaded) Summary: PostgreSQL database driver for TQt3 (Threaded)
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Provides: libtqt3-mt-psql = %{version}-%{release}
Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n libtqt3-mt-psql %description -n %{libtqt3}-mt-psql
This package contains the threaded PostgreSQL plugin for TQt3. This package contains the threaded PostgreSQL plugin for TQt3.
Install it if you intend to use or write TQt programs that are Install it if you intend to use or write TQt programs that are
to access a PostgreSQL DB. to access a PostgreSQL DB.
%files -n libtqt3-mt-psql %files -n %{libtqt3}-mt-psql
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/tqt3/plugins/sqldrivers/libqsqlpsql.so %{_libdir}/tqt3/plugins/sqldrivers/libqsqlpsql.so
########## ##########
%if 0%{?with_ibase} %if 0%{?with_ibase}
%package -n libtqt3-mt-ibase %package -n %{libtqt3}-mt-ibase
Summary: InterBase/FireBird database driver for TQt3 (Threaded) Summary: InterBase/FireBird database driver for TQt3 (Threaded)
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Provides: libtqt3-mt-ibase = %{version}-%{release}
Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n libtqt3-mt-ibase %description -n %{libtqt3}-mt-ibase
This package contains the threaded InterBase/FireBird plugin This package contains the threaded InterBase/FireBird plugin
for TQt3. Install it if you intend to use or write TQt programs for TQt3. Install it if you intend to use or write TQt programs
that are to access an InterBase/FireBird DB. that are to access an InterBase/FireBird DB.
%files -n libtqt3-mt-ibase %files -n %{libtqt3}-mt-ibase
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/tqt3/plugins/sqldrivers/libqsqlibase.so %{_libdir}/tqt3/plugins/sqldrivers/libqsqlibase.so
%endif %endif
########## ##########
%package -n libtqt3-mt-sqlite %package -n %{libtqt3}-mt-sqlite
Summary: SQLite database driver for TQt3 (Threaded) Summary: SQLite database driver for TQt3 (Threaded)
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Provides: libtqt3-mt-sqlite = %{version}-%{release}
Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n libtqt3-mt-sqlite %description -n %{libtqt3}-mt-sqlite
This package contains the threaded SQLite plugin for TQt3. Install This package contains the threaded SQLite plugin for TQt3. Install
it if you intend to use or write TQt programs that are to access an it if you intend to use or write TQt programs that are to access an
SQLite DB. SQLite DB.
%files -n libtqt3-mt-sqlite %files -n %{libtqt3}-mt-sqlite
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/tqt3/plugins/sqldrivers/libqsqlite.so %{_libdir}/tqt3/plugins/sqldrivers/libqsqlite.so
########## ##########
%package -n libtqt3-mt-sqlite3 %package -n %{libtqt3}-mt-sqlite3
Summary: SQLite3 database driver for TQt3 (Threaded) Summary: SQLite3 database driver for TQt3 (Threaded)
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Provides: libtqt3-mt-sqlite3 = %{version}-%{release}
Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n libtqt3-mt-sqlite3 %description -n %{libtqt3}-mt-sqlite3
This package contains the threaded SQLite3 plugin for TQt3. Install This package contains the threaded SQLite3 plugin for TQt3. Install
it if you intend to use or write TQt programs that are to access an it if you intend to use or write TQt programs that are to access an
SQLite3 DB. SQLite3 DB.
%files -n libtqt3-mt-sqlite3 %files -n %{libtqt3}-mt-sqlite3
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/tqt3/plugins/sqldrivers/libqsqlite3.so %{_libdir}/tqt3/plugins/sqldrivers/libqsqlite3.so
@ -840,7 +866,7 @@ SQLite3 DB.
%package -n tqt3-compat-headers %package -n tqt3-compat-headers
Summary: TQt 1.x and 2.x compatibility includes Summary: TQt 1.x and 2.x compatibility includes
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Requires: libtqt3-mt = %{version}-%{release} Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n tqt3-compat-headers %description -n tqt3-compat-headers
This package contains header files that are intended for build This package contains header files that are intended for build
@ -915,7 +941,7 @@ libtqt3-headers.
%package -n tqt3-dev-tools %package -n tqt3-dev-tools
Summary: TQt3 development tools Summary: TQt3 development tools
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Requires: libtqt3-mt = %{version}-%{release} Requires: %{libtqt3}-mt-devel = %{version}-%{release}
Requires: tqt3-dev-tools-devel = %{version}-%{release} Requires: tqt3-dev-tools-devel = %{version}-%{release}
%description -n tqt3-dev-tools %description -n tqt3-dev-tools
@ -958,7 +984,7 @@ that are written using TQt3.
%package -n tqt3-designer %package -n tqt3-designer
Summary: TQt3 Designer Summary: TQt3 Designer
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n tqt3-designer %description -n tqt3-designer
The TQt Designer is a GUI design program that interactively lets you The TQt Designer is a GUI design program that interactively lets you
@ -1001,8 +1027,7 @@ or automake.
%package -n tqt3-apps-devel %package -n tqt3-apps-devel
Summary: TQt3 Developer applications development files Summary: TQt3 Developer applications development files
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Requires: libtqt3-mt = %{version}-%{release} Requires: %{libtqt3}-mt-devel = %{version}-%{release}
Requires: libtqt3-mt-devel = %{version}-%{release}
%description -n tqt3-apps-devel %description -n tqt3-apps-devel
This package is intended for developers who want to develop applications This package is intended for developers who want to develop applications
@ -1043,7 +1068,7 @@ developer includes with his application.
%package -n tqt3-linguist %package -n tqt3-linguist
Summary: The TQt3 Linguist Summary: The TQt3 Linguist
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n tqt3-linguist %description -n tqt3-linguist
This package contains the TQt3 Linguist which provides translators a This package contains the TQt3 Linguist which provides translators a
@ -1067,7 +1092,7 @@ development files by the translator.
%package -n tqt3-assistant %package -n tqt3-assistant
Summary: The TQt3 assistant application Summary: The TQt3 assistant application
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n tqt3-assistant %description -n tqt3-assistant
This package contains the TQt3 Assistant, an easy to use frontend for This package contains the TQt3 Assistant, an easy to use frontend for
@ -1093,7 +1118,7 @@ the package tqt3-apps-devel.
%package -n tqt3-qtconfig %package -n tqt3-qtconfig
Summary: The TQt3 Configuration Application Summary: The TQt3 Configuration Application
Group: Development/Libraries/X11 Group: Development/Libraries/X11
Requires: libtqt3-mt = %{version}-%{release} Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n tqt3-qtconfig %description -n tqt3-qtconfig
The TQt Configuration program allows endusers to configure the look The TQt Configuration program allows endusers to configure the look
@ -1114,7 +1139,7 @@ install this package.
%package -n tqt3-dev-tools-embedded %package -n tqt3-dev-tools-embedded
Summary: Tools to develop embedded TQt applications Summary: Tools to develop embedded TQt applications
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Requires: %{libtqt3}-mt-devel = %{version}-%{release}
%description -n tqt3-dev-tools-embedded %description -n tqt3-dev-tools-embedded
This package contains applications only suitable for developing This package contains applications only suitable for developing
@ -1138,7 +1163,7 @@ by TQt Embedded applications.
%package -n tqt3-dev-tools-compat %package -n tqt3-dev-tools-compat
Summary: Conversion utilities for TQt3 development Summary: Conversion utilities for TQt3 development
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Requires: %{libtqt3}-mt-devel = %{version}-%{release}
%description -n tqt3-dev-tools-compat %description -n tqt3-dev-tools-compat
This package contains some older TQt tools (namely tqt20fix tqtrename140, This package contains some older TQt tools (namely tqt20fix tqtrename140,
@ -1163,7 +1188,7 @@ translation system to the TQt 3 system.
%package -n tqt3-i18n %package -n tqt3-i18n
Summary: Translation (i18n) files for TQt3 library Summary: Translation (i18n) files for TQt3 library
Group: System/GUI/Other Group: System/GUI/Other
Requires: libtqt3-mt = %{version}-%{release} Requires: %{libtqt3}-mt = %{version}-%{release}
%description -n tqt3-i18n %description -n tqt3-i18n
This package contains the internationalization files for the TQt library. This package contains the internationalization files for the TQt library.

@ -23,6 +23,12 @@
%define tde_libdir %{tde_prefix}/%{_lib} %define tde_libdir %{tde_prefix}/%{_lib}
%define cmake_modules_dir %{_datadir}/cmake/Modules %define cmake_modules_dir %{_datadir}/cmake/Modules
%if 0%{?mdkversion} || 0%{?mdkversion} || 0%{?pclinuxos}
%define libtqt4 %{_lib}tqt4
%else
%define libtqt4 libtqt4
%endif
Name: trinity-tqtinterface Name: trinity-tqtinterface
Epoch: 1 Epoch: 1
Version: 4.2.0 Version: 4.2.0
@ -61,20 +67,6 @@ BuildRequires: pkgconfig
BuildRequires: pth-devel BuildRequires: pth-devel
%endif %endif
# X11 libraries
%if 0%{?rhel} == 4
BuildRequires: xorg-x11-devel
%endif
%if 0%{?mgaversion} || 0%{?mdkversion}
BuildRequires: %{_lib}xi-devel
%endif
%if 0%{?suse_version} >= 1220 || 0%{?rhel} >= 5 || 0%{?fedora}
BuildRequires: libXi-devel
%endif
%if 0%{?suse_version} == 1140
BuildRequires: libXi6-devel
%endif
# MESA support # MESA support
%if 0%{?rhel} || 0%{?fedora} %if 0%{?rhel} || 0%{?fedora}
BuildRequires: mesa-libGL-devel BuildRequires: mesa-libGL-devel
@ -98,10 +90,12 @@ although some code has been added for useful functions that are no longer part o
########## ##########
%package -n libtqt4 %package -n %{libtqt4}
Group: System/GUI/Other Group: System/GUI/Other
Summary: The Trinity Qt Interface Libraries Summary: The Trinity Qt Interface Libraries
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Provides: libtqt4 = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: libtqt3-mt >= 3.5.0
Requires: libtqt3-mt >= 3.5.0 Requires: libtqt3-mt >= 3.5.0
%if 0%{?suse_version} && 0%{?suse_version} < 1300 %if 0%{?suse_version} && 0%{?suse_version} < 1300
@ -111,29 +105,31 @@ Requires: trinity-cmake-macros
Obsoletes: trinity-tqtinterface < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: trinity-tqtinterface < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: trinity-tqtinterface = %{?epoch:%{epoch}:}%{version}-%{release} Provides: trinity-tqtinterface = %{?epoch:%{epoch}:}%{version}-%{release}
%description -n libtqt4 %description -n %{libtqt4}
The Trinity Qt Interface is a library that abstracts Qt from Trinity. The Trinity Qt Interface is a library that abstracts Qt from Trinity.
This allows the Trinity code to rapidly port from one version of Qt to another. This allows the Trinity code to rapidly port from one version of Qt to another.
This is primarily accomplished by defining old functions in terms of new functions, This is primarily accomplished by defining old functions in terms of new functions,
although some code has been added for useful functions that are no longer part of Qt. although some code has been added for useful functions that are no longer part of Qt.
%files -n libtqt4 %files -n %{libtqt4}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libtqt.so.4 %{_libdir}/libtqt.so.4
%{_libdir}/libtqt.so.4.2.0 %{_libdir}/libtqt.so.4.2.0
%post -n libtqt4 %post -n %{libtqt4}
/sbin/ldconfig || : /sbin/ldconfig || :
%postun -n libtqt4 %postun -n %{libtqt4}
/sbin/ldconfig || : /sbin/ldconfig || :
########## ##########
%package -n libtqt4-devel %package -n %{libtqt4}-devel
Group: Development/Libraries Group: Development/Libraries/X11
Summary: The Trinity Qt Interface Libraries (Development Files) Summary: The Trinity Qt Interface Libraries (Development Files)
Requires: libtqt4 = %{?epoch:%{epoch}:}%{version}-%{release} Provides: libtqt4-devel = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: %{libtqt4} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: libtqt3-mt-devel >= 3.5.0 Requires: libtqt3-mt-devel >= 3.5.0
Requires: tqt3-dev-tools >= 3.5.0 Requires: tqt3-dev-tools >= 3.5.0
@ -144,19 +140,19 @@ Requires: trinity-cmake-macros
Obsoletes: trinity-tqtinterface-devel < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: trinity-tqtinterface-devel < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: trinity-tqtinterface-devel = %{?epoch:%{epoch}:}%{version}-%{release} Provides: trinity-tqtinterface-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%description -n libtqt4-devel %description -n %{libtqt4}-devel
The Trinity Qt Interface is a library that abstracts Qt from Trinity. The Trinity Qt Interface is a library that abstracts Qt from Trinity.
This allows the Trinity code to rapidly port from one version of Qt to another. This allows the Trinity code to rapidly port from one version of Qt to another.
This is primarily accomplished by defining old functions in terms of new functions, This is primarily accomplished by defining old functions in terms of new functions,
although some code has been added for useful functions that are no longer part of Qt. although some code has been added for useful functions that are no longer part of Qt.
%post -n libtqt4-devel %post -n %{libtqt4}-devel
/sbin/ldconfig || : /sbin/ldconfig || :
%postun -n libtqt4-devel %postun -n %{libtqt4}-devel
/sbin/ldconfig || : /sbin/ldconfig || :
%files -n libtqt4-devel %files -n %{libtqt4}-devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/convert_qt_tqt1 %{_bindir}/convert_qt_tqt1
%{_bindir}/convert_qt_tqt2 %{_bindir}/convert_qt_tqt2

Loading…
Cancel
Save