2013-02-22 08:33:53 +00:00
committed by Git OBS Bridge
parent bf54989a5a
commit dadc96b504
5 changed files with 23 additions and 22 deletions

13
gv.spec
View File

@@ -1,7 +1,7 @@
#
# spec file for package gv
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -39,16 +39,15 @@ Conflicts: gs_serv gs_vga
#Requires: desktop-data-SuSE
Url: http://www.gnu.org/software/gv/
Summary: A Program to View PostScript Files
License: GPL-2.0+
License: GPL-3.0+
Group: Productivity/Publishing/PS
Version: 3.7.0
Version: 3.7.2
Release: 0
Source0: gv-3.7.0.tar.bz2
Source0: gv-3.7.2.tar.bz2
Source1: gv.desktop
Source2: gv.png
Patch1: gv-3.7.0.dif
Patch2: gv-3.7.0-I18N-mb.patch
Patch3: gv-3.7.0-aplinedel.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)}
%if "%_exec_prefix" == "/usr/X11R6"
@@ -77,14 +76,11 @@ Authors:
%prep
%setup
cd gv
echo >> src/Makefile.am
%patch1 -p0
%patch2 -p0
%patch3 -p0
%build
cd gv
autoreconf -fis
sed -ri 's@[[:blank:]]*-(R|rpath)[[:blank:]]*\$[[:alpha:]_]+@@g' configure
chmod 755 configure
@@ -127,7 +123,6 @@ export CC CFLAGS LDFLAGS
make pkgdatadir='%{_x11data}/gv'
%install
cd gv
rm -rf %{buildroot}
mkdir %{buildroot}
make DESTDIR=%{buildroot} pkgdatadir='%{_x11data}/gv' install