1 |
%define _qt4_qmake %_qt4_bindir/qmake |
2 |
%define oname libqxt |
3 |
|
4 |
%define libname %mklibname qxt |
5 |
%define develname %mklibname -d qxt |
6 |
|
7 |
Name: qxt |
8 |
Version: 0.6.2 |
9 |
Release: %mkrel 2 |
10 |
Summary: Qt extension library |
11 |
Group: System/Libraries |
12 |
License: CPL or LGPLv2 |
13 |
URL: http://www.libqxt.org/ |
14 |
Source0: http://bitbucket.org/%{oname}/%{oname}/get/v%{version}.tar.bz2 |
15 |
# Fix DSO linking |
16 |
Patch0: libqxt-linking.patch |
17 |
# To support multimedia keys when using clementine |
18 |
# Patch sent to upstream. They want to reimplement it more cleanly. |
19 |
# We will use this patch until upstream reimplements it. |
20 |
# http://dev.libqxt.org/libqxt/issue/75 |
21 |
Patch1: libqxt-media-keys.patch |
22 |
# Fix wrong header includes RHBZ#733222 |
23 |
# http://dev.libqxt.org/libqxt/issue/112/wrong-include-in-qxtnetworkh |
24 |
Patch2: libqxt-header-fix.patch |
25 |
|
26 |
BuildRequires: avahi-compat-libdns_sd-devel |
27 |
BuildRequires: avahi-core-devel |
28 |
BuildRequires: avahi-common-devel |
29 |
BuildRequires: db4-devel |
30 |
BuildRequires: libxrandr-devel |
31 |
BuildRequires: openssl-devel |
32 |
BuildRequires: qt4-devel |
33 |
|
34 |
%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}} |
35 |
|
36 |
%description |
37 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
38 |
utility classes to add functionality not readily available in the Qt toolkit. |
39 |
|
40 |
%package -n %{libname} |
41 |
Summary: Main library for qxt - qt extension library |
42 |
Group: System/Libraries |
43 |
|
44 |
%description -n %{libname} |
45 |
LibQxt, an extension library for Qt, provides a suite of cross-platform |
46 |
utility classes to add functionality not readily available in the Qt toolkit. |
47 |
|
48 |
%package -n %{develname} |
49 |
Summary: Development files for %{name} |
50 |
Group: Development/C++ |
51 |
Requires: %{name} = %{version}-%{release} |
52 |
Requires: avahi-compat-libdns_sd-devel |
53 |
Requires: avahi-core-devel |
54 |
Requires: db4-devel |
55 |
Requires: qt4-devel |
56 |
Requires: %{libname} = %{version} |
57 |
Provides: %{name}-devel = %{version}-%{release} |
58 |
|
59 |
%description -n %{develname} |
60 |
This package contains libraries and header files for developing applications |
61 |
that use LibQxt. |
62 |
|
63 |
|
64 |
%prep |
65 |
%setup -q -n %{oname}-%{oname}-v%{version} |
66 |
%patch0 -p1 -b .linking |
67 |
%patch1 -p1 -b .mediakeys |
68 |
%patch2 -p1 -b .includes |
69 |
|
70 |
# We don't want rpath |
71 |
sed -i '/RPATH/d' src/qxtlibs.pri |
72 |
|
73 |
|
74 |
%build |
75 |
# Does not use GNU configure |
76 |
./configure -verbose \ |
77 |
-qmake-bin %{_qt4_qmake} \ |
78 |
-prefix %{_prefix} \ |
79 |
-libdir %{_libdir} |
80 |
%make |
81 |
%make docs |
82 |
|
83 |
|
84 |
%install |
85 |
rm -rf %{buildroot} |
86 |
make install INSTALL_ROOT=%{buildroot} |
87 |
|
88 |
# We are installing these to the proper location |
89 |
rm -fr %{buildroot}%{_prefix}/doc/ |
90 |
|
91 |
%files -n %{libname} |
92 |
%doc AUTHORS CHANGES *.txt LICENSE README |
93 |
%{_qt4_libdir}/*.so.* |
94 |
|
95 |
%files -n %{develname} |
96 |
%doc examples/ doc/html/ |
97 |
%{_qt4_includedir}/* |
98 |
%{_qt4_libdir}/*.so |
99 |
%{_qt4_plugindir}/designer/*.so |
100 |
%{_qt4_datadir}/mkspecs/features/qxt*.prf |
101 |
|