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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 492310 - (show annotations) (download)
Sun Oct 6 18:46:48 2013 UTC (10 years, 6 months ago) by matteo
File size: 2684 byte(s)
- proper naming conventions (using mklibname)
- fixed groups
- cleanup spec file


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

  ViewVC Help
Powered by ViewVC 1.1.30