summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec')
-rwxr-xr-xredhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec50
1 files changed, 23 insertions, 27 deletions
diff --git a/redhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec b/redhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec
index 2d9911e0c..d3564904b 100755
--- a/redhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec
+++ b/redhat/dependencies/tqtinterface/tqtinterface-14.0.0.spec
@@ -23,6 +23,12 @@
%define tde_libdir %{tde_prefix}/%{_lib}
%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
Epoch: 1
Version: 4.2.0
@@ -61,20 +67,6 @@ BuildRequires: pkgconfig
BuildRequires: pth-devel
%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
%if 0%{?rhel} || 0%{?fedora}
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
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
%if 0%{?suse_version} && 0%{?suse_version} < 1300
@@ -111,29 +105,31 @@ Requires: trinity-cmake-macros
Obsoletes: 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.
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,
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,-)
%{_libdir}/libtqt.so.4
%{_libdir}/libtqt.so.4.2.0
-%post -n libtqt4
+%post -n %{libtqt4}
/sbin/ldconfig || :
-%postun -n libtqt4
+%postun -n %{libtqt4}
/sbin/ldconfig || :
##########
-%package -n libtqt4-devel
-Group: Development/Libraries
+%package -n %{libtqt4}-devel
+Group: Development/Libraries/X11
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: tqt3-dev-tools >= 3.5.0
@@ -144,19 +140,19 @@ Requires: trinity-cmake-macros
Obsoletes: 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.
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,
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 || :
-%postun -n libtqt4-devel
+%postun -n %{libtqt4}-devel
/sbin/ldconfig || :
-%files -n libtqt4-devel
+%files -n %{libtqt4}-devel
%defattr(-,root,root,-)
%{_bindir}/convert_qt_tqt1
%{_bindir}/convert_qt_tqt2