libindicate-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. Name: libindicate
  2. Summary: A small library for applications to raise "flags" on DBus
  3. Version: 12.10.1
  4. Release: 1%{?_dist_release}
  5. Group: System Environment/Libraries
  6. License: LGPLv2+
  7. URL: https://launchpad.net/libindicate
  8. Source0: https://launchpad.net/%{name}/12.10/%{version}/+download/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: dbus-glib-devel >= 0.76
  11. BuildRequires: glib2-devel >= 2.18.0
  12. BuildRequires: gnome-doc-utils >= 0.3.2
  13. BuildRequires: gobject-introspection-devel >= 0.6.7
  14. BuildRequires: gtk-sharp2-devel
  15. BuildRequires: gtk-sharp2-gapi
  16. BuildRequires: libdbusmenu-devel >= 0.3.97
  17. BuildRequires: pkgconfig
  18. BuildRequires: python-devel
  19. BuildRequires: pygtk2-devel
  20. BuildRequires: mono-devel
  21. BuildRequires: vala-devel
  22. BuildRequires: vala-tools
  23. %define mono_dir %{_prefix}/lib/mono
  24. %description
  25. Libindicate is a small library for applications to raise "flags" on
  26. DBus for other components of the desktop to pick up and visualize.
  27. Currently used by the messaging indicator.
  28. %package devel
  29. Summary: Developer files for %{name}
  30. Summary(ja): %{name} の開発用ファイル
  31. Group: Development/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. %description devel
  34. %{summary}.
  35. %package gtk
  36. Summary: GTK+ bindings for %{name}
  37. Summary(ja): %{name} の GTK+ バインディング
  38. Group: System Environment/Libraries
  39. Requires: %{name} = %{version}-%{release}
  40. %description gtk
  41. %{summary}.
  42. %package gtk-devel
  43. Summary: Developer files for libindicate-gtk
  44. Summary(ja): libindicate-gtk の開発用ファイル
  45. Group: Development/Libraries
  46. Requires: %{name}-gtk = %{version}-%{release}
  47. %description gtk-devel
  48. %{summary}.
  49. %package -n python-indicate
  50. Summary: Python bindings for %{name}
  51. Summary(ja): %{name} の Python バインディング
  52. Group: System Environment/Libraries
  53. Requires: %{name} = %{version}-%{release}
  54. Requires: pygtk2
  55. Provides: %{name}-python = %{version}-%{release}
  56. %description -n python-indicate
  57. %{summary}.
  58. %package sharp
  59. Summary: C# bindings for %{name}
  60. Summary(ja): %{name} の C# バインディング
  61. Group: System Environment/Libraries
  62. #Requires: %{name} = %{version}-%{release}
  63. %description sharp
  64. %{summary}.
  65. %package doc
  66. Summary: Document files for %{name}
  67. Summary(ja): %{name} のドキュメント
  68. BuildArch: noarch
  69. Group: Documentation
  70. %description doc
  71. The %{name}-doc package contains documents for
  72. developing applications that use %{name}.
  73. %prep
  74. %setup -q
  75. %build
  76. export CFLAGS="%{optflags} -Wno-error=deprecated-declarations"
  77. %configure \
  78. --disable-static \
  79. --disable-scrollkeeper \
  80. --disable-tests \
  81. --enable-silent-rules \
  82. --with-gtk=2
  83. sed -i -e "s|-lpyglib-2\.0-python2\.7|-lpyglib-2\.0-python|" \
  84. bindings/python/Makefile
  85. # parallel build fails
  86. make
  87. %install
  88. rm -rf $RPM_BUILD_ROOT
  89. make install DESTDIR=$RPM_BUILD_ROOT
  90. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  91. rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/indicate/_indicate.la
  92. rm -f $RPM_BUILD_ROOT%{_libexecdir}/*
  93. rm -rf $RPM_BUILD_ROOT%{_docdir}/libindicate/*
  94. %clean
  95. rm -rf $RPM_BUILD_ROOT
  96. %post -p /sbin/ldconfig
  97. %postun -p /sbin/ldconfig
  98. %post gtk -p /sbin/ldconfig
  99. %postun gtk -p /sbin/ldconfig
  100. %files
  101. %defattr(-,root,root,-)
  102. %doc AUTHORS COPYING COPYING.LGPL.2.1 NEWS
  103. %{_libdir}/libindicate.so.*
  104. %{_libdir}/girepository-1.0/Indicate-0.7.typelib
  105. %files devel
  106. %defattr(-,root,root,-)
  107. %{_includedir}/libindicate-0.7/libindicate
  108. %{_libdir}/libindicate.so
  109. %{_libdir}/pkgconfig/indicate-0.7.pc
  110. %{_datadir}/gir-1.0/Indicate-0.7.gir
  111. %{_datadir}/gtk-doc/html/libindicate
  112. %{_datadir}/vala/vapi/Indicate-0.7.vapi
  113. %files gtk
  114. %defattr(-,root,root,-)
  115. %{_libdir}/libindicate-gtk.so.*
  116. %{_libdir}/girepository-1.0/IndicateGtk-0.7.typelib
  117. %files gtk-devel
  118. %defattr(-,root,root,-)
  119. %{_includedir}/libindicate-gtk-0.7/libindicate-gtk
  120. %{_libdir}/libindicate-gtk.so
  121. %{_libdir}/pkgconfig/indicate-gtk-0.7.pc
  122. %{_datadir}/gir-1.0/IndicateGtk-0.7.gir
  123. %{_datadir}/vala/vapi/IndicateGtk-0.7.vapi
  124. %files -n python-indicate
  125. %defattr(-,root,root,-)
  126. %{_libdir}/python?.?/site-packages/indicate
  127. %{_datadir}/pygtk/2.0/defs/indicate.defs
  128. %files sharp
  129. %defattr(-,root,root,-)
  130. %{_libdir}/indicate-gtk-sharp-0.1
  131. %{_libdir}/indicate-sharp-0.1
  132. %{mono_dir}/gac/indicate-gtk-sharp
  133. %{mono_dir}/gac/indicate-sharp
  134. %{mono_dir}/indicate-gtk
  135. %{mono_dir}/indicate
  136. %{_libdir}/pkgconfig/indicate*sharp-0.1.pc
  137. %files doc
  138. %doc AUTHORS COPYING COPYING.LGPL.2.1 NEWS
  139. %dir %{_datadir}/gtk-doc/html/libindicate
  140. %{_datadir}/gtk-doc/html/libindicate/*
  141. %changelog
  142. * Mon Nov 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 12.10.1-1
  143. - updated to 12.10.1
  144. - dropt Patch0
  145. - split doc subpackage
  146. * Sun Feb 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.4-2
  147. - add BuildRequires: mono-devel
  148. - add Patch0 (libindicate-0.4.4-disable-build-of-tests-examples.patch)
  149. * Fri Feb 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1
  150. - Initial build for Vine Linux