libdbusmenu-vl.spec 6.3 KB

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