devhelp-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. Version: 2.30.1
  2. Release: 2%{?_dist_release}
  3. %define gtk_required 2.20.0
  4. %define libwnck_required 2.30.0
  5. Summary: API document browser
  6. Summary(ja): API ドキュメントブラウザ
  7. Name: devhelp
  8. License: GPL
  9. Group: Applications/Development
  10. Url: http://live.gnome.org/devhelp
  11. Source: http://ftp.gnome.org/pub/GNOME/sources/devhelp/2.30/%{name}-%{version}.tar.bz2
  12. #Patch10: %{name}-0.19.1-xulrunner19.patch
  13. #Patch11: %{name}-webkit.patch
  14. #Patch: %{name}-r1265.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: yasumichi
  19. Requires(pre,preun,post): GConf2
  20. Requires(post,postun): gtk2 >= %{gtk_required}
  21. BuildRequires: gtk2-devel >= %{gtk_required}
  22. BuildRequires: GConf2-devel >= 2.6.0
  23. BuildRequires: libglade2-devel >= 2.4.0
  24. BuildRequires: libwnck-devel >= %{libwnck_required}
  25. BuildRequires: zlib-devel
  26. BuildRequires: WebKit-gtk-devel >= 1.1.13
  27. BuildRequires: libsoup-devel
  28. BuildRequires: unique-devel
  29. %description
  30. An API document browser for GNOME 2.
  31. %description -l ja
  32. GNOME2 用の API ブラウザです。
  33. %package devel
  34. Summary: Library to embed Devhelp in other applications.
  35. Group: Development/Libraries
  36. Requires: %{name} = %{version}
  37. Requires: gtk2-devel >= %{gtk_required}
  38. Requires: GConf2-devel >= 2.6.0
  39. Requires: libglade2-devel >= 2.4.0
  40. Requires: libwnck-devel >= %{libwnck_required}
  41. Requires: WebKit-gtk-devel
  42. Requires: libsoup-devel
  43. Requires: unique-devel
  44. %description devel
  45. Library of Devhelp for embedding into other applications.
  46. %prep
  47. %setup -q
  48. #patch10 -p1 -b .xulrunner19
  49. #%patch -p1
  50. %build
  51. %configure --disable-static --disable-schemas-install
  52. make
  53. %install
  54. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  55. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  56. %makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix} install
  57. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  58. # remove, not shipped
  59. rm -f $RPM_BUILD_ROOT%{_libdir}/libdevhelp-1.la
  60. #rm -f $RPM_BUILD_ROOT%{_libdir}/libdevhelp-1.so
  61. #rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig
  62. #rm -rf $RPM_BUILD_ROOT%{_includedir}
  63. rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
  64. %find_lang %{name}
  65. %clean
  66. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  67. %pre
  68. if [ "$1" -gt 1 ]; then
  69. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  70. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null || :
  71. fi
  72. %preun
  73. if [ "$1" -eq 0 ]; then
  74. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  75. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null || :
  76. fi
  77. %post
  78. /sbin/ldconfig
  79. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  80. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null ||:
  81. touch --no-create %{_datadir}/icons/hicolor
  82. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  83. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  84. fi
  85. %postun
  86. /sbin/ldconfig
  87. touch --no-create %{_datadir}/icons/hicolor
  88. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  89. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  90. fi
  91. %files -f %{name}.lang
  92. %defattr(-, root, root)
  93. %doc AUTHORS COPYING ChangeLog NEWS README INSTALL
  94. %config %{_sysconfdir}/gconf/schemas/*.schemas
  95. %{_bindir}/devhelp
  96. %{_libdir}/lib*.so.*
  97. %{_datadir}/applications/devhelp.desktop
  98. %{_datadir}/devhelp
  99. %{_datadir}/icons/hicolor/scalable/apps/devhelp.svg
  100. %{_datadir}/icons/hicolor/*/apps/devhelp.png
  101. %{_libdir}/gedit-2/plugins/*
  102. %files devel
  103. %defattr(-,root,root)
  104. %{_includedir}/*
  105. #%{_libdir}/libdevhelp*.la
  106. %{_libdir}/libdevhelp*.so
  107. %{_libdir}/pkgconfig/*
  108. %changelog
  109. * Tue Sep 28 2010 Shu KONNO <owa@bg.wakwak.com> 2.30.1-2
  110. - rebuilt with rpm-4.8.1 for pkg-config
  111. * Sat Jun 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  112. - new upstream release
  113. * Sun Apr 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  114. - new upstream release
  115. * Fri Nov 06 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.28.1-2
  116. - add unique-devel to BR
  117. * Tue Nov 03 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.28.1-1
  118. - New upstream release.
  119. - remove Patch
  120. - build with WebKit-1.1.15.3
  121. - add Vendor, Distribution and Packager.
  122. * Mon Aug 10 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.23-4
  123. - update Patch(See follow url)
  124. - http://git.gnome.org/cgit/devhelp/commit/?id=af67fbedccab5044808a489a9f3a5540d42adcf2
  125. * Sat Aug 01 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.23-3
  126. - update Url.
  127. - add Patch11(http://bugzilla.gnome.org/show_bug.cgi?id=586559)
  128. * Tue Jun 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.23-2
  129. - remove unneeded Requires:
  130. - remove Requires/BuildRequires to gecko.
  131. * Tue Apr 28 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.23-1
  132. - new upstream release
  133. - added Requires: Webkit-gtk,libsoup BuildRequires: Webkit-gtk-devel,libsoup-devel
  134. * Tue Sep 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.21-1
  135. - new upstream release (dropped Patch10)
  136. - updated BuildRequires: gecko-devel-unstable instead of gecko-devel
  137. - added Requires: gecko-libs instead of firefox
  138. * Thu Jul 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.19.1-2
  139. - add Patch10 to build with xulrunner-1.9
  140. - add %%pre %%preun scripts to remove old gconf schemas
  141. - add %%postun to update icon cache
  142. - add unpackaged icons to %%files
  143. * Fri May 30 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.19.1
  144. - new upstream version.
  145. * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.16.1-2
  146. - use macro for Release
  147. * Fri May 09 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org>
  148. - apply new virsioning policy.
  149. - remove *.la
  150. * Thu Jan 10 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.16.1-0vl2
  151. - rebuilt with libwnck 2.20.2
  152. * Fri Jan 04 2008 Shu KONNO <owa@bg.wakwak.com> 0.16.1-0vl1
  153. - new upstream version
  154. - removed icon-theme.cache in %%install section
  155. * Sun Sep 02 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.15-0vl1
  156. - new upstream release
  157. * Tue Apr 03 2007 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.13-0vl2
  158. - icon-theme.cache is not included.
  159. * Sun Apr 01 2007 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.13-0vl1
  160. - update to 0.13
  161. * Sun Dec 17 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.12-0vl2
  162. - build devel package
  163. * Sun Oct 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12-0vl1
  164. - updated to 0.12
  165. - using firefox(gecko) instead of gtkhtml2
  166. - disabled intltoolize before configure
  167. * Thu Aug 25 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.9.3-0vl2
  168. - add "--force" to intltoolize
  169. * Sun Nov 14 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.3-0vl1
  170. - build for Vine Linux
  171. - do not build devel package
  172. * Sun Jun 29 2003 Mikael Hallendal <micke@imendio.com>
  173. - Released 0.7