RHEL/Fedora: fix QT3 dependencies

pull/3/head
Francois Andriot 13 years ago
parent f106595643
commit 6bb431be79

@ -21,14 +21,14 @@
Name: qt3 Name: qt3
Epoch: 1 Epoch: 1
Version: %{?version} Version: %{?version}
Release: 7%{?dist} Release: 8%{?dist}
Summary: The shared library for the Qt 3 GUI toolkit Summary: The shared library for the Qt 3 GUI toolkit
License: QPL or GPLv2 or GPLv3 License: QPL or GPLv2 or GPLv3
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.trinitydesktop.org/ URL: http://www.trinitydesktop.org/
%if 0%{?rhel} <= 5 %if 0%{?rhel} <= 5 && 0%{?fedora} <= 7
Obsoletes: qt < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: qt < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt = %{?epoch:%{epoch}:}%{version}-%{release} Provides: qt = %{?epoch:%{epoch}:}%{version}-%{release}
%endif %endif
@ -168,7 +168,7 @@ BuildRequires: make
Summary: Graphical configuration tool for programs using Qt 3 Summary: Graphical configuration tool for programs using Qt 3
Group: User Interface/Desktops Group: User Interface/Desktops
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%if 0%{?rhel} <= 5 %if 0%{?rhel} <= 5 && 0%{?fedora} <= 7
Obsoletes: qt-config < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: qt-config < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt-config = %{?epoch:%{epoch}:}%{version}-%{release} Provides: qt-config = %{?epoch:%{epoch}:}%{version}-%{release}
%endif %endif
@ -196,7 +196,7 @@ Requires: libjpeg-devel
Requires: libmng-devel Requires: libmng-devel
Requires: mesa-libGL-devel Requires: mesa-libGL-devel
Requires: mesa-libGLU-devel Requires: mesa-libGLU-devel
%if 0%{?rhel} <= 5 %if 0%{?rhel} <= 5 && 0%{?fedora} <= 7
Obsoletes: qt-devel < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: qt-devel < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt-devel = %{?epoch:%{epoch}:}%{version}-%{release} Provides: qt-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%endif %endif
@ -205,7 +205,7 @@ Provides: qt-devel = %{?epoch:%{epoch}:}%{version}-%{release}
Summary: Documentation for the Qt 3 GUI toolkit Summary: Documentation for the Qt 3 GUI toolkit
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}-devel = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%if 0%{?rhel} <= 5 %if 0%{?rhel} <= 5 && 0%{?fedora} <= 7
Obsoletes: qt-devel-docs < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: qt-devel-docs < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt-devel-docs = %{?epoch:%{epoch}:}%{version}-%{release} Provides: qt-devel-docs = %{?epoch:%{epoch}:}%{version}-%{release}
%endif %endif
@ -214,7 +214,7 @@ Provides: qt-devel-docs = %{?epoch:%{epoch}:}%{version}-%{release}
Summary: ODBC drivers for Qt 3's SQL classes Summary: ODBC drivers for Qt 3's SQL classes
Group: System Environment/Libraries Group: System Environment/Libraries
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%if 0%{?rhel} <= 5 %if 0%{?rhel} <= 5 && 0%{?fedora} <= 7
Obsoletes: qt-ODBC < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: qt-ODBC < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt-ODBC = %{?epoch:%{epoch}:}%{version}-%{release} Provides: qt-ODBC = %{?epoch:%{epoch}:}%{version}-%{release}
%endif %endif
@ -223,7 +223,7 @@ Provides: qt-ODBC = %{?epoch:%{epoch}:}%{version}-%{release}
Summary: MySQL drivers for Qt 3's SQL classes Summary: MySQL drivers for Qt 3's SQL classes
Group: System Environment/Libraries Group: System Environment/Libraries
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%if 0%{?rhel} <= 5 %if 0%{?rhel} <= 5 && 0%{?fedora} <= 7
Obsoletes: qt-MySQL < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: qt-MySQL < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt-MySQL = %{?epoch:%{epoch}:}%{version}-%{release} Provides: qt-MySQL = %{?epoch:%{epoch}:}%{version}-%{release}
%endif %endif
@ -232,7 +232,7 @@ Provides: qt-MySQL = %{?epoch:%{epoch}:}%{version}-%{release}
Summary: PostgreSQL drivers for Qt 3's SQL classes Summary: PostgreSQL drivers for Qt 3's SQL classes
Group: System Environment/Libraries Group: System Environment/Libraries
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%if 0%{?rhel} <= 5 %if 0%{?rhel} <= 5 && 0%{?fedora} <= 7
Obsoletes: qt-PostgreSQL < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: qt-PostgreSQL < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt-PostgreSQL = %{?epoch:%{epoch}:}%{version}-%{release} Provides: qt-PostgreSQL = %{?epoch:%{epoch}:}%{version}-%{release}
%endif %endif
@ -241,7 +241,7 @@ Provides: qt-PostgreSQL = %{?epoch:%{epoch}:}%{version}-%{release}
Summary: sqlite drivers for Qt 3's SQL classes Summary: sqlite drivers for Qt 3's SQL classes
Group: System Environment/Libraries Group: System Environment/Libraries
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%if 0%{?rhel} <= 5 %if 0%{?rhel} <= 5 && 0%{?fedora} <= 7
Obsoletes: qt-sqlite < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: qt-sqlite < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt-sqlite = %{?epoch:%{epoch}:}%{version}-%{release} Provides: qt-sqlite = %{?epoch:%{epoch}:}%{version}-%{release}
%endif %endif
@ -251,7 +251,7 @@ Provides: qt-sqlite = %{?epoch:%{epoch}:}%{version}-%{release}
Summary: Interface designer (IDE) for the Qt 3 toolkit Summary: Interface designer (IDE) for the Qt 3 toolkit
Group: Development/Tools Group: Development/Tools
Requires: %{name}-devel = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%if 0%{?rhel} <= 5 %if 0%{?rhel} <= 5 && 0%{?fedora} <= 7
Obsoletes: qt-designer < %{?epoch:%{epoch}:}%{version}-%{release} Obsoletes: qt-designer < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt-designer = %{?epoch:%{epoch}:}%{version}-%{release} Provides: qt-designer = %{?epoch:%{epoch}:}%{version}-%{release}
%endif %endif
@ -721,6 +721,9 @@ rm -rf %{buildroot}
%changelog %changelog
* Sat Apr 28 2012 Francois Andriot <francois.andriot@free.fr> - 3.3.8.d-8
- Fix Provides and Obsoletes, again and again ...
* Sat Apr 28 2012 Francois Andriot <francois.andriot@free.fr> - 3.3.8.d-7 * Sat Apr 28 2012 Francois Andriot <francois.andriot@free.fr> - 3.3.8.d-7
- Fix Provides and Obsoletes. Now only for RHEL 5. - Fix Provides and Obsoletes. Now only for RHEL 5.

Loading…
Cancel
Save