Browse Source

updated gv-vl.spec

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3641 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 years ago
parent
commit
83eeaf2d25
1 changed files with 38 additions and 16 deletions
  1. 38 16
      g/gv/gv-vl.spec

+ 38 - 16
g/gv/gv-vl.spec

@@ -1,25 +1,27 @@
 Summary: A X front-end for the Ghostscript PostScript(TM) interpreter
 Summary(ja): PostScript(TM) インタープリタである ghostscript の拡張フロントエンド
 Name: gv
-Version: 3.6.8
+Version: 3.7.1
 Release: 1%{?_dist_release}
-License: GPL
+License: GPLv3+
 Group: Applications/Publishing
 URL: http://www.gnu.org/software/gv/
 Source0: ftp://ftp.gnu.org/gnu/gv/gv-%{version}.tar.gz
 Source1: gv.desktop
+Source2: gv.png
 
-Patch0: gv-3.5.8-buffer.patch
-Patch1: gv-3.6.1-pkglibdir.patch
-
-# security fix
-Patch100: gv-3.6.2-CVE-2006-5864.patch
+## from Gentoo's Bugzilla – Bug 339394
+## app-text/gv-3.7.1 complains about keysym apLineDel
+## See http://bugs.gentoo.org/339394
+Patch100: gv-3.7.1-aplinedel.patch
 
 Requires: ghostscript
 Requires(post): desktop-file-utils, install-info
 Requires(preun): install-info
 Requires(postun): desktop-file-utils
+BuildRequires: desktop-file-utils
 BuildRequires: Xaw3d-devel, texinfo
+BuildRequires: libXinerama-devel
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 Obsoletes: ghostview
 
@@ -27,7 +29,7 @@ Distribution: Vine Linux
 Vendor: Project Vine
 
 %description
-Gv is a user interface for the Ghostscript PostScript(TM) interpreter.
+GNU gv is a user interface for the Ghostscript PostScript(TM) interpreter.
 Gv can display PostScript and PDF documents on an X Window System.
 
 Install the gv package if you'd like to view PostScript and PDF
@@ -35,7 +37,7 @@ documents on your system.  You'll also need to have the ghostscript
 package and X installed.
 
 %description -l ja
-Gv は PostScript(TM) インタープリターである ghostscript のための
+GNU gv は PostScript(TM) インタープリターである ghostscript のための
 ユーザーインターフェースを提供します。ghostscript プログラムにより、
 gv は X Window System を使用して、PostScript と PDF ドキュメントを
 表示することができます。
@@ -47,14 +49,12 @@ gv プログラムをインストールしてください。ghostscript と X Wi
 %prep
 %setup -q
 
-##%patch0 -p1 -b .buffer
-%patch1 -p1 -b .pkglibdir
-
-# security fix
-#%patch100 -p1 -b .CVE-2006-5864
+%patch100 -p1 -b .aplinedel
 
 %build
-%configure
+%configure \
+    --enable-scrollbar-code \
+    ;
 %__make %{?_smp_mflags}
 
 %install
@@ -67,7 +67,16 @@ gv プログラムをインストールしてください。ghostscript と X Wi
 
 # desktop file
 %__mkdir_p %{buildroot}%{_datadir}/applications
-%__install -p -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
+
+desktop-file-install --vendor=vine \
+       --dir %{buildroot}%{_datadir}/applications/ \
+       %{SOURCE1}
+
+%__mkdir_p $RPM_BUILD_ROOT%{_datadir}/pixmaps
+%__cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps
+
+# Remove info dir file
+%__rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
 
 %clean
 %__rm -rf %{buildroot}
@@ -89,12 +98,25 @@ gv プログラムをインストールしてください。ghostscript と X Wi
 %doc AUTHORS COPYING ChangeLog NEWS README
 %{_bindir}/gv
 %{_bindir}/ghostview
+%{_bindir}/gv-update-userconfig
 %{_datadir}/gv
 %{_datadir}/applications/*.desktop
 %{_infodir}/gv.info*
+%{_datadir}/pixmaps/gv.png
 %{_mandir}/man1/gv.*
+%{_mandir}/man1/gv-update-userconfig.*
 
 %changelog
+* Fri Apr 21 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.7.1-1
+- new upstream release
+- dropped obsolete/upstreamed patches
+- applied gv-3.7.1-aplinedel.patch
+- updated our gv.desktop (%%{SOURCE1})
+  - added gv.png
+- added BuildRequires: 
+  - desktop-file-utils
+  - libXinerama-devel
+
 * Tue Mar 23 2010 Shu KONNO <owa@bg.wakwak.com> 3.6.8-1
 - rebuit with new toolchain
 - new upstream release