1 | Name: dbusmenu-qt |
---|
2 | Summary: A Qt implementation of the DBusMenu protocol |
---|
3 | Summary(ja): Qt で実装された DBusMenu プロトコル |
---|
4 | Version: 0.6.3 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | Group: System Environment/Libraries |
---|
8 | License: LGPLv2+ |
---|
9 | URL: https://launchpad.net/libdbusmenu-qt/ |
---|
10 | |
---|
11 | Source0: http://launchpad.net/libdbusmenu-qt/trunk/%{version}/+download/libdbusmenu-qt-%{version}.tar.bz2 |
---|
12 | |
---|
13 | ## upstream patches |
---|
14 | ## upstream patches |
---|
15 | Patch100: http://bazaar.launchpad.net/~kubuntu-members/libdbusmenu-qt/ubuntu/download/head:/kubuntu_00_external_-20100920140604-m34bhlve690rhcmm-1/kubuntu_00_external_contributions.diff |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | BuildRequires: cmake |
---|
19 | BuildRequires: pkgconfig |
---|
20 | BuildRequires: qjson-devel |
---|
21 | BuildRequires: qt4-devel |
---|
22 | |
---|
23 | Provides: libdbusmenu-qt = %{version}-%{release} |
---|
24 | |
---|
25 | %description |
---|
26 | This library provides a Qt implementation of the DBusMenu protocol. |
---|
27 | |
---|
28 | The DBusMenu protocol makes it possible for applications to export and import |
---|
29 | their menus over DBus. |
---|
30 | |
---|
31 | |
---|
32 | %package devel |
---|
33 | Summary: Development files for %{name} |
---|
34 | Group: Development/Libraries |
---|
35 | Requires: %{name} = %{version}-%{release} |
---|
36 | Provides: libdbusmenu-devel = %{version}-%{release} |
---|
37 | |
---|
38 | %description devel |
---|
39 | %{summary}. |
---|
40 | |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q -n libdbusmenu-qt-%{version} |
---|
44 | |
---|
45 | %patch100 -p1 -b .external_contributions |
---|
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 | %changelog |
---|
90 | * Sat Feb 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.3-1 |
---|
91 | - new upstream release |
---|
92 | - added Patch100 |
---|
93 | |
---|
94 | * Sun Sep 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.2-3 |
---|
95 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
96 | |
---|
97 | * Sun Aug 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.2-2 |
---|
98 | - initial build for Vine Linux |
---|
99 | |
---|
100 | * Fri Aug 06 2010 Rex Dieter <rdieter@fedoraproject.org> 0.5.2-1 |
---|
101 | - dbusmenu-qt-0.5.2 |
---|
102 | |
---|
103 | * Fri May 21 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.3-1 |
---|
104 | - dbusmenu-qt-0.3.3 |
---|
105 | |
---|
106 | * Sun Apr 25 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.2-2 |
---|
107 | - pkg rename s/libdbusmenu-qt/dbusmenu-qt/ |
---|
108 | - Provides: libdbusmenu-qt(-devel) |
---|
109 | |
---|
110 | * Sun Apr 25 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.2-1 |
---|
111 | - dbusmenu-qt-0.3.2 |
---|
112 | |
---|