%define hash dadc327c2a6a Name: libqxt Version: 0.6.2 Release: %mkrel 6 Summary: Qt extension library Group: System/Libraries License: CPL or LGPLv2 URL: http://www.libqxt.org/ Source0: http://bitbucket.org/libqxt/libqxt/get/v%{version}.tar.gz # Originally from Fedora: # # Fix DSO linking Patch0: libqxt-linking.patch # Fedora patches: # # To support multimedia keys when using clementine # Patch sent to upstream. They want to reimplement it more cleanly. # We will use this patch until upstream reimplements it. # http://dev.libqxt.org/libqxt/issue/75 Patch1: libqxt-media-keys.patch # Fix wrong header includes RHBZ#733222 # http://dev.libqxt.org/libqxt/issue/112/wrong-include-in-qxtnetworkh Patch2: libqxt-header-fix.patch #Debian patches Patch3: libqxt-use-system-qdoc3.patch Patch4: libqxt-fix-compiler-flags.patch BuildRequires: avahi-compat-libdns_sd-devel BuildRequires: db4-devel BuildRequires: kde4-macros BuildRequires: openssl-devel BuildRequires: qt4-devel BuildRequires: qt4-qdoc3 Obsoletes: qxt < 0.6.2-5 %description LibQxt, an extension library for Qt, provides a suite of cross-platform utility classes to add functionality not readily available in the Qt toolkit. #--------------------- %define berkeley_major 0 %define berkeley_lib %mklibname qxtberkeley %{berkeley_major} %package -n %{berkeley_lib} Summary: Berkeley databases module for Qt (LibQxt) Group: System/Libraries Conflicts: %{_lib}qxt < 0.6.2-5 %description -n %{berkeley_lib} LibQxt, an extension library for Qt, provides a suite of cross-platform utility classes to add functionality not readily available in the Qt toolkit. The QxtBerkeley module provides a Qt interface to Berkeley databases. %files -n %{berkeley_lib} %{_qt4_libdir}/libQxtBerkeley.so.%{berkeley_major} %{_qt4_libdir}/libQxtBerkeley.so.%{berkeley_major}.* #--------------------- %define core_major 0 %define core_lib %mklibname qxtcore %{core_major} %package -n %{core_lib} Summary: Extensions to Qt core classes (LibQxt) Group: System/Libraries Obsoletes: %{_lib}qxt < 0.6.2-5 %description -n %{core_lib} LibQxt, an extension library for Qt, provides a suite of cross-platform utility classes to add functionality not readily available in the Qt toolkit. The QxtCore module extends QtCore and contains core non-GUI functionality. %files -n %{core_lib} %{_qt4_libdir}/libQxtCore.so.%{core_major} %{_qt4_libdir}/libQxtCore.so.%{core_major}.* #--------------------- %define gui_major 0 %define gui_lib %mklibname qxtgui %{gui_major} %package -n %{gui_lib} Summary: Extensions to Qt GUI classes (LibQxt) Group: System/Libraries Conflicts: %{_lib}qxt < 0.6.2-5 %description -n %{gui_lib} LibQxt, an extension library for Qt, provides a suite of cross-platform utility classes to add functionality not readily available in the Qt toolkit. The QxtGui module extends QxtCore and QtGui modules. %files -n %{gui_lib} %{_qt4_libdir}/libQxtGui.so.%{gui_major} %{_qt4_libdir}/libQxtGui.so.%{gui_major}.* #--------------------- %define network_major 0 %define network_lib %mklibname qxtnetwork %{network_major} %package -n %{network_lib} Summary: Extensions to Qt network classes (LibQxt) Group: System/Libraries Conflicts: %{_lib}qxt < 0.6.2-5 %description -n %{network_lib} LibQxt, an extension library for Qt, provides a suite of cross-platform utility classes to add functionality not readily available in the Qt toolkit. The QxtNetwork module extends QtNetwork module. %files -n %{network_lib} %{_qt4_libdir}/libQxtNetwork.so.%{network_major} %{_qt4_libdir}/libQxtNetwork.so.%{network_major}.* #--------------------- %define sql_major 0 %define sql_lib %mklibname qxtsql %{sql_major} %package -n %{sql_lib} Summary: Extensions to Qt core classes (LibQxt) Group: System/Libraries Conflicts: %{_lib}qxt < 0.6.2-5 %description -n %{sql_lib} LibQxt, an extension library for Qt, provides a suite of cross-platform utility classes to add functionality not readily available in the Qt toolkit. The QxtSql module extends QtSql module. %files -n %{sql_lib} %{_qt4_libdir}/libQxtSql.so.%{sql_major} %{_qt4_libdir}/libQxtSql.so.%{sql_major}.* #--------------------- %define web_major 0 %define web_lib %mklibname qxtweb %{web_major} %package -n %{web_lib} Summary: Library to create web services using Qt (LibQxt) Group: System/Libraries Conflicts: %{_lib}qxt < 0.6.2-5 %description -n %{web_lib} LibQxt, an extension library for Qt, provides a suite of cross-platform utility classes to add functionality not readily available in the Qt toolkit. The QxtWeb module provides tools for creating web services using Qt. %files -n %{web_lib} %{_qt4_libdir}/libQxtWeb.so.%{web_major} %{_qt4_libdir}/libQxtWeb.so.%{web_major}.* #--------------------- %define zeroconf_major 0 %define zeroconf_lib %mklibname qxtzeroconf %{zeroconf_major} %package -n %{zeroconf_lib} Summary: Library to use multicast DNS service discovery in Qt (LibQxt) Group: System/Libraries Conflicts: %{_lib}qxt < 0.6.2-5 %description -n %{zeroconf_lib} LibQxt, an extension library for Qt, provides a suite of cross-platform utility classes to add functionality not readily available in the Qt toolkit. The QxtZeroconf module enables Qt application to easily benefit from Multicast DNS Service Discovery (Zeroconf) protocols. %files -n %{zeroconf_lib} %{_qt4_libdir}/libQxtZeroconf.so.%{zeroconf_major} %{_qt4_libdir}/libQxtZeroconf.so.%{zeroconf_major}.* #--------------------- %define devname %mklibname qxt -d %package -n %{devname} Summary: Development files for %{name} Group: Development/KDE and Qt Provides: %{name}-devel = %{version}-%{release} Provides: qxt-devel = %{version}-%{release} Requires: %{berkeley_lib} = %{version}-%{release} Requires: %{core_lib} = %{version}-%{release} Requires: %{gui_lib} = %{version}-%{release} Requires: %{network_lib} = %{version}-%{release} Requires: %{sql_lib} = %{version}-%{release} Requires: %{web_lib} = %{version}-%{release} Requires: %{zeroconf_lib} = %{version}-%{release} %description -n %{devname} This package contains libraries and header files for developing applications that use LibQxt. %files -n %{devname} %doc examples/ #doc doc/html/ %{_qt4_includedir}/Qxt*/ %{_qt4_libdir}/libQxt*.so %{_qt4_plugindir}/designer/libQxtDesignerPlugins.so %{_qt4_datadir}/mkspecs/features/qxt*.prf %{_datadir}/cmake/Modules/FindQxt.cmake #--------------------- %prep %setup -q -n %{name}-%{name}-%{hash} %apply_patches # We don't want rpath sed -i '/RPATH/d' src/qxtlibs.pri %build %setup_compile_flags # Does not use GNU configure ./configure -verbose \ -I %{_includedir}/avahi-compat-libdns_sd \ -qmake-bin %{_qt4_bindir}/qmake \ -prefix %{_prefix} \ -libdir %{_libdir} %make %make docs %install %makeinstall_std INSTALL_ROOT=%{buildroot} #CMake module install -Dpm644 features/FindQxt.cmake %{buildroot}%{_datadir}/cmake/Modules/FindQxt.cmake # We are installing these to the proper location rm -fr %{buildroot}%{_prefix}/doc/