libindicate-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. Name: libindicate
  2. Summary: A small library for applications to raise "flags" on DBus
  3. Version: 0.4.4
  4. Release: 2%{?_dist_release}
  5. Group: System Environment/Libraries
  6. License: LGPLv2+
  7. URL: https://launchpad.net/libindicate
  8. Source0: http://launchpad.net/%{name}/0.4/%{versioin}/+download/%{name}-%{version}.tar.gz
  9. Patch0: libindicate-0.4.4-disable-build-of-tests-examples.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: pkgconfig
  12. BuildRequires: glib2-devel >= 2.18.0
  13. #BuildRequires: gobject-introspection-devel
  14. BuildRequires: dbus-glib-devel >= 0.76
  15. BuildRequires: dbusmenu-glib-devel
  16. BuildRequires: gtk-sharp2
  17. BuildRequires: gtk-sharp2-gapi
  18. BuildRequires: python-devel
  19. BuildRequires: pygtk2-devel
  20. BuildRequires: mono-devel
  21. BuildRequires: gnome-doc-utils >= 0.3.2
  22. %define mono_dir %{_prefix}/lib/mono
  23. %description
  24. Libindicate is a small library for applications to raise "flags" on
  25. DBus for other components of the desktop to pick up and visualize.
  26. Currently used by the messaging indicator.
  27. %package devel
  28. Summary: Developer files for %{name}
  29. Summary(ja): %{name} の開発用ファイル
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. %description devel
  33. %{summary}.
  34. %package gtk
  35. Summary: GTK+ bindings for %{name}
  36. Group: System Environment/Libraries
  37. Requires: %{name} = %{version}-%{release}
  38. %description gtk
  39. %{summary}.
  40. %package gtk-devel
  41. Summary: Developer files for libindicate-gtk
  42. Summary(ja): libindicate-gtk の開発用ファイル
  43. Group: Development/Libraries
  44. Requires: %{name}-gtk = %{version}-%{release}
  45. %description gtk-devel
  46. %{summary}.
  47. %package -n python-indicate
  48. Summary: Python bindings for %{name}
  49. Group: Development/Libraries
  50. Requires: %{name} = %{version}-%{release}
  51. Requires: pygtk2
  52. Provides: %{name}-python = %{version}-%{release}
  53. %description -n python-indicate
  54. %{summary}.
  55. %package sharp
  56. Summary: C# bindings for %{name}
  57. Group: System Environment/Libraries
  58. #Requires: %{name} = %{version}-%{release}
  59. %description sharp
  60. %{summary}.
  61. %prep
  62. %setup -q
  63. %patch0 -p1 -b .disable_build
  64. %build
  65. %configure \
  66. --disable-static \
  67. --enable-silent-rules \
  68. --enable-introspection=no \
  69. --enable-gtk-doc-html
  70. sed -i -e "s|-lpyglib-2\.0-python2\.6|-lpyglib-2\.0-python|" \
  71. bindings/python/Makefile
  72. make %{?_smp_mflags}
  73. %install
  74. rm -rf $RPM_BUILD_ROOT
  75. make install DESTDIR=$RPM_BUILD_ROOT
  76. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  77. rm -f $RPM_BUILD_ROOT%{_libdir}/python?.?/site-packages/indicate/_indicate.la
  78. rm -f $RPM_BUILD_ROOT%{_libexecdir}/*
  79. rm -rf $RPM_BUILD_ROOT%{_docdir}/libindicate/*
  80. %clean
  81. rm -rf $RPM_BUILD_ROOT
  82. %post -p /sbin/ldconfig
  83. %postun -p /sbin/ldconfig
  84. %post gtk -p /sbin/ldconfig
  85. %postun gtk -p /sbin/ldconfig
  86. %files
  87. %defattr(-,root,root,-)
  88. %doc AUTHORS ChangeLog COPYING
  89. %doc _docs/*
  90. %{_libdir}/libindicate.so.*
  91. %files devel
  92. %defattr(-,root,root,-)
  93. %{_includedir}/libindicate-0.2/libindicate
  94. %{_libdir}/libindicate.so
  95. %{_libdir}/pkgconfig/indicate.pc
  96. %{_datadir}/gtk-doc/html/libindicate
  97. %files gtk
  98. %defattr(-,root,root,-)
  99. %{_libdir}/libindicate-gtk.so.*
  100. %files gtk-devel
  101. %defattr(-,root,root,-)
  102. %{_includedir}/libindicate-0.2/libindicate-gtk
  103. %{_libdir}/libindicate-gtk.so
  104. %{_libdir}/pkgconfig/indicate-gtk.pc
  105. %{_datadir}/gtk-doc/html/libindicate
  106. %files -n python-indicate
  107. %defattr(-,root,root,-)
  108. %{_libdir}/python?.?/site-packages/indicate
  109. %{_datadir}/pygtk/2.0/defs/indicate.defs
  110. %files sharp
  111. %defattr(-,root,root,-)
  112. %{_libdir}/indicate-gtk-sharp-0.1
  113. %{_libdir}/indicate-sharp-0.1
  114. %{mono_dir}/gac/indicate-gtk-sharp
  115. %{mono_dir}/gac/indicate-sharp
  116. %{mono_dir}/indicate-gtk
  117. %{mono_dir}/indicate
  118. %{_libdir}/pkgconfig/indicate*sharp-0.1.pc
  119. %changelog
  120. * Sun Feb 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.4-2
  121. - add BuildRequires: mono-devel
  122. - add Patch0 (libindicate-0.4.4-disable-build-of-tests-examples.patch)
  123. * Fri Feb 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.4-1
  124. - Initial build for Vine Linux