/[packages]/cauldron/libqxt/current/SPECS/libqxt.spec
ViewVC logotype

Annotation of /cauldron/libqxt/current/SPECS/libqxt.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 492334 - (hide annotations) (download)
Sun Oct 6 21:04:43 2013 UTC (10 years, 6 months ago) by matteo
Original Path: cauldron/qxt/current/SPECS/libqxt.spec
File size: 2713 byte(s)
- fixed wrong require (avahi-core-devel)
1 matteo 492293 %define _qt4_qmake %_qt4_bindir/qmake
2 matteo 492321 %define oname libqxt
3 matteo 492293
4 matteo 492316 %define libname %mklibname qxt
5 matteo 492310 %define develname %mklibname -d qxt
6    
7 matteo 492316 Name: qxt
8 matteo 492293 Version: 0.6.2
9 matteo 492334 Release: %mkrel 2
10 matteo 492293 Summary: Qt extension library
11     Group: System/Libraries
12     License: CPL or LGPLv2
13     URL: http://www.libqxt.org/
14 matteo 492321 Source0: http://bitbucket.org/%{oname}/%{oname}/get/v%{version}.tar.bz2
15 matteo 492293 # 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 matteo 492310 %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 matteo 492293 Summary: Development files for %{name}
50 matteo 492310 Group: Development/C++
51 matteo 492293 Requires: %{name} = %{version}-%{release}
52     Requires: avahi-compat-libdns_sd-devel
53 matteo 492334 Requires: avahi-core-devel
54 matteo 492293 Requires: db4-devel
55     Requires: qt4-devel
56 matteo 492310 Requires: %{libname} = %{version}
57     Provides: %{name}-devel = %{version}-%{release}
58 matteo 492293
59 matteo 492310 %description -n %{develname}
60 matteo 492293 This package contains libraries and header files for developing applications
61     that use LibQxt.
62    
63    
64     %prep
65 matteo 492321 %setup -q -n %{oname}-%{oname}-v%{version}
66 matteo 492293 %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 matteo 492310 %make
81     %make docs
82 matteo 492293
83    
84     %install
85 matteo 492310 rm -rf %{buildroot}
86     make install INSTALL_ROOT=%{buildroot}
87 matteo 492293
88     # We are installing these to the proper location
89 matteo 492310 rm -fr %{buildroot}%{_prefix}/doc/
90 matteo 492293
91 matteo 492310 %files -n %{libname}
92 matteo 492293 %doc AUTHORS CHANGES *.txt LICENSE README
93     %{_qt4_libdir}/*.so.*
94    
95 matteo 492310 %files -n %{develname}
96 matteo 492293 %doc examples/ doc/html/
97     %{_qt4_includedir}/*
98     %{_qt4_libdir}/*.so
99     %{_qt4_plugindir}/designer/*.so
100     %{_qt4_datadir}/mkspecs/features/qxt*.prf
101    

  ViewVC Help
Powered by ViewVC 1.1.30