make qtchooser support non-conflicting

This commit is contained in:
Rex Dieter 2013-01-24 12:14:01 -06:00
parent 01e166b0c5
commit 36205006b4

21
qt.spec
View File

@ -20,7 +20,7 @@ Summary: Qt toolkit
Name: qt Name: qt
Epoch: 1 Epoch: 1
Version: 4.8.4 Version: 4.8.4
Release: 8%{?dist} Release: 9%{?dist}
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: (LGPLv2 with exceptions or GPLv3 with exceptions) and ASL 2.0 and BSD and FTL and MIT License: (LGPLv2 with exceptions or GPLv3 with exceptions) and ASL 2.0 and BSD and FTL and MIT
@ -264,11 +264,6 @@ Requires: ca-certificates
%if 0%{?qt_settings} %if 0%{?qt_settings}
Requires: qt-settings Requires: qt-settings
%endif %endif
%if 0%{?qtchooser}
Requires: qtchooser
%else
Conflicts: qtchooser
%endif
%description %description
Qt is a software toolkit for developing applications. Qt is a software toolkit for developing applications.
@ -680,10 +675,8 @@ for i in * ; do
ln -s ../../../bin/${i}-qt4 $i ln -s ../../../bin/${i}-qt4 $i
;; ;;
*) *)
%if ! 0%{?qtchooser}
mv $i ../../../bin/ mv $i ../../../bin/
ln -s ../../../bin/$i . ln -s ../../../bin/$i .
%endif
;; ;;
esac esac
done done
@ -853,6 +846,7 @@ rm -rf %{buildroot}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README LICENSE.GPL3 LICENSE.LGPL LGPL_EXCEPTION.txt %doc README LICENSE.GPL3 LICENSE.LGPL LGPL_EXCEPTION.txt
%if 0%{?qtchooser} %if 0%{?qtchooser}
%dir %{_sysconfdir}/xdg/qtchooser
# not editable config files, so not using %%config here # not editable config files, so not using %%config here
%{_sysconfdir}/xdg/qtchooser/*.conf %{_sysconfdir}/xdg/qtchooser/*.conf
%endif %endif
@ -886,10 +880,8 @@ rm -rf %{buildroot}
%{_qt4_libdir}/libQtCore.so.4* %{_qt4_libdir}/libQtCore.so.4*
%if 0%{?dbus:1} %if 0%{?dbus:1}
%if "%{_qt4_bindir}" != "%{_bindir}" %if "%{_qt4_bindir}" != "%{_bindir}"
%if ! 0%{?qtchooser}
%{_bindir}/qdbus %{_bindir}/qdbus
%endif %endif
%endif
%{_qt4_bindir}/qdbus %{_qt4_bindir}/qdbus
%{_qt4_libdir}/libQtDBus.so.4* %{_qt4_libdir}/libQtDBus.so.4*
%endif %endif
@ -995,7 +987,6 @@ fi
%{_bindir}/uic* %{_bindir}/uic*
%{_bindir}/designer* %{_bindir}/designer*
%{_bindir}/linguist* %{_bindir}/linguist*
%if ! 0%{?qtchooser}
%{_bindir}/lconvert %{_bindir}/lconvert
%{_bindir}/pixeltool %{_bindir}/pixeltool
%{_bindir}/qdoc3 %{_bindir}/qdoc3
@ -1013,7 +1004,6 @@ fi
%{_bindir}/xmlpatterns %{_bindir}/xmlpatterns
%{_bindir}/xmlpatternsvalidator %{_bindir}/xmlpatternsvalidator
%endif %endif
%endif
%if "%{_qt4_headerdir}" != "%{_includedir}" %if "%{_qt4_headerdir}" != "%{_includedir}"
%dir %{_qt4_headerdir}/ %dir %{_qt4_headerdir}/
%endif %endif
@ -1076,9 +1066,7 @@ fi
%if 0%{?qvfb} %if 0%{?qvfb}
%files qvfb -f qvfb.lang %files qvfb -f qvfb.lang
%defattr(-,root,root,-) %defattr(-,root,root,-)
%if ! 0%{?qtchooser}
%{_bindir}/qvfb %{_bindir}/qvfb
%endif
%{_qt4_bindir}/qvfb %{_qt4_bindir}/qvfb
%endif %endif
@ -1148,17 +1136,18 @@ fi
%endif %endif
%exclude %{_qt4_plugindir}/sqldrivers %exclude %{_qt4_plugindir}/sqldrivers
%if "%{_qt4_bindir}" != "%{_bindir}" %if "%{_qt4_bindir}" != "%{_bindir}"
%if ! 0%{?qtchooser}
%{?dbus:%{_bindir}/qdbusviewer} %{?dbus:%{_bindir}/qdbusviewer}
%{_bindir}/qmlviewer %{_bindir}/qmlviewer
%endif %endif
%endif
%{?dbus:%{_qt4_bindir}/qdbusviewer} %{?dbus:%{_qt4_bindir}/qdbusviewer}
%{_qt4_bindir}/qmlviewer %{_qt4_bindir}/qmlviewer
%{_datadir}/icons/hicolor/*/apps/qt4-logo.* %{_datadir}/icons/hicolor/*/apps/qt4-logo.*
%changelog %changelog
* Thu Jan 24 2013 Rex Dieter <rdieter@fedoraproject.org> 1:4.8.4-9
- make qtchooser support non-conflicting
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 1:4.8.4-8 * Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 1:4.8.4-8
- rebuild due to "jpeg8-ABI" feature drop - rebuild due to "jpeg8-ABI" feature drop