SHA256
1
0
forked from pool/ghostview

Accepting request 416350 from Publishing

- Enable parallel build and remove old specfile tags/sections (forwarded request 416178 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/416350
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghostview?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2016-08-05 16:16:36 +00:00 committed by Git OBS Bridge
commit 308c23b46c
2 changed files with 20 additions and 71 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 8 11:14:34 UTC 2014 - jengelh@inai.de
- Enable parallel build and remove old specfile tags/sections
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 8 12:08:26 UTC 2011 - werner@suse.de Tue Nov 8 12:08:26 UTC 2011 - werner@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package ghostview (Version 1.5) # spec file for package ghostview
# #
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,47 +15,35 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: ghostview Name: ghostview
BuildRequires: update-desktop-files xorg-x11 xorg-x11-devel Version: 1.5
Release: 0
Summary: Ghostview
License: GPL-2.0+ License: GPL-2.0+
Group: Productivity/Publishing/PS Group: Productivity/Publishing/PS
Provides: gsview ghstview Url: http://pages.cs.wisc.edu/~ghost/gv/index.htm
Obsoletes: gsview
Requires: ghostscript_x11
Conflicts: gs_serv gs_vga
AutoReqProv: on
Version: 1.5
Release: 420
Summary: Ghostview
Source: ghostview-1.5.tar.bz2 Source: ghostview-1.5.tar.bz2
Source1: ghostview.desktop Source1: ghostview.desktop
Source2: ghostview.png Source2: ghostview.png
Patch: ghostview-1.5.dif Patch: ghostview-1.5.dif
Patch1: ghostview-1.5-ad.dif Patch1: ghostview-1.5-ad.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{expand: %%global _exec_prefix %(type -p pkg-config &>/dev/null && pkg-config --variable prefix x11 || echo /usr/X11R6)} BuildRequires: update-desktop-files
%if "%_exec_prefix" == "/usr/X11R6" BuildRequires: xorg-x11
%global _mandir %{_exec_prefix}/man BuildRequires: xorg-x11-devel
%define _x11data %{_exec_prefix}/lib/X11 Provides: ghstview
%define _appdefdir %{_x11data}/app-defaults Provides: gsview
%else Obsoletes: gsview
Requires: ghostscript_x11
Conflicts: gs_serv gs_vga
%define _x11data %{_datadir}/X11 %define _x11data %{_datadir}/X11
%define _appdefdir %{_x11data}/app-defaults %define _appdefdir %{_x11data}/app-defaults
%endif
%description %description
Ghostview offers an X11 GUI for viewing PostScript files. This is an Ghostview offers an X11 GUI for viewing PostScript files. This is an
X11 interface to ghostscript. X11 interface to ghostscript.
Authors:
--------
Tim Theisen <tim@cs.wisc.edu>
%prep %prep
%setup -q %setup -q
%patch %patch
@ -63,17 +51,13 @@ Authors:
%build %build
xmkmf -a xmkmf -a
make CCOPTIONS="$RPM_OPT_FLAGS" make CCOPTIONS="%{optflags}" %{?_smp_mflags}
%install %install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
make install.man DESTDIR=%{buildroot} make install.man DESTDIR=%{buildroot}
%suse_update_desktop_file -i ghostview Office Viewer %suse_update_desktop_file -i ghostview Office Viewer
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
/usr/share/applications/ghostview.desktop /usr/share/applications/ghostview.desktop
@ -83,43 +67,3 @@ rm -rf %{buildroot}
%doc %{_mandir}/man1/ghostview.1x.gz %doc %{_mandir}/man1/ghostview.1x.gz
%changelog %changelog
* Tue Apr 08 2008 werner@suse.de
- Resolve file conflict by renaming gv.png to ghostview.png
* Sun Jan 13 2008 coolo@suse.de
- remove desktop-data from buildrequires
* Thu Jul 05 2007 coolo@suse.de
- put desktop file and icon into package
* Thu Nov 09 2006 werner@suse.de
- Get file stat before using it (bug #216970)
* Thu Aug 24 2006 werner@suse.de
- Don't package icon already present in desktop-data-SuSE
* Wed Aug 02 2006 werner@suse.de
- Make it build with X11R7
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 05 2005 dmueller@suse.de
- add norootforbuild
* Thu May 12 2005 meissner@suse.de
- use RPM_OPT_FLAGS
* Wed Nov 17 2004 werner@suse.de
- Add gv.png pixmap to file list
* Wed Apr 28 2004 werner@suse.de
- Avoid compiler warnings
* Sat Aug 16 2003 adrian@suse.de
- install desktop file from kappfinder
* Fri Jun 13 2003 kukuk@suse.de
- Rename to ghostview [Bug #27088]
- Add BuildRoot
- Fix filelist
* Fri Nov 08 2002 werner@suse.de
- Remove XCOMM definition to make new cpp happy
* Sat Dec 09 2000 nashif@suse.de
- sorted
* Mon Sep 20 1999 ro@suse.de
- added Requires ghostscript_x11
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Sun Sep 20 1998 ro@suse.de
- dont redeclare sys_errlist for glibc
* Thu Feb 13 1997 werner@suse.de
- Compiled and packed under X11R6.1