ggv-vl.spec 6.1 KB

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