ggv-vl.spec 5.6 KB

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