libdbusmenu-vl.spec 6.6 KB

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