- allow for minimal bootstrap build (*cough* arm *cough*)
This commit is contained in:
parent
056a4430f6
commit
e8758e5268
42
qt.spec
42
qt.spec
@ -12,7 +12,7 @@ Epoch: 1
|
|||||||
Name: qt4
|
Name: qt4
|
||||||
%endif
|
%endif
|
||||||
Version: 4.5.1
|
Version: 4.5.1
|
||||||
Release: 10%{?dist}
|
Release: 10%{?dist}.1
|
||||||
|
|
||||||
# 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
|
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
||||||
@ -74,6 +74,8 @@ Source24: qtconfig.desktop
|
|||||||
Source30: hi128-app-qt4-logo.png
|
Source30: hi128-app-qt4-logo.png
|
||||||
Source31: hi48-app-qt4-logo.png
|
Source31: hi48-app-qt4-logo.png
|
||||||
|
|
||||||
|
## BOOTSTRAPPING, undef docs, demos, examples, phonon, webkit
|
||||||
|
|
||||||
## optional plugin bits
|
## optional plugin bits
|
||||||
# set to -no-sql-<driver> to disable
|
# set to -no-sql-<driver> to disable
|
||||||
# set to -qt-sql-<driver> to enable *in* qt library
|
# set to -qt-sql-<driver> to enable *in* qt library
|
||||||
@ -81,12 +83,11 @@ Source31: hi48-app-qt4-logo.png
|
|||||||
%define odbc -plugin-sql-odbc
|
%define odbc -plugin-sql-odbc
|
||||||
%define psql -plugin-sql-psql
|
%define psql -plugin-sql-psql
|
||||||
%define sqlite -plugin-sql-sqlite
|
%define sqlite -plugin-sql-sqlite
|
||||||
%define phonon -phonon
|
#define phonon -phonon
|
||||||
%define phonon_backend -no-phonon-backend
|
%define phonon_backend -no-phonon-backend
|
||||||
%define webkit -webkit
|
#define webkit -webkit
|
||||||
%define gtkstyle -gtkstyle
|
%define gtkstyle -gtkstyle
|
||||||
|
|
||||||
#define nas -system-nas-sound
|
|
||||||
%define nas -no-nas-sound
|
%define nas -no-nas-sound
|
||||||
%if 0%{?fedora} > 4 || 0%{?rhel} > 4
|
%if 0%{?fedora} > 4 || 0%{?rhel} > 4
|
||||||
# link dbus
|
# link dbus
|
||||||
@ -190,6 +191,7 @@ This package contains base tools, like string, xml, and network
|
|||||||
handling.
|
handling.
|
||||||
|
|
||||||
|
|
||||||
|
#define demos 1
|
||||||
%package demos
|
%package demos
|
||||||
Summary: Demonstration applications for %{name}
|
Summary: Demonstration applications for %{name}
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
@ -197,6 +199,7 @@ Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|||||||
%description demos
|
%description demos
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
#define docs 1
|
||||||
%package doc
|
%package doc
|
||||||
Summary: API documentation for %{name}
|
Summary: API documentation for %{name}
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
@ -253,6 +256,7 @@ applications using the Qt toolkit. Includes:
|
|||||||
Qt Linguist
|
Qt Linguist
|
||||||
|
|
||||||
|
|
||||||
|
#define examples 1
|
||||||
%package examples
|
%package examples
|
||||||
Summary: Programming examples for %{name}
|
Summary: Programming examples for %{name}
|
||||||
Group: Documentation
|
Group: Documentation
|
||||||
@ -422,7 +426,7 @@ fi
|
|||||||
-no-rpath \
|
-no-rpath \
|
||||||
-reduce-relocations \
|
-reduce-relocations \
|
||||||
-no-separate-debug-info \
|
-no-separate-debug-info \
|
||||||
%{?phonon} \
|
%{?phonon} %{!?phonon:-no-phonon} \
|
||||||
%{?phonon_backend} \
|
%{?phonon_backend} \
|
||||||
%{?no_pch} \
|
%{?no_pch} \
|
||||||
-sm \
|
-sm \
|
||||||
@ -449,7 +453,10 @@ fi
|
|||||||
%{?mysql} \
|
%{?mysql} \
|
||||||
%{?psql} \
|
%{?psql} \
|
||||||
%{?odbc} \
|
%{?odbc} \
|
||||||
%{?sqlite} %{?_system_sqlite}
|
%{?sqlite} %{?_system_sqlite} \
|
||||||
|
%{!?docs:-nomake docs} \
|
||||||
|
%{!?demos:-nomake demos} \
|
||||||
|
%{!?examples:-nomake examples}
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -461,9 +468,9 @@ make install INSTALL_ROOT=%{buildroot}
|
|||||||
|
|
||||||
# Add desktop file(s)
|
# Add desktop file(s)
|
||||||
desktop-file-install \
|
desktop-file-install \
|
||||||
--dir %{buildroot}%{_datadir}/applications \
|
--dir=%{buildroot}%{_datadir}/applications \
|
||||||
--vendor="qt4" \
|
--vendor="qt4" \
|
||||||
%{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24}
|
%{?docs:%{SOURCE20}} %{SOURCE21} %{SOURCE22} %{?demos:%{SOURCE23}} %{SOURCE24}
|
||||||
|
|
||||||
## pkg-config
|
## pkg-config
|
||||||
# strip extraneous dirs/libraries
|
# strip extraneous dirs/libraries
|
||||||
@ -688,14 +695,16 @@ gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
|
|||||||
%{_qt4_plugindir}/sqldrivers/libqsqlite*
|
%{_qt4_plugindir}/sqldrivers/libqsqlite*
|
||||||
%{_qt4_translationdir}/
|
%{_qt4_translationdir}/
|
||||||
|
|
||||||
|
%if 0%{?demos}
|
||||||
%files demos
|
%files demos
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_qt4_bindir}/qt*demo*
|
%{_qt4_bindir}/qt*demo*
|
||||||
%if "%{_qt4_bindir}" != "%{_bindir}"
|
%if "%{_qt4_bindir}" != "%{_bindir}"
|
||||||
%{_bindir}/qt*demo*
|
%{_bindir}/qt*demo*
|
||||||
%endif
|
%endif
|
||||||
%{_datadir}/applications/*qtdemo*.desktop
|
%{_datadir}/applications/*qtdemo.desktop
|
||||||
%{_qt4_demosdir}/
|
%{_qt4_demosdir}/
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -758,12 +767,13 @@ gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
|
|||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
# Qt designer
|
# Qt designer
|
||||||
%{_qt4_bindir}/designer*
|
%{_qt4_bindir}/designer*
|
||||||
%{_datadir}/applications/*designer*.desktop
|
%{_datadir}/applications/*designer.desktop
|
||||||
# Qt Linguist
|
# Qt Linguist
|
||||||
%{_qt4_bindir}/linguist*
|
%{_qt4_bindir}/linguist*
|
||||||
%{_datadir}/applications/*linguist*.desktop
|
%{_datadir}/applications/*linguist.desktop
|
||||||
%{_datadir}/icons/hicolor/*/apps/linguist4.*
|
%{_datadir}/icons/hicolor/*/apps/linguist4.*
|
||||||
|
|
||||||
|
%if 0%{?docs}
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%dir %{_qt4_docdir}/
|
%dir %{_qt4_docdir}/
|
||||||
@ -772,11 +782,14 @@ gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
|
|||||||
%{_qt4_docdir}/src/
|
%{_qt4_docdir}/src/
|
||||||
#{_qt4_prefix}/doc
|
#{_qt4_prefix}/doc
|
||||||
# Qt Assistant (bin moved to -x11)
|
# Qt Assistant (bin moved to -x11)
|
||||||
%{_datadir}/applications/*assistant*.desktop
|
%{_datadir}/applications/*assistant.desktop
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?examples}
|
||||||
%files examples
|
%files examples
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_qt4_examplesdir}/
|
%{_qt4_examplesdir}/
|
||||||
|
%endif
|
||||||
|
|
||||||
%if "%{?mysql}" == "-plugin-sql-mysql"
|
%if "%{?mysql}" == "-plugin-sql-mysql"
|
||||||
%files mysql
|
%files mysql
|
||||||
@ -823,11 +836,14 @@ gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
|
|||||||
%{_qt4_bindir}/assistant*
|
%{_qt4_bindir}/assistant*
|
||||||
%{?dbus:%{_qt4_bindir}/qdbusviewer}
|
%{?dbus:%{_qt4_bindir}/qdbusviewer}
|
||||||
%{_qt4_bindir}/qt*config*
|
%{_qt4_bindir}/qt*config*
|
||||||
%{_datadir}/applications/*qtconfig*.desktop
|
%{_datadir}/applications/*qtconfig.desktop
|
||||||
%{_datadir}/icons/hicolor/*/apps/qt4-logo.*
|
%{_datadir}/icons/hicolor/*/apps/qt4-logo.*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 20 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.5.1-10.1
|
||||||
|
- allow for minimal bootstrap build (*cough* arm *cough*)
|
||||||
|
|
||||||
* Wed May 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.5.1-10
|
* Wed May 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.5.1-10
|
||||||
- improved kde4_plugins patch, skip expensive/unneeded canonicalPath
|
- improved kde4_plugins patch, skip expensive/unneeded canonicalPath
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user