| 1 | Name: dbusmenu |
|---|
| 2 | Summary: Library for passing menus over DBus |
|---|
| 3 | Version: 0.3.16 |
|---|
| 4 | Release: 2%{?_dist_release} |
|---|
| 5 | |
|---|
| 6 | Group: System Environment/Libraries |
|---|
| 7 | License: LGPLv3+ |
|---|
| 8 | URL: https://launchpad.net/dbusmenu |
|---|
| 9 | |
|---|
| 10 | Source0: http://launchpad.net/dbusmenu/0.4/%{version}/+download/libdbusmenu-%{version}.tar.gz |
|---|
| 11 | |
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 13 | BuildRequires: gettext |
|---|
| 14 | BuildRequires: gtk2-devel >= 2.16 |
|---|
| 15 | BuildRequires: glib2-devel >= 2.18.0 |
|---|
| 16 | BuildRequires: dbus-glib-devel >= 0.76 |
|---|
| 17 | BuildRequires: libxml2-devel >= 2.6 |
|---|
| 18 | BuildRequires: gnome-doc-utils |
|---|
| 19 | #BuildRequires: gobject-introspection-devel |
|---|
| 20 | BuildRequires: gtk-doc |
|---|
| 21 | BuildRequires: intltool >= 0.35.0 |
|---|
| 22 | BuildRequires: json-glib-devel >= 0.6.0 |
|---|
| 23 | BuildRequires: perl-XML-Parser |
|---|
| 24 | BuildRequires: pkgconfig |
|---|
| 25 | #BuildRequires: vala-tools |
|---|
| 26 | |
|---|
| 27 | %description |
|---|
| 28 | libdbusmenu passes a menu structure across DBus so that a program |
|---|
| 29 | can create a menu simply without worrying about how it is displayed |
|---|
| 30 | on the other side of the bus. |
|---|
| 31 | |
|---|
| 32 | %package glib |
|---|
| 33 | Summary: Glib implementation of the DBusMenu protocol |
|---|
| 34 | Group: System Environment/Libraries |
|---|
| 35 | Provides: libdbusmenu-glib = %{version}-%{release} |
|---|
| 36 | |
|---|
| 37 | %description glib |
|---|
| 38 | %{summary}. |
|---|
| 39 | |
|---|
| 40 | %package glib-devel |
|---|
| 41 | Summary: Development files for dbusmenu-glib |
|---|
| 42 | Summary(ja): dbusmenu-glib の開発用ファイル |
|---|
| 43 | Group: Development/Libraries |
|---|
| 44 | Requires: %{name}-glib = %{version}-%{release} |
|---|
| 45 | Provides: libdbusmenu-glib-devel = %{version}-%{release} |
|---|
| 46 | |
|---|
| 47 | %description glib-devel |
|---|
| 48 | %{summary}. |
|---|
| 49 | |
|---|
| 50 | %package gtk |
|---|
| 51 | Summary: Gtk+ implementation of the DBusMenu protocol |
|---|
| 52 | Group: System Environment/Libraries |
|---|
| 53 | Requires: %{name}-glib = %{version}-%{release} |
|---|
| 54 | Provides: libdbusmenu-gtk = %{version}-%{release} |
|---|
| 55 | |
|---|
| 56 | %description gtk |
|---|
| 57 | %{summary}. |
|---|
| 58 | |
|---|
| 59 | %package gtk-devel |
|---|
| 60 | Summary: Development files for dbusmenu-gtk |
|---|
| 61 | Summary(ja): dbusmenu-gtk の開発用ファイル |
|---|
| 62 | Group: Development/Libraries |
|---|
| 63 | Requires: dbusmenu-glib-devel = %{version}-%{release} |
|---|
| 64 | Provides: libdbusmenu-gtk-devel = %{version}-%{release} |
|---|
| 65 | |
|---|
| 66 | %description gtk-devel |
|---|
| 67 | %{summary}. |
|---|
| 68 | |
|---|
| 69 | %package jsonloader |
|---|
| 70 | Summary: Loader to turn JSON into dbusmenu menuitems |
|---|
| 71 | Group: System Environment/Libraries |
|---|
| 72 | Requires: %{name}-glib = %{version}-%{release} |
|---|
| 73 | Provides: libdbusmenu-jsonloader = %{version}-%{release} |
|---|
| 74 | |
|---|
| 75 | %description jsonloader |
|---|
| 76 | %{summary}. |
|---|
| 77 | |
|---|
| 78 | %package jsonloader-devel |
|---|
| 79 | Summary: Development files for dbusmenu-jsonloader |
|---|
| 80 | Group: Development/Libraries |
|---|
| 81 | Requires: %{name}-jsonloader = %{version}-%{release} |
|---|
| 82 | Provides: libdbusmenu-jsonloader-devel = %{version}-%{release} |
|---|
| 83 | |
|---|
| 84 | %description jsonloader-devel |
|---|
| 85 | %{summary}. |
|---|
| 86 | |
|---|
| 87 | %package tools |
|---|
| 88 | Summary: Tools useful during development with libdbusmenu |
|---|
| 89 | Group: Development/Tools |
|---|
| 90 | Provides: libdbusmenu-tools = %{version}-%{release} |
|---|
| 91 | |
|---|
| 92 | %description tools |
|---|
| 93 | This package contains tools that are useful when developing and |
|---|
| 94 | building applications with libdbusmenu. |
|---|
| 95 | |
|---|
| 96 | %prep |
|---|
| 97 | %setup -q -n libdbusmenu-%{version} |
|---|
| 98 | |
|---|
| 99 | %build |
|---|
| 100 | %configure \ |
|---|
| 101 | --disable-static \ |
|---|
| 102 | --enable-silent-rules \ |
|---|
| 103 | --enable-gtk-doc \ |
|---|
| 104 | --enable-introspection=no |
|---|
| 105 | |
|---|
| 106 | make %{?_smp_mflags} V=1 |
|---|
| 107 | |
|---|
| 108 | |
|---|
| 109 | %install |
|---|
| 110 | rm -rf %{buildroot} |
|---|
| 111 | make install DESTDIR=%{buildroot} |
|---|
| 112 | |
|---|
| 113 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
|---|
| 114 | |
|---|
| 115 | rm -rf _tools_docs/* |
|---|
| 116 | mkdir -p _tools_docs |
|---|
| 117 | mv $RPM_BUILD_ROOT%{_docdir}/libdbusmenu/* _tools_docs/ |
|---|
| 118 | |
|---|
| 119 | %check |
|---|
| 120 | |
|---|
| 121 | %clean |
|---|
| 122 | rm -rf %{buildroot} |
|---|
| 123 | |
|---|
| 124 | |
|---|
| 125 | %post glib -p /sbin/ldconfig |
|---|
| 126 | |
|---|
| 127 | %postun glib -p /sbin/ldconfig |
|---|
| 128 | |
|---|
| 129 | %post gtk -p /sbin/ldconfig |
|---|
| 130 | |
|---|
| 131 | %postun gtk -p /sbin/ldconfig |
|---|
| 132 | |
|---|
| 133 | %post jsonloader -p /sbin/ldconfig |
|---|
| 134 | |
|---|
| 135 | %ostun jsonloader -p /sbin/ldconfig |
|---|
| 136 | |
|---|
| 137 | |
|---|
| 138 | %files glib |
|---|
| 139 | %defattr(-,root,root,-) |
|---|
| 140 | %doc ChangeLog COPYING README |
|---|
| 141 | %{_libdir}/libdbusmenu-glib.so.* |
|---|
| 142 | #{_libdir}/girepository-1.0/Dbusmenu-0.4.typelib |
|---|
| 143 | |
|---|
| 144 | %files glib-devel |
|---|
| 145 | %defattr(-,root,root,-) |
|---|
| 146 | %{_includedir}/libdbusmenu-0.1/libdbusmenu-glib |
|---|
| 147 | %{_libdir}/libdbusmenu-glib.so |
|---|
| 148 | %{_libdir}/pkgconfig/dbusmenu-glib*.pc |
|---|
| 149 | #{_datadir}/gir-1.0/Dbusmenu-0.4.gir |
|---|
| 150 | %{_datadir}/gtk-doc/html/libdbusmenu-glib |
|---|
| 151 | #{_datadir}/vala/vapi/Dbusmenu-0.4.vapi |
|---|
| 152 | |
|---|
| 153 | %files gtk |
|---|
| 154 | %defattr(-,root,root,-) |
|---|
| 155 | %{_libdir}/libdbusmenu-gtk.so.* |
|---|
| 156 | #{_libdir}/girepository-1.0/DbusmenuGtk-0.4.typelib |
|---|
| 157 | |
|---|
| 158 | %files gtk-devel |
|---|
| 159 | %defattr(-,root,root,-) |
|---|
| 160 | %{_includedir}/libdbusmenu-0.1/libdbusmenu-gtk |
|---|
| 161 | %{_libdir}/libdbusmenu-gtk.so |
|---|
| 162 | %{_libdir}/pkgconfig/dbusmenu-gtk*.pc |
|---|
| 163 | #{_datadir}/gir-1.0/DbusmenuGtk-0.4.gir |
|---|
| 164 | %{_datadir}/gtk-doc/html/libdbusmenu-gtk |
|---|
| 165 | #{_datadir}/vala/vapi/DbusmenuGtk-0.4.vapi |
|---|
| 166 | |
|---|
| 167 | %files jsonloader |
|---|
| 168 | %defattr(-,root,root,-) |
|---|
| 169 | %{_libdir}/libdbusmenu-jsonloader.so.* |
|---|
| 170 | |
|---|
| 171 | %files jsonloader-devel |
|---|
| 172 | %defattr(-,root,root,-) |
|---|
| 173 | %{_includedir}/libdbusmenu-0.1/libdbusmenu-jsonloader |
|---|
| 174 | %{_libdir}/libdbusmenu-jsonloader.so |
|---|
| 175 | %{_libdir}/pkgconfig/dbusmenu-jsonloader*.pc |
|---|
| 176 | |
|---|
| 177 | %files tools |
|---|
| 178 | %defattr(-,root,root,-) |
|---|
| 179 | %doc _tools_docs/* |
|---|
| 180 | %{_libexecdir}/dbusmenu-* |
|---|
| 181 | %{_datadir}/libdbusmenu/json/test-gtk-label.json |
|---|
| 182 | |
|---|
| 183 | %changelog |
|---|
| 184 | * Sun Feb 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.16-2 |
|---|
| 185 | - add BuildRequires: gtk2-devel, libxml2-devel |
|---|
| 186 | |
|---|
| 187 | * Thu Feb 17 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.16-1 |
|---|
| 188 | - Initial build for VineLinux |
|---|
| 189 | |
|---|