ggv-vl.spec 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. Name: ggv
  2. Summary: GNOME Ghostview (ggv) is a frontend for Ghostscript
  3. Summary(ja): GNOME Ghostview - Ghostscript のフロントエンド
  4. Version: 2.12.0
  5. Release: 2%{?_dist_release}
  6. Group: Applications/Publishing
  7. License: GPL
  8. Source: ftp://ftp.gnome.org/pub/gnome/sources/ggv/2.12/ggv-%{version}.tar.bz2
  9. # security fix
  10. Patch0: ggv-2.12.0-CVE-2006-5864.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: libbonobo-devel, libgnomeprint-devel, libgnome-devel, gettext
  13. BuildRequires: gtk2-devel, libxml-devel, ORBit2-devel
  14. BuildRequires: libgnomeui-devel >= 2.6.0
  15. BuildRequires: libX11-devel
  16. BuildRequires: libXt-devel
  17. BuildRequires: desktop-file-utils
  18. Requires(post): GConf2
  19. Requires(post,postun): scrollkeeper >= 0.3.11
  20. %description
  21. GNOME Ghostview (ggv) is a frontend for Ghostscript, an interpreter of
  22. PostScript that is able to properly render PostScript documents in a display
  23. or a printer. GGv serves as a layer that isolates the user from the cumbersome
  24. options and interface of Ghostscript, and, at the same time, gives extra
  25. features such as panning and persistent user settings.
  26. %prep
  27. %setup -q
  28. %patch0 -p1 -b .CVE-2006-5864
  29. %build
  30. %configure
  31. %__make
  32. %install
  33. %__rm -rf $RPM_BUILD_ROOT
  34. # XXX
  35. %__perl -pi -e 's/.*scrollkeeper-update.*//g' omf-install/Makefile*
  36. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  37. %makeinstall
  38. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  39. # FIXME: remove invalid locale sr@Latn from desktop files.
  40. for i in $RPM_BUILD_ROOT%{_datadir}/applications/*
  41. do
  42. %__mv $i $i.orig
  43. grep -v "sr@Latn" $i.orig > $i
  44. %__rm $i.orig
  45. done
  46. desktop-file-install --vendor gnome --delete-original \
  47. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  48. $RPM_BUILD_ROOT%{_datadir}/applications/ggv.desktop
  49. # remove scrollkeeper stuff we don't include in the package
  50. %__rm -rf $RPM_BUILD_ROOT/var
  51. %find_lang %name
  52. %clean
  53. %__rm -rf $RPM_BUILD_ROOT
  54. %post
  55. scrollkeeper-update > /dev/null 2>&1 || :
  56. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  57. SCHEMAS="ggv.schemas"
  58. for S in $SCHEMAS; do
  59. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
  60. done
  61. %postun
  62. scrollkeeper-update > /dev/null 2>&1 || :
  63. %files -f %{name}.lang
  64. %defattr(-,root,root)
  65. %doc COPYING ChangeLog NEWS TODO
  66. %{_bindir}/*
  67. %{_datadir}/omf/ggv
  68. %{_datadir}/pixmaps/*
  69. %{_datadir}/gnome/help/ggv
  70. %{_datadir}/idl/*
  71. %{_datadir}/gnome-2.0/ui/*
  72. %{_libdir}/bonobo/servers/*
  73. %{_sysconfdir}/gconf/schemas/*
  74. %{_libexecdir}/*
  75. %{_datadir}/applications/*
  76. %changelog
  77. * Thu Apr 21 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.12.0-2
  78. - rebuilt with new toolchain
  79. - updated old tags
  80. - added BuildRequires:
  81. - libgnomeui-devel >= 2.6.0
  82. - libX11-devel
  83. - libXt-devel
  84. - desktop-file-utils
  85. * Thu Sep 25 2008 Shu KONNO <owa@bg.wakwak.com> 2.12.0-1vl5
  86. - applied new versioning policy, spec in utf-8
  87. * Sun Dec 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.12.0-0vl1
  88. - [SECURITY FIX]
  89. - new upstream release
  90. - add patch0 to fix stack-based buffer overflow (CVE-2006-5864)
  91. * Sun Apr 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.4-0vl1
  92. - new upstream release
  93. * Sat Jan 29 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.2-0vl1
  94. - new upstream release
  95. * Wed Nov 17 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.0-0vl1
  96. - new upstream release
  97. * Thu Sep 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0.1-0vl1
  98. - new upstream release
  99. * Thu Sep 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl1
  100. - new upstream release
  101. * Thu Sep 04 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.99-0vl1
  102. - new upstream release
  103. * Thu Jun 05 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0-0vl1
  104. - new upstream release
  105. * Fri Apr 18 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.0-0vl1
  106. - new upstream release
  107. * Sat Jan 4 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.99.97-0vl1
  108. - new upstream release
  109. - discard scrollkeeper outputs.
  110. - update PreReq tag.
  111. * Thu Dec 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.99.96-0vl1
  112. - new upstream release
  113. - build for Vine Linux
  114. * Tue Nov 19 2002 Bill Nottingham <notting@redhat.com> 1.99.9-6
  115. - rebuild
  116. * Tue Sep 24 2002 Bill Nottingham <notting@redhat.com> 1.99.9-5
  117. - fix handling of some postscript/pdf headers
  118. * Sat Aug 10 2002 Florian La Roche <Florian.LaRoche@redhat.de>
  119. - also PreReq scrollkeeper
  120. * Mon Aug 5 2002 Jonathan Blandford <jrb@redhat.com>
  121. - Switch Generic Name and Name, as I got this wrong
  122. * Fri Aug 2 2002 Jonathan Blandford <jrb@redhat.com>
  123. - update to new version
  124. * Tue Jul 23 2002 Jonathan Blandford <jrb@redhat.com>
  125. - update to new version.
  126. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  127. - automated rebuild
  128. * Thu Jun 13 2002 Nalin Dahyabhai <nalin@redhat.com>
  129. - rebuild in different environment
  130. * Thu Jun 13 2002 Nalin Dahyabhai <nalin@redhat.com>
  131. - fix a scrollkeeper validation bug
  132. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  133. - automated rebuild
  134. * Mon Apr 15 2002 Jonathan Blandford <jrb@redhat.com>
  135. - Add patch to accept '-' on the command line
  136. - buildrequires /usr/bin/lpr, #63167
  137. * Fri Mar 15 2002 Jonathan Blandford <jrb@redhat.com>
  138. - fix tempnam problems
  139. * Wed Jan 30 2002 Jonathan Blandford <jrb@redhat.com>
  140. - New release.
  141. * Wed Aug 29 2001 Trond Eivind Glomsr藷?<teg@redhat.com>
  142. - Add more build dependencies (#48561)
  143. * Wed Aug 22 2001 Yukihiro Nakai <ynakai@redhat.com>
  144. - Update translation.
  145. * Tue Jul 10 2001 Tim Powers <timp@redhat.com>
  146. - fix build dep bug (48561)
  147. * Mon May 21 2001 Trond Eivind Glomsr藷?<teg@redhat.com>
  148. - Replace Copyright with License
  149. - langify
  150. * Mon May 21 2001 <jrb@redhat.com>
  151. - New version.
  152. * Mon Nov 20 2000 Tim Powers <timp@redhat.com>
  153. - rebuilt to fix bad dir perms
  154. * Fri Nov 10 2000 Tim Powers <timp@redhat.com>
  155. - updated to 0.95
  156. * Mon Jul 24 2000 Prospector <prospector@redhat.com>
  157. - rebuilt
  158. * Mon Jul 10 2000 Tim Powers <timp@redhat.com>
  159. - rebuilt
  160. * Mon Jul 03 2000 Prospector <bugzilla@redhat.com>
  161. - automatic rebuild
  162. * Tue May 30 2000 Tim Powers <timp@redhat.com>
  163. - woops, forgot to add the docs to the package
  164. * Tue Mar 4 2000 Tim Powers <timp@redhat.com>
  165. - initial package of ggv for 7.0
  166. - bzipped sources to conserve space