dbusmenu-vl.spec 4.7 KB

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