devhelp-vl.spec 6.4 KB

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