RHEL/Fedora: updates QT3 dependencies

pull/3/head
Francois Andriot 13 years ago
parent d56d039d95
commit 7a3373213c

@ -19,16 +19,19 @@
# ...maybe others !!!! # ...maybe others !!!!
Name: qt3 Name: qt3
Epoch: 1
Version: %{?version} Version: %{?version}
Release: 6%{?dist} Release: 7%{?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/
Obsoletes: %{name} < %{version}-%{release} %if 0%{?rhel} <= 5
Provides: %{name} = %{version}-%{release} Obsoletes: qt < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt = %{?epoch:%{epoch}:}%{version}-%{release}
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -165,8 +168,10 @@ 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}
Obsoletes: %{name}-config < %{version}-%{release} %if 0%{?rhel} <= 5
Provides: %{name}-config = %{version}-%{release} Obsoletes: qt-config < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: qt-config = %{?epoch:%{epoch}:}%{version}-%{release}
%endif
%package devel %package devel
@ -191,63 +196,65 @@ 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
Obsoletes: %{name}-devel < %{version}-%{release} Obsoletes: qt-devel < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{name}-devel = %{version}-%{release} Provides: qt-devel = %{?epoch:%{epoch}:}%{version}-%{release}
%endif
%package devel-docs %package devel-docs
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
Obsoletes: %{name}-devel-docs < %{version}-%{release} Obsoletes: qt-devel-docs < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{name}-devel-docs = %{version}-%{release} Provides: qt-devel-docs = %{?epoch:%{epoch}:}%{version}-%{release}
%endif
%package ODBC %package ODBC
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
Obsoletes: %{name}-ODBC < %{version}-%{release} Obsoletes: qt-ODBC < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{name}-ODBC = %{version}-%{release} Provides: qt-ODBC = %{?epoch:%{epoch}:}%{version}-%{release}
%endif
%package MySQL %package MySQL
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
Obsoletes: %{name}-MySQL < %{version}-%{release} Obsoletes: qt-MySQL < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{name}-MySQL = %{version}-%{release} Provides: qt-MySQL = %{?epoch:%{epoch}:}%{version}-%{release}
%endif
%package PostgreSQL %package PostgreSQL
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
Obsoletes: %{name}-PostgreSQL < %{version}-%{release} Obsoletes: qt-PostgreSQL < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{name}-PostgreSQL = %{version}-%{release} Provides: qt-PostgreSQL = %{?epoch:%{epoch}:}%{version}-%{release}
%endif
%package sqlite %package sqlite
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
Obsoletes: %{name}-sqlite < %{version}-%{release} Obsoletes: qt-sqlite < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{name}-sqlite = %{version}-%{release} Provides: qt-sqlite = %{?epoch:%{epoch}:}%{version}-%{release}
%endif
%package designer %package designer
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
Obsoletes: %{name}-designer < %{version}-%{release} Obsoletes: qt-designer < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{name}-designer = %{version}-%{release} Provides: qt-designer = %{?epoch:%{epoch}:}%{version}-%{release}
%endif
%description %description
@ -714,6 +721,9 @@ rm -rf %{buildroot}
%changelog %changelog
* Sat Apr 28 2012 Francois Andriot <francois.andriot@free.fr> - 3.3.8.d-7
- Fix Provides and Obsoletes. Now only for RHEL 5.
* Tue Apr 24 2012 Francois Andriot <francois.andriot@free.fr> - 3.3.8.d-6 * Tue Apr 24 2012 Francois Andriot <francois.andriot@free.fr> - 3.3.8.d-6
- Fix Qt3 builds with libpng15. [Bug #683] - Fix Qt3 builds with libpng15. [Bug #683]

Loading…
Cancel
Save