1 | Name: libdbusmenu |
---|
2 | Summary: Library that pulling out some code out of indicator-applet |
---|
3 | Version: 12.10.2 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | |
---|
6 | # All files installed in final rpms use C sources with dual licensing headers. |
---|
7 | # Tests compiled in the build process are licensed GPLv3 |
---|
8 | |
---|
9 | License: LGPLv3 or LGPLv2 and GPLv3 |
---|
10 | Group: System Environment/Libraries |
---|
11 | URL: https://launchpad.net/dbusmenu |
---|
12 | |
---|
13 | Source0: https://launchpad.net/libdbusmenu/12.10/%{version}/+download/libdbusmenu-%{version}.tar.gz |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildRequires: chrpath |
---|
17 | BuildRequires: glib2-devel |
---|
18 | BuildRequires: gnome-common |
---|
19 | BuildRequires: gnome-doc-utils |
---|
20 | BuildRequires: gobject-introspection-devel |
---|
21 | BuildRequires: gtk2-devel |
---|
22 | BuildRequires: intltool |
---|
23 | BuildRequires: json-glib-devel |
---|
24 | BuildRequires: perl-XML-Parser |
---|
25 | BuildRequires: pkgconfig |
---|
26 | BuildRequires: python |
---|
27 | BuildRequires: vala-devel |
---|
28 | BuildRequires: vala-tools |
---|
29 | BuildRequires: valgrind-devel |
---|
30 | |
---|
31 | Obsoletes: dbusmenu-glib < %{version}-%{release} |
---|
32 | Provides: dbusmenu-glib = %{version}-%{release} |
---|
33 | |
---|
34 | %description |
---|
35 | libdbusmenu passes a menu structure across DBus so that a program |
---|
36 | can create a menu simply without worrying about how it is displayed |
---|
37 | on the other side of the bus. |
---|
38 | |
---|
39 | %package devel |
---|
40 | Summary: Development files for %{name} |
---|
41 | Summary(ja): %{name} の開発用ファイル |
---|
42 | Group: Development/Libraries |
---|
43 | Requires: %{name} = %{version}-%{release} |
---|
44 | Obsoletes: dbusmenu-glib-devel < %{version}-%{release} |
---|
45 | Provides: dbusmenu-glib-devel = %{version}-%{release} |
---|
46 | |
---|
47 | %description devel |
---|
48 | %{summary}. |
---|
49 | |
---|
50 | %package gtk |
---|
51 | Summary: Gtk+ implementation of the DBusMenu protocol |
---|
52 | Group: System Environment/Libraries |
---|
53 | Requires: %{name} = %{version}-%{release} |
---|
54 | Obsoletes: dbusmenu-gtk < %{version}-%{release} |
---|
55 | Provides: dbusmenu-gtk = %{version}-%{release} |
---|
56 | |
---|
57 | %description gtk |
---|
58 | %{summary}. |
---|
59 | |
---|
60 | %package gtk-devel |
---|
61 | Summary: Development files for dbusmenu-gtk |
---|
62 | Summary(ja): dbusmenu-gtk の開発用ファイル |
---|
63 | Group: Development/Libraries |
---|
64 | Requires: %{name}-devel = %{version}-%{release} |
---|
65 | Requires: %{name}-gtk = %{version}-%{release} |
---|
66 | Requires: gtk2-devel |
---|
67 | Requires: dbus-glib-devel |
---|
68 | Obsoletes: dbusmenu-gtk-devel < %{version}-%{release} |
---|
69 | Provides: dbusmenu-gtk-devel = %{version}-%{release} |
---|
70 | |
---|
71 | %description gtk-devel |
---|
72 | %{summary}. |
---|
73 | |
---|
74 | %package jsonloader |
---|
75 | Summary: Loader to turn JSON into dbusmenu menuitems |
---|
76 | Group: System Environment/Libraries |
---|
77 | Requires: %{name}-devel = %{version}-%{release} |
---|
78 | Obsoletes: dbusmenu-jsonloader < %{version}-%{release} |
---|
79 | Provides: dbusmenu-jsonloader = %{version}-%{release} |
---|
80 | |
---|
81 | %description jsonloader |
---|
82 | %{summary}. |
---|
83 | |
---|
84 | %package jsonloader-devel |
---|
85 | Summary: Development files for dbusmenu-jsonloader |
---|
86 | Group: Development/Libraries |
---|
87 | Requires: %{name}-jsonloader = %{version}-%{release} |
---|
88 | Obsoletes: dbusmenu-jsonloader-devel < %{version}-%{release} |
---|
89 | Provides: dbusmenu-jsonloader-devel = %{version}-%{release} |
---|
90 | |
---|
91 | %description jsonloader-devel |
---|
92 | %{summary}. |
---|
93 | |
---|
94 | %package doc |
---|
95 | Summary: Document files for %{name} |
---|
96 | BuildArch: noarch |
---|
97 | Group: Documentation |
---|
98 | |
---|
99 | %description doc |
---|
100 | The %{name}-doc package contains documents for |
---|
101 | developing applications that use %{name}. |
---|
102 | |
---|
103 | %package tools |
---|
104 | Summary: Development tools for the dbusmenu libraries |
---|
105 | Group: Development/Tools |
---|
106 | Requires: %{name} = %{version}-%{release} |
---|
107 | Obsoletes: dbusmenu-tools < %{version}-%{release} |
---|
108 | Provides: dbusmenu-tools = %{version}-%{release} |
---|
109 | |
---|
110 | %description tools |
---|
111 | This package contains tools that are useful when developing and |
---|
112 | building applications with libdbusmenu. |
---|
113 | |
---|
114 | %prep |
---|
115 | %setup -q -n libdbusmenu-%{version} |
---|
116 | |
---|
117 | %build |
---|
118 | export CFLAGS="%{optflags} -Wno-error=deprecated-declarations" |
---|
119 | %configure \ |
---|
120 | --disable-static \ |
---|
121 | --disable-scrollkeeper \ |
---|
122 | --enable-silent-rules \ |
---|
123 | --with-gtk=2 \ |
---|
124 | --disable-dumper |
---|
125 | |
---|
126 | sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool |
---|
127 | make %{?_smp_mflags} V=1 |
---|
128 | |
---|
129 | |
---|
130 | %install |
---|
131 | rm -rf $RPM_BUILD_ROOT |
---|
132 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
133 | |
---|
134 | chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libdbusmenu-gtk.so.4.0.12 |
---|
135 | chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libdbusmenu-jsonloader.so.4.0.12 |
---|
136 | chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/dbusmenu-testapp |
---|
137 | |
---|
138 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
139 | |
---|
140 | rm -rf _docs/* |
---|
141 | mkdir -p _docs |
---|
142 | mv $RPM_BUILD_ROOT%{_docdir}/libdbusmenu/* _docs/ |
---|
143 | |
---|
144 | %check |
---|
145 | |
---|
146 | %clean |
---|
147 | rm -rf $RPM_BUILD_ROOT |
---|
148 | |
---|
149 | |
---|
150 | %post -p /sbin/ldconfig |
---|
151 | |
---|
152 | %postun -p /sbin/ldconfig |
---|
153 | |
---|
154 | %post gtk -p /sbin/ldconfig |
---|
155 | |
---|
156 | %postun gtk -p /sbin/ldconfig |
---|
157 | |
---|
158 | %post jsonloader -p /sbin/ldconfig |
---|
159 | |
---|
160 | %postun jsonloader -p /sbin/ldconfig |
---|
161 | |
---|
162 | %files |
---|
163 | %defattr(-,root,root,-) |
---|
164 | %doc README COPYING COPYING.2.1 COPYING-GPL3 AUTHORS |
---|
165 | %{_libdir}/libdbusmenu-glib.so.* |
---|
166 | %{_libdir}/girepository-1.0/Dbusmenu-0.4.typelib |
---|
167 | |
---|
168 | %files devel |
---|
169 | %defattr(-,root,root,-) |
---|
170 | %doc _docs/examples |
---|
171 | %dir %{_includedir}/libdbusmenu-glib-0.4/ |
---|
172 | %dir %{_includedir}/libdbusmenu-glib-0.4/libdbusmenu-glib/ |
---|
173 | %{_includedir}/libdbusmenu-glib-0.4/libdbusmenu-glib/*.h |
---|
174 | %{_libdir}/libdbusmenu-glib.so |
---|
175 | %{_libdir}/pkgconfig/dbusmenu-glib-0.4.pc |
---|
176 | %{_datadir}/gir-1.0/Dbusmenu-0.4.gir |
---|
177 | %{_datadir}/vala/vapi/Dbusmenu-0.4.vapi |
---|
178 | |
---|
179 | %files gtk |
---|
180 | %defattr(-,root,root,-) |
---|
181 | %{_libdir}/libdbusmenu-gtk.so.* |
---|
182 | %{_libdir}/girepository-1.0/DbusmenuGtk-0.4.typelib |
---|
183 | |
---|
184 | %files gtk-devel |
---|
185 | %defattr(-,root,root,-) |
---|
186 | %dir %{_includedir}/libdbusmenu-gtk-0.4 |
---|
187 | %dir %{_includedir}/libdbusmenu-gtk-0.4/libdbusmenu-gtk |
---|
188 | %{_includedir}/libdbusmenu-gtk-0.4/libdbusmenu-gtk/*.h |
---|
189 | %{_libdir}/libdbusmenu-gtk.so |
---|
190 | %{_libdir}/pkgconfig/dbusmenu-gtk-0.4.pc |
---|
191 | %{_datadir}/gir-1.0/DbusmenuGtk-0.4.gir |
---|
192 | %{_datadir}/vala/vapi/DbusmenuGtk-0.4.vapi |
---|
193 | |
---|
194 | %files jsonloader |
---|
195 | %defattr(-,root,root,-) |
---|
196 | %{_libdir}/libdbusmenu-jsonloader.so.* |
---|
197 | |
---|
198 | %files jsonloader-devel |
---|
199 | %defattr(-,root,root,-) |
---|
200 | %dir %{_includedir}/libdbusmenu-glib-0.4/ |
---|
201 | %dir %{_includedir}/libdbusmenu-glib-0.4/libdbusmenu-jsonloader/ |
---|
202 | %{_includedir}/libdbusmenu-glib-0.4/libdbusmenu-jsonloader/*.h |
---|
203 | %{_libdir}/libdbusmenu-jsonloader.so |
---|
204 | %{_libdir}/pkgconfig/dbusmenu-jsonloader-0.4.pc |
---|
205 | |
---|
206 | %files doc |
---|
207 | %doc README COPYING COPYING.2.1 AUTHORS |
---|
208 | %dir %{_datadir}/gtk-doc/ |
---|
209 | %{_datadir}/gtk-doc/* |
---|
210 | |
---|
211 | %files tools |
---|
212 | %defattr(-,root,root,-) |
---|
213 | %doc _docs/README.dbusmenu-bench |
---|
214 | %{_libexecdir}/dbusmenu-* |
---|
215 | %{_datadir}/libdbusmenu/json/test-gtk-label.json |
---|
216 | |
---|
217 | %changelog |
---|
218 | * Mon Nov 3 2014 Ryoichi INAAGKI <ryo1@toki.waseda.jp> 12.10.2-1 |
---|
219 | - updated to 12.10.2 |
---|
220 | - renamed to libdbusmenu |
---|
221 | |
---|
222 | * Sun Feb 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.16-2 |
---|
223 | - add BuildRequires: gtk2-devel, libxml2-devel |
---|
224 | |
---|
225 | * Thu Feb 17 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.16-1 |
---|
226 | - Initial build for VineLinux |
---|
227 | |
---|