Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
libqt4.import5628
libqt4-sql-plugins.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libqt4-sql-plugins.spec of Package libqt4.import5628
# # spec file for package libqt4-sql-plugins # # Copyright (c) 2012 SUSE LINUX Products 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/ # # norootforbuild # nodebuginfo Name: libqt4-sql-plugins BuildRequires: cups-devel BuildRequires: libmysqlclient-devel pkgconfig postgresql-devel unixODBC-devel BuildRequires: alsa-devel gtk2-devel libqt4-devel %if 0%{?suse_version} BuildRequires: update-desktop-files %endif # COMMON-VERSION-BEGIN # COMMON-VERSION-BEGIN Version: 4.7.1 Release: 8.<RELEASE15> %define base_name libqt4 %define x11_free -everywhere-opensource-src- %define rversion %version # COMMON-VERSION-END # COMMON-VERSION-END Url: http://www.trolltech.com License: QPL, GPL Group: System/Libraries AutoReqProv: on Summary: Qt 4 SQL related libraries # COMMON-BEGIN # COMMON-BEGIN Source: qt%x11_free%rversion.tar.bz2 # to get mtime of file: Source1: libqt4.changes Source2: baselibs.conf Source10: qt4config.desktop Source11: designer4.desktop Source12: linguist4.desktop Source13: assistant4.desktop Source14: assistant.png Source15: designer.png Source16: linguist.png Patch2: qt-never-strip.diff Patch3: plastik-default.diff Patch6: use-freetype-default.diff Patch1006: use-freetype-default-legacy.diff Patch8: link-tools-shared.diff Patch39: 0191-listview-alternate-row-colors.diff Patch40: 0188-fix-moc-parser-same-name-header.diff Patch41: konsole-nvidia-font-speed.diff Patch43: 0195-compositing-properties.diff Patch60: 0180-window-role.diff Patch61: qt4-fake-bold.patch Patch70: 0225-invalidate-tabbar-geometry-on-refresh.patch Patch75: qt-debug-timer.diff Patch87: qfatal-noreturn.diff Patch101: no-moc-date.diff Patch102: 0253-qmake_correct_path_separators.diff Patch107: webkit-ia64_s390x.patch Patch109: libqt4-libtool-nodate.diff Patch113: ppc64-webkit-link-fix.diff Patch118: rcc-stable-dirlisting.diff Patch119: hppa_ldcw_fix.diff Patch120: hppa_unaligned_access_fix_458133.diff Patch121: webkit-sparc64.diff Patch122: push-glib-context.diff Patch123: use-cups-default-print-settings-bnc552218.diff Patch124: fix-psql.diff Patch125: tiff-samples-reader-crash.diff Patch126: harfbuzz-crash.diff Patch127: blacklist-diginotar-and-comodo-certs.diff Patch128: CVE-2011-3922.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %define common_options --opensource -fast -no-separate-debug-info -shared -xkb -xrender -xcursor -dbus-linked -xfixes -xrandr -xinerama -sm -no-nas-sound -no-rpath -system-libjpeg -system-libpng -accessibility -cups -stl -nis -system-zlib -qt-gif -prefix /usr -L %_libdir -libdir %_libdir -docdir %_docdir/%{base_name} -examplesdir %_libdir/qt4/examples -demosdir %_libdir/qt4/demos -plugindir %plugindir -translationdir /usr/share/qt4/translations -iconv -sysconfdir /etc/settings -datadir /usr/share/qt4/ -no-pch -reduce-relocations -exceptions -system-libtiff -glib -optimized-qmake -no-webkit -no-xmlpatterns -system-sqlite -qt3support -no-sql-mysql -importdir %plugindir/imports -xsync -xinput -gtkstyle %define check_config \ grep '# define' src/corelib/global/qconfig.h | egrep -v 'QT_(ARCH|USE)'; \ if test -f /usr/share/qt4/mkspecs/qconfig.pri ; then \ cmp /usr/share/qt4/mkspecs/qconfig.pri mkspecs/qconfig.pri || exit 1; \ fi \ %description Qt is a set of libraries for developing applications. This package contains base tools, like string, xml, and network handling. Authors: -------- Qt Software %prep %define plugindir %_libdir/qt4/plugins %setup -q -n qt%x11_free%rversion %patch2 %patch3 %if %suse_version > 1010 %patch6 %else %patch1006 %endif # needs rediffing #%patch8 %patch39 %patch40 %patch41 %patch43 # ### 47 rediff # %patch60 # bnc#374073 comment #8 # %patch61 %patch70 %patch75 %patch87 %patch101 # ### 47 rediff # %patch102 # ### 47 rediff # %patch107 %patch109 %patch113 %patch118 -p1 %ifarch hppa %patch119 %patch120 %endif %patch122 %patch123 %patch124 %patch125 %patch126 %patch127 -p1 %patch128 # ### 47 rediff #%patch121 -p1 # be sure not to use them rm -rf src/3rdparty/{libjpeg,freetype,libpng,zlib,libtiff,fonts} # COMMON-END # COMMON-END %package -n libqt4-sql-unixODBC License: QPL, GPL Group: Development/Libraries/C and C++ Summary: Qt 4 unixODBC plugin Requires: libqt4-sql = %version Provides: libqt4_sql_backend = %version Obsoletes: qt-sql-unixODBC Provides: qt-sql-unixODBC %description -n libqt4-sql-unixODBC Qt unixODBC plugin to support databases via unixODBC within Qt applications. Authors: -------- Troll Tech AS, Norway %package -n libqt4-sql-postgresql License: QPL, GPL Group: Development/Libraries/C and C++ Summary: Qt 4 PostgreSQL plugin Requires: libqt4-sql = %version Provides: libqt4_sql_backend = %version Obsoletes: qt-sql-postgresql Provides: qt-sql-postgresql %description -n libqt4-sql-postgresql Qt SQL plugin to support PostgreSQL servers in Qt applications. Authors: -------- Troll Tech AS, Norway %package -n libqt4-sql-mysql License: QPL, GPL Group: Development/Libraries/C and C++ Summary: Qt 4 MySQL support Requires: libqt4-sql = %version Provides: libqt4_sql_backend = %version Obsoletes: qt-sql-mysql Provides: qt-sql-mysql %description -n libqt4-sql-mysql A plugin to support MySQL server in Qt applications. Authors: -------- Troll Tech AS, Norway %build export QTDIR=$PWD export PATH=$PWD/bin:$PATH export LD_LIBRARY_PATH=$PWD/lib/ %ifarch ppc64 export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc" %endif export CXXFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS" export MAKEFLAGS="%{?_smp_mflags}" %ifarch sparc64 platform="-platform linux-g++-64" %else platform="" %endif echo yes | ./configure %common_options $platform \ -no-webkit -no-xmlpatterns -nomake examples \ -plugin-sql-psql -I/usr/include -I/usr/include/pgsql/ -I/usr/include/pgsql/server \ -plugin-sql-odbc \ -plugin-sql-mysql -I/usr/include/mysql/ -no-sql-sqlite -no-sql-sqlite2 %if 0 make %{?_smp_mflags} sub-src %else rpm -ql libqt4-devel | grep %{_bindir}/ | sed 's#%{_bindir}/##' | \ ( while read file; do test -e bin/$file || ln -s %{_bindir}/$file bin/ ; done ) rpm -ql libqt4-devel | grep %{_libdir}/lib | sed 's#%{_libdir}/##' | \ ( while read file; do test -e lib/$file || ln -s %{_libdir}/$file lib/ ; done ) make %{?_smp_mflags} -C src/sql make %{?_smp_mflags} -C src/plugins/sqldrivers %endif %install export QTDIR=$PWD %if 0 make INSTALL_ROOT=$RPM_BUILD_ROOT -C src install_subtargets %else make INSTALL_ROOT=$RPM_BUILD_ROOT -C src/sql install make INSTALL_ROOT=$RPM_BUILD_ROOT -C src/plugins/sqldrivers install %endif # argggh, qmake is such a piece of <censored> mkdir -p $RPM_BUILD_ROOT/%_libdir/pkgconfig find $RPM_BUILD_ROOT/%_libdir -type f -name '*.pc' -exec mv {} $RPM_BUILD_ROOT/%_libdir/pkgconfig \; # fix more qmake errors mkdir -p $RPM_BUILD_ROOT/%_libdir/qt find $RPM_BUILD_ROOT/%_libdir -type f -name '*la' -print -exec perl -pi -e 's, -L/usr/src/packages/BUILD/\S+,,g' {} \; find $RPM_BUILD_ROOT/%_libdir/pkgconfig -type f -name '*pc' -print -exec perl -pi -e 's, -L/usr/src/packages/BUILD/\S+,,g' {} \; rm -rf $RPM_BUILD_ROOT/usr/include rm -rf $RPM_BUILD_ROOT/usr/%_lib/pkgconfig mkdir $RPM_BUILD_ROOT/%_libdir/backup mv $RPM_BUILD_ROOT/%_libdir/libQtSql*.so.* $RPM_BUILD_ROOT/%_libdir/backup rm -f $RPM_BUILD_ROOT/%_libdir/lib* mv $RPM_BUILD_ROOT/%_libdir/backup/libQtSql*.so.* $RPM_BUILD_ROOT/%_libdir rmdir $RPM_BUILD_ROOT/%_libdir/backup rm -rf $RPM_BUILD_ROOT/usr/bin for i in $RPM_BUILD_ROOT/%plugindir/*; do case "$i" in *sqldriv*): ;; *) rm -rf $i esac done rm -f $RPM_BUILD_ROOT/%_libdir/libQtSql* %clean rm -rf $RPM_BUILD_ROOT # no baselibs supplements for older distros %if %suse_version < 1110 sed -i -e 's, supplements .*,,' $RPM_SOURCE_DIR/baselibs.conf %endif %files -n libqt4-sql-unixODBC %defattr(-,root,root,755) %dir %plugindir/sqldrivers %plugindir/sqldrivers/libqsqlodbc*.so %files -n libqt4-sql-postgresql %defattr(-,root,root,755) %dir %plugindir/sqldrivers %plugindir/sqldrivers/libqsqlpsql*.so %files -n libqt4-sql-mysql %defattr(-,root,root,755) %dir %plugindir/sqldrivers %plugindir/sqldrivers/libqsqlmysql*.so %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