Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
KDE:KDE3
qt3
qt3-extensions.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qt3-extensions.spec of Package qt3
# # spec file for package qt3-extensions # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %global _lto_cflags %{nil} Name: qt3-extensions BuildRequires: cups-devel BuildRequires: fdupes BuildRequires: krb5-devel BuildRequires: libnsl-devel BuildRequires: mysql-devel BuildRequires: postgresql-devel BuildRequires: qt3-devel BuildRequires: sqlite3-devel BuildRequires: sqlite-devel BuildRequires: unixODBC-devel BuildRequires: update-desktop-files %if 0%{?suse_version} > 1500 || ( 0%{?sle_version} >= 150200 && 0%{?is_opensuse} ) BuildRequires: postgresql-server-devel %endif Version: 3.3.8c Release: 0 Requires: qt3 = %version Summary: Qt3 Extensions # COMMON-BEGIN # COMMON-BEGIN License: GPL-2.0-only OR GPL-3.0-only OR QPL-1.0 Group: Development/Tools/Other %define x11_free -x11-free- %define rversion 3.3.8b Source0: qt%{x11_free}%rversion.tar.bz2 Source1: build_script.sh Source2: qtconfig3.desktop Source3: qtrc Source4: assistant3.png Source6: assistant3.desktop Source7: designer.desktop Source8: designer.png Source9: linguist.desktop Source5: linguist.png Source10: qt3.sh Source11: qt3.csh # Translations did not change at 3.3.8c Source12: qt3-3.3.8b-translations.tar.bz2 Source100: qtkdeintegration_x11.cpp Source101: qtkdeintegration_x11_p.h Source102: baselibs.conf Source200: attributes Source201: update_spec.pl Patch1: aliasing.diff Patch2: head.diff Patch4: qt3-never-strip.diff Patch5: external-libs.diff Patch6: 0001-dnd_optimization.patch Patch7: 0002-dnd_active_window_fix.patch Patch8: 0007-qpixmap_constants.patch Patch11: 0038-dragobject-dont-prefer-unknown.patch Patch12: qtrc-path.diff Patch14: lib64-plugin-support.diff Patch15: pluginmanager-fix.diff Patch18: no-rpath.dif Patch19: shut-up.diff Patch20: rubberband.diff Patch21: fix-GL-loading.diff Patch23: fix-accessible.diff # From http://www.freedesktop.org/wiki/Software_2fImmoduleQtDownload # Current version from http://freedesktop.org/~daisuke/qt-x11-immodule-unified-qt3.3.5-20060318.diff.bz2 Patch25: qt-x11-immodule-unified-qt3.3.8-20060318.diff Patch28: fix-key-release-event-with-imm.diff Patch29: 0047-fix-kmenu-width.diff Patch31: limit-image-size.diff Patch34: 0005-qpixmap_mitshm.patch Patch35: qt-transparency.patch Patch37: 0055-qtextedit_zoom.patch Patch38: 0048-qclipboard_hack_80072.patch Patch39: fix-qtranslator-crash.diff Patch40: 0059-qpopup_has_mouse.patch Patch41: 0060-qpopup_ignore_mousepos.patch Patch42: add_qexport_visibility.patch Patch43: 0056-khotkeys_input_84434.patch Source250: enable-designer-plugins.diff Patch53: fix-xinerama-dialog-placement.diff Patch54: kmenu-search-fix.diff Patch55: qt3-fix-cast.diff Patch100: qt.patch Patch101: qt3-arm-gcc4.patch Patch102: xinerama.patch Patch113: fix-assistant-path.patch Patch117: qtimer-debug.diff Patch119: xinerama-qpopupmenu.diff Patch121: qt3-warnings.diff Patch123: use-xrandr-1.2.diff Patch125: qcstring-format-warnings.diff Patch127: mng-reading-fix.patch Patch128: 0079-compositing-types.patch Patch129: 0080-net-wm-sync-request.patch Patch132: revert-qt-3.3.8-khmer-fix.diff Patch133: 0085-fix-buildkey.diff Patch134: fix-xinput-clash.diff Patch135: parseFontName.diff Patch136: qt3-no-date.diff Patch137: popen-leak-fix.diff Patch138: qt3-libpng14.diff Patch139: gcc46.diff Patch140: qt-3.3.8-libpng15.patch Patch141: qt-x11-free-3.3.8b-odbc.patch Patch142: extend-freetype-includes-search.patch Patch143: qt3-trident-add-glib-mainloop-support.patch Patch188: qt3-mysql-force-latin1.diff Patch189: qt-x11-free-3.3.8b-CVE-2013-4549.patch Patch190: qt-x11-free-3.3.8b-CVE-2015-0295.patch Patch191: qt-x11-free-3.3.8b-CVE-2015-1860.patch Patch192: qt3-trinity-fix-iconview-widget.patch Patch193: qt3-trinity-fix-iconview-widget2.patch Patch194: qt3-extensions_sqlite3.patch Patch195: qt3-extensions_postgresql11.patch Patch196: qt3-extensions_postgresql12.patch # TQt integration Patch200: qt-3.3.8c.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package contains extension libraries for Qt 3, such as the Netscape plug-in modules. %define build_sub_dirs src plugins/src tools/designer/uilib/ tools/designer/uic tools/qtconfig tools/assistant/lib tools/assistant tutorial %prep %setup -q -n qt%{x11_free}%rversion #causes kdebindings to fail #%patch -P 143 -p1 %patch -P 1 %patch -P 2 %patch -P 4 %patch -P 5 %patch -P 6 %patch -P 7 %patch -P 8 %patch -P 11 %patch -P 12 if [ "%_lib" = "lib64" ]; then %patch -P 14 fi %patch -P 15 %patch -P 18 %patch -P 19 %patch -P 20 %patch -P 23 %patch -P 25 %patch -P 28 %patch -P 29 %patch -P 31 %patch -P 34 %patch -P 35 %patch -P 37 %patch -P 38 %patch -P 39 %patch -P 40 %patch -P 41 %patch -P 42 %patch -P 43 %patch -P 100 %patch -P 102 %patch -P 53 %patch -P 54 %patch -P 55 %patch -P 101 %patch -P 113 %patch -P 117 %patch -P 119 %patch -P 121 %patch -P 123 ln -sf $PWD/src/inputmethod/qinputcontextfactory.h include/ ln -sf $PWD/src/inputmethod/qinputcontextplugin.h include/ ln -sf $PWD/src/kernel/qinputcontext.h include/ ln -sf $PWD/src/kernel/qinputcontextinterface_p.h include/private/ ln -sf $PWD/src/kernel/qximinputcontext_p.h include/private/ if [ %_lib = "lib" ]; then sed 's,/lib64/,/lib/,' %PATCH21 | patch -p0 else %patch -P 21 fi %patch -P 125 %patch -P 127 %patch -P 128 %patch -P 129 %patch -P 132 %patch -P 133 %patch -P 134 %patch -P 135 %patch -P 136 %patch -P 137 %if %suse_version > 1220 %patch -P 140 %else %patch -P 138 -p1 %endif %patch -P 139 %if %suse_version > 1230 %patch -P 141 %endif %patch -P 200 %patch -P 142 -p1 %patch -P 188 -p1 %patch -P 189 -p1 %patch -P 190 -p1 %patch -P 191 -p1 %patch -P 192 -p1 %patch -P 193 -p1 %patch -P 194 -p1 %if 0%{?suse_version} > 1500 || ( 0%{?sle_version} >= 150200 && 0%{?is_opensuse} ) %patch -P 195 -p1 %patch -P 196 -p1 %endif # copy qt kde integration files cp %SOURCE100 %SOURCE101 src/kernel/ cp %SOURCE101 include/private/ cd translations tar xvjf %SOURCE12 cd .. # COMMON-END # COMMON-END %description This package contains extension libraries for Qt 3, such as the Netscape plug-in modules. %package -n qt3-devel-examples Summary: Programming Examples for Qt 3 Group: Development/Sources Provides: qt3-examples Obsoletes: qt3-examples %description -n qt3-devel-examples This package contains small executables with code to demonstrate Qt programming. Have a look in /usr/share/doc/packages/qt3/examples/. %package -n qt3-mysql Summary: MySQL Plug-In for Qt Group: Productivity/Databases/Clients Provides: qt3_database_plugin %description -n qt3-mysql Plug-in for using the MySQL database with the generic Qt database interface. %package -n qt3-unixODBC Summary: A UnixODBC Plug-In for Qt Group: Productivity/Databases/Clients Provides: qt3_database_plugin %description -n qt3-unixODBC A plug-in for using UnixODBC supported databases with the generic Qt database interface. %package -n qt3-postgresql Summary: A PostgreSQL Plug-In for Qt Group: Productivity/Databases/Clients Provides: qt3_database_plugin %description -n qt3-postgresql A Plug-in for using the PostgreSQL database with the generic Qt database interface. %package -n qt3-sqlite Summary: SQLite Database Plug-In for Qt Group: Development/Tools/Other Provides: qt3_database_plugin %description -n qt3-sqlite The Qt database supports SQLite with this plug-in. (No configured and running daemon is required.) %package -n qt3-devel-tools Summary: User Interface Builder and other tools (designer, assistant, linguist) Group: Development/Tools/GUI Builders Requires: qt3-devel = %version Provides: qt3-designer Obsoletes: qt3-designer %description -n qt3-devel-tools The designer creates .ui files. The uic generates C++ code from these files. The package also contains the Qt Assistant (Qt documentation browser) and the Qt Linguist (for translations). %package -n qt3-man Summary: Qt 3 Man Pages Group: Documentation/Man Requires: qt3-devel = %version Conflicts: qtman qt-man %description -n qt3-man This package contains all the man pages for all the Qt 3 classes. %build export QTDIR=/usr/lib/qt3/ export WLIB=%_lib export VERSION=%suse_version source %{SOURCE1} %{version} export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" # # compile threaded version to build all tools. # the lib itself becomes packaged from qt3.spec # call_configure -thread -shared -L$PWD/%_lib $OPTIONS ln -sf /usr/lib/qt3/%_lib/* lib/ ln -sf /usr/lib/qt3/bin/* bin/ cd plugins/src make %{?jobs:-j%jobs} cd - # # build examples # cd tools/assistant/lib make %{?jobs:-j%jobs} cd - cd examples make %{?jobs:-j%jobs} cd - # # build extra tools # cd tools make %{?jobs:-j%jobs} make INSTALL_ROOT=$RPM_BUILD_ROOT install for i in qembed qconfig msg2qm mergetr ; do cd "$i" && make %{?jobs:-j%jobs} && cd - done cd .. %install export WLIB=%_lib export VERSION=%suse_version source %{SOURCE1} cd plugins/src make INSTALL_ROOT=$RPM_BUILD_ROOT install cd - cd tools make INSTALL_ROOT=$RPM_BUILD_ROOT install for i in qembed qconfig msg2qm mergetr ; do cd "$i" && install -m 0755 $i ${RPM_BUILD_ROOT}/usr/lib/qt3/bin/ && cd - done cd .. install -m 0755 bin/findtr bin/qt20fix bin/qtrename140 ${RPM_BUILD_ROOT}/usr/lib/qt3/bin/ if [ %_lib = lib64 ]; then for i in $RPM_BUILD_ROOT/usr/lib/qt3/plugins/*/*.so; do mv "$i" "${i%.so}.lib64.so" done fi post_install $RPM_BUILD_ROOT/usr/lib/qt3/ # # create default doc dir # install -d -m 0755 ${RPM_BUILD_ROOT}/%{_docdir}/qt3/ # # create links in ld.so.conf path # install -d -m 0755 ${RPM_BUILD_ROOT}/%{_libdir} #install -d -m 0755 ${RPM_BUILD_ROOT}/usr/bin/ #ln -sf ../lib/qt3/bin/designer ${RPM_BUILD_ROOT}/usr/bin/designer #ln -sf ../lib/qt3/bin/linguist ${RPM_BUILD_ROOT}/usr/bin/linguist %suse_update_desktop_file -i designer Qt Development GUIDesigner %suse_update_desktop_file -i linguist Qt Development Translation mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps perl -pi -e 's/Icon=designer/Icon=designer3/' ${RPM_BUILD_ROOT}/usr/share/applications/designer.desktop perl -pi -e 's,Exec=designer,Exec=/usr/lib/qt3/bin/designer,' ${RPM_BUILD_ROOT}/usr/share/applications/designer.desktop mv ${RPM_BUILD_ROOT}/usr/share/applications/designer.desktop ${RPM_BUILD_ROOT}/usr/share/applications/designer3.desktop install -m 0644 tools/assistant/images/designer.png $RPM_BUILD_ROOT/usr/share/pixmaps/designer3.png rm -f ${RPM_BUILD_ROOT}/usr/share/pixmaps/designer.png perl -pi -e 's,Exec=linguist,Exec=/usr/lib/qt3/bin/linguist,' ${RPM_BUILD_ROOT}/usr/share/applications/linguist.desktop perl -pi -e 's,Icon=linguist,Icon=linguist3,' ${RPM_BUILD_ROOT}/usr/share/applications/linguist.desktop mv ${RPM_BUILD_ROOT}/usr/share/pixmaps/linguist.png ${RPM_BUILD_ROOT}/usr/share/pixmaps/linguist3.png ##### these files are not getting installed by "make install" ... bug ? # # # install manpages # rm -rf $RPM_BUILD_ROOT/%{_mandir} install -d $RPM_BUILD_ROOT/%{_mandir} cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir}/ # # install examples # install -d ${RPM_BUILD_ROOT}/usr/lib/qt3/doc/ find ./examples/ \ -name \*.o -o -name .obj -o -name .moc -o -name Makefile \ | xargs rm -rf cp -a examples ${RPM_BUILD_ROOT}/usr/lib/qt3/doc/ ln -sf /usr/lib/qt3/doc/examples ${RPM_BUILD_ROOT}/%{_docdir}/qt3/ # # to be sure we do not package files which are packaged in other qt3 packages # rpm -ql qt3 qt3-devel qt3-devel-doc \ | while read i ; do [ -d "$i" ] || rm -f $RPM_BUILD_ROOT/"$i" done # # we do have them in qt3-devel-doc already # rm -f $RPM_BUILD_ROOT/usr/lib/qt3/bin/assistant rm -f $RPM_BUILD_ROOT/usr/lib/qt3/%_lib/libqassistantclient.* rm -f $RPM_BUILD_ROOT/usr/lib/qt3/translations/assistant_de.qm %if %suse_version <= 1500 for l in $RPM_BUILD_ROOT/usr/lib/qt3/%_lib/*.a; do strip --strip-unneeded $l done %endif %if %suse_version > 1020 %fdupes -s $RPM_BUILD_ROOT %endif %pre if test -L usr/lib/qt3; then rm usr/lib/qt3 fi %post %run_ldconfig %post -n qt3-devel-tools %run_ldconfig %files %defattr(-,root,root) /usr/lib/qt3/bin/qembed %files -n qt3-mysql %defattr(-,root,root) %dir /usr/lib/qt3/plugins/sqldrivers /usr/lib/qt3/plugins/sqldrivers/libqsqlmysql*.so %files -n qt3-postgresql %defattr(-,root,root) %dir /usr/lib/qt3/plugins/sqldrivers /usr/lib/qt3/plugins/sqldrivers/libqsqlpsql*.so %files -n qt3-unixODBC %defattr(-,root,root) %dir /usr/lib/qt3/plugins/sqldrivers /usr/lib/qt3/plugins/sqldrivers/libqsqlodbc*.so %files -n qt3-sqlite %defattr(-,root,root) %dir /usr/lib/qt3/plugins/sqldrivers /usr/lib/qt3/plugins/sqldrivers/libqsqlite*.so %files -n qt3-devel-tools %defattr(-,root,root) #/usr/bin/designer #/usr/bin/linguist /usr/lib/qt3/bin/qconfig /usr/lib/qt3/bin/findtr /usr/lib/qt3/bin/qt20fix /usr/lib/qt3/bin/qtrename140 /usr/lib/qt3/bin/msg2qm /usr/lib/qt3/bin/mergetr /usr/lib/qt3/bin/designer /usr/lib/qt3/bin/linguist /usr/lib/qt3/bin/qm2ts /usr/lib/qt3/bin/lrelease /usr/lib/qt3/bin/lupdate /usr/lib/qt3/templates /usr/lib/qt3/plugins/designer /usr/lib/qt3/phrasebooks /usr/lib/qt3/%_lib/libdesignercore.* /usr/lib/qt3/%_lib/libeditor.* /usr/share/applications/* /usr/share/pixmaps/designer3.png /usr/share/pixmaps/linguist3.png %files -n qt3-devel-examples %defattr(-,root,root) %dir /usr/lib/qt3/doc /%{_docdir}/qt3/examples /usr/lib/qt3/doc/examples %files -n qt3-man %defattr(-,root,root) %{_mandir}/man*/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor