devhelp-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. Version: 2.30.1
  2. Release: 1%{?_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. * Sat Jun 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  110. - new upstream release
  111. * Sun Apr 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  112. - new upstream release
  113. * Fri Nov 06 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.28.1-2
  114. - add unique-devel to BR
  115. * Tue Nov 03 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 2.28.1-1
  116. - New upstream release.
  117. - remove Patch
  118. - build with WebKit-1.1.15.3
  119. - add Vendor, Distribution and Packager.
  120. * Mon Aug 10 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.23-4
  121. - update Patch(See follow url)
  122. - http://git.gnome.org/cgit/devhelp/commit/?id=af67fbedccab5044808a489a9f3a5540d42adcf2
  123. * Sat Aug 01 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.23-3
  124. - update Url.
  125. - add Patch11(http://bugzilla.gnome.org/show_bug.cgi?id=586559)
  126. * Tue Jun 30 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.23-2
  127. - remove unneeded Requires:
  128. - remove Requires/BuildRequires to gecko.
  129. * Tue Apr 28 2009 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.23-1
  130. - new upstream release
  131. - added Requires: Webkit-gtk,libsoup BuildRequires: Webkit-gtk-devel,libsoup-devel
  132. * Tue Sep 30 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.21-1
  133. - new upstream release (dropped Patch10)
  134. - updated BuildRequires: gecko-devel-unstable instead of gecko-devel
  135. - added Requires: gecko-libs instead of firefox
  136. * Thu Jul 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.19.1-2
  137. - add Patch10 to build with xulrunner-1.9
  138. - add %%pre %%preun scripts to remove old gconf schemas
  139. - add %%postun to update icon cache
  140. - add unpackaged icons to %%files
  141. * Fri May 30 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.19.1
  142. - new upstream version.
  143. * Tue May 13 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.16.1-2
  144. - use macro for Release
  145. * Fri May 09 2008 Yasumichi Akahoshi <yasumichi@vinelinux.org>
  146. - apply new virsioning policy.
  147. - remove *.la
  148. * Thu Jan 10 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.16.1-0vl2
  149. - rebuilt with libwnck 2.20.2
  150. * Fri Jan 04 2008 Shu KONNO <owa@bg.wakwak.com> 0.16.1-0vl1
  151. - new upstream version
  152. - removed icon-theme.cache in %%install section
  153. * Sun Sep 02 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.15-0vl1
  154. - new upstream release
  155. * Tue Apr 03 2007 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.13-0vl2
  156. - icon-theme.cache is not included.
  157. * Sun Apr 01 2007 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.13-0vl1
  158. - update to 0.13
  159. * Sun Dec 17 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.12-0vl2
  160. - build devel package
  161. * Sun Oct 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12-0vl1
  162. - updated to 0.12
  163. - using firefox(gecko) instead of gtkhtml2
  164. - disabled intltoolize before configure
  165. * Thu Aug 25 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.9.3-0vl2
  166. - add "--force" to intltoolize
  167. * Sun Nov 14 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.3-0vl1
  168. - build for Vine Linux
  169. - do not build devel package
  170. * Sun Jun 29 2003 Mikael Hallendal <micke@imendio.com>
  171. - Released 0.7