1 | Name: dbusmenu-qt |
---|
2 | Summary: A Qt implementation of the DBusMenu protocol |
---|
3 | Version: 0.5.2 |
---|
4 | Release: 3%{?_dist_release} |
---|
5 | |
---|
6 | Group: System Environment/Libraries |
---|
7 | License: LGPLv2+ |
---|
8 | URL: https://launchpad.net/libdbusmenu-qt/ |
---|
9 | |
---|
10 | Source0: http://launchpad.net/libdbusmenu-qt/trunk/%{version}/+download/libdbusmenu-qt-%{version}.tar.bz2 |
---|
11 | |
---|
12 | ## upstream patches |
---|
13 | # honor LIB_SUFFIX (ie, use /usr/lib64 on 64bit) |
---|
14 | Patch100: dbusmenu-qt-0.3.2-pkgconfig.patch |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | BuildRequires: cmake |
---|
18 | BuildRequires: pkgconfig |
---|
19 | BuildRequires: qjson-devel |
---|
20 | BuildRequires: qt4-devel |
---|
21 | |
---|
22 | Provides: libdbusmenu-qt = %{version}-%{release} |
---|
23 | |
---|
24 | %description |
---|
25 | This library provides a Qt implementation of the DBusMenu protocol. |
---|
26 | |
---|
27 | The DBusMenu protocol makes it possible for applications to export and import |
---|
28 | their menus over DBus. |
---|
29 | |
---|
30 | |
---|
31 | %package devel |
---|
32 | Summary: Development files for %{name} |
---|
33 | Group: Development/Libraries |
---|
34 | Requires: %{name} = %{version}-%{release} |
---|
35 | Provides: libdbusmenu-devel = %{version}-%{release} |
---|
36 | |
---|
37 | %description devel |
---|
38 | %{summary}. |
---|
39 | |
---|
40 | |
---|
41 | %prep |
---|
42 | %setup -q -n libdbusmenu-qt-%{version} |
---|
43 | |
---|
44 | %patch100 -p1 -b .pkgconfig |
---|
45 | |
---|
46 | |
---|
47 | %build |
---|
48 | mkdir -p %{_target_platform} |
---|
49 | pushd %{_target_platform} |
---|
50 | %cmake .. |
---|
51 | popd |
---|
52 | |
---|
53 | make %{?_smp_mflags} -C %{_target_platform} |
---|
54 | |
---|
55 | |
---|
56 | %install |
---|
57 | rm -rf %{buildroot} |
---|
58 | make install/fast DESTDIR=%{buildroot} -C %{_target_platform} |
---|
59 | |
---|
60 | |
---|
61 | %check |
---|
62 | # verify pkg-config version |
---|
63 | export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig |
---|
64 | test "$(pkg-config --modversion dbusmenu-qt)" = "%{version}" |
---|
65 | # unfortunately, most of these require an active X/dbus session |
---|
66 | make -C %{_target_platform}/tests check ||: |
---|
67 | |
---|
68 | |
---|
69 | %clean |
---|
70 | rm -rf %{buildroot} |
---|
71 | |
---|
72 | |
---|
73 | %post -p /sbin/ldconfig |
---|
74 | |
---|
75 | %postun -p /sbin/ldconfig |
---|
76 | |
---|
77 | |
---|
78 | %files |
---|
79 | %defattr(-,root,root,-) |
---|
80 | %doc COPYING README |
---|
81 | %{_libdir}/libdbusmenu-qt.so.2* |
---|
82 | |
---|
83 | %files devel |
---|
84 | %defattr(-,root,root,-) |
---|
85 | %{_includedir}/dbusmenu-qt/ |
---|
86 | %{_libdir}/libdbusmenu-qt.so |
---|
87 | %{_libdir}/pkgconfig/dbusmenu-qt.pc |
---|
88 | |
---|
89 | |
---|
90 | %changelog |
---|
91 | * Sun Sep 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.2-3 |
---|
92 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
93 | |
---|
94 | * Sun Aug 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.2-2 |
---|
95 | - initial build for Vine Linux |
---|
96 | |
---|
97 | * Fri Aug 06 2010 Rex Dieter <rdieter@fedoraproject.org> 0.5.2-1 |
---|
98 | - dbusmenu-qt-0.5.2 |
---|
99 | |
---|
100 | * Fri May 21 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.3-1 |
---|
101 | - dbusmenu-qt-0.3.3 |
---|
102 | |
---|
103 | * Sun Apr 25 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.2-2 |
---|
104 | - pkg rename s/libdbusmenu-qt/dbusmenu-qt/ |
---|
105 | - Provides: libdbusmenu-qt(-devel) |
---|
106 | |
---|
107 | * Sun Apr 25 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.2-1 |
---|
108 | - dbusmenu-qt-0.3.2 |
---|
109 | |
---|