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