%define _qt4_qmake %_qt4_bindir/qmake %define oname libqxt %define libname %mklibname qxt %define develname %mklibname -d qxt Name: qxt Version: 0.6.2 Release: %mkrel 1 Summary: Qt extension library Group: System/Libraries License: CPL or LGPLv2 URL: http://www.libqxt.org/ Source0: http://bitbucket.org/%{oname}/%{oname}/get/v%{version}.tar.bz2 # Fix DSO linking Patch0: libqxt-linking.patch # 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 BuildRequires: avahi-compat-libdns_sd-devel BuildRequires: avahi-core-devel BuildRequires: avahi-common-devel BuildRequires: db4-devel BuildRequires: libxrandr-devel BuildRequires: openssl-devel BuildRequires: qt4-devel %{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}} %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. %package -n %{libname} Summary: Main library for qxt - qt extension library Group: System/Libraries %description -n %{libname} LibQxt, an extension library for Qt, provides a suite of cross-platform utility classes to add functionality not readily available in the Qt toolkit. %package -n %{develname} Summary: Development files for %{name} Group: Development/C++ Requires: %{name} = %{version}-%{release} Requires: avahi-compat-libdns_sd-devel Requires: avahi-devel Requires: db4-devel Requires: qt4-devel Requires: %{libname} = %{version} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} This package contains libraries and header files for developing applications that use LibQxt. %prep %setup -q -n %{oname}-%{oname}-v%{version} %patch0 -p1 -b .linking %patch1 -p1 -b .mediakeys %patch2 -p1 -b .includes # We don't want rpath sed -i '/RPATH/d' src/qxtlibs.pri %build # Does not use GNU configure ./configure -verbose \ -qmake-bin %{_qt4_qmake} \ -prefix %{_prefix} \ -libdir %{_libdir} %make %make docs %install rm -rf %{buildroot} make install INSTALL_ROOT=%{buildroot} # We are installing these to the proper location rm -fr %{buildroot}%{_prefix}/doc/ %files -n %{libname} %doc AUTHORS CHANGES *.txt LICENSE README %{_qt4_libdir}/*.so.* %files -n %{develname} %doc examples/ doc/html/ %{_qt4_includedir}/* %{_qt4_libdir}/*.so %{_qt4_plugindir}/designer/*.so %{_qt4_datadir}/mkspecs/features/qxt*.prf