1
0

Accepting request 341468 from home:tiwai:branches:M17N:fonts

- dynamically create requires to groff with the version instead of
  hardcoding in spec file

OBS-URL: https://build.opensuse.org/request/show/341468
OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/ghostscript-fonts-grops?expand=0&rev=8
This commit is contained in:
Takashi Iwai 2015-10-29 10:39:24 +00:00 committed by Git OBS Bridge
parent 35ec5aa071
commit 0213c80df1
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 28 17:06:32 CET 2015 - tiwai@suse.de
- dynamically create requires to groff with the version instead of
hardcoding in spec file
-------------------------------------------------------------------
Thu Feb 27 17:00:58 CET 2014 - tiwai@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ghostscript-fonts-grops
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,7 +20,6 @@ Name: ghostscript-fonts-grops
Version: 1.22.2
Release: 0
Url: http://www.gnu.org/software/groff/groff.html
Requires: groff = %{version}
Summary: Ghostscript fonts imported to groff for use with grops
License: GPL-2.0
Group: Productivity/Publishing/Troff
@ -39,6 +38,9 @@ A version of PostScript® driver for Groff to support characters outside ISO Lat
%prep
%build
%define groff_version $(readlink %{_datadir}/groff/current)
%define _use_internal_dependency_generator 0
%define __find_requires sh -c "echo groff = %{groff_version}; exec /usr/lib/rpm/find-requires"a
%define gs_fonts %{_datadir}/ghostscript/fonts
%define import_font() ln -s -T "%{gs_fonts}/%1.afm" "%2.afm" && pfbtopfa "%{gs_fonts}/%1.pfb" "devps/%1.pfa"
@ -66,8 +68,7 @@ echo "${fn}" "${pf}"
done >>devps/download
%install
groffver=$(readlink %{_datadir}/groff/current)
target="%{buildroot}%{_datadir}/groff/$groffver/font/gs"
target="%{buildroot}%{_datadir}/groff/%{groff_version}/font/gs"
install -d "${target}"
mv "-t${target}" devps
mkdir -p %{buildroot}/etc/profile.d