forked from pool/ghostscript-fonts-grops
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:
parent
35ec5aa071
commit
0213c80df1
@ -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
|
Thu Feb 27 17:00:58 CET 2014 - tiwai@suse.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghostscript-fonts-grops
|
# 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
|
# 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
|
||||||
@ -20,7 +20,6 @@ Name: ghostscript-fonts-grops
|
|||||||
Version: 1.22.2
|
Version: 1.22.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.gnu.org/software/groff/groff.html
|
Url: http://www.gnu.org/software/groff/groff.html
|
||||||
Requires: groff = %{version}
|
|
||||||
Summary: Ghostscript fonts imported to groff for use with grops
|
Summary: Ghostscript fonts imported to groff for use with grops
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
Group: Productivity/Publishing/Troff
|
Group: Productivity/Publishing/Troff
|
||||||
@ -39,6 +38,9 @@ A version of PostScript® driver for Groff to support characters outside ISO Lat
|
|||||||
%prep
|
%prep
|
||||||
|
|
||||||
%build
|
%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 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"
|
%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
|
done >>devps/download
|
||||||
|
|
||||||
%install
|
%install
|
||||||
groffver=$(readlink %{_datadir}/groff/current)
|
target="%{buildroot}%{_datadir}/groff/%{groff_version}/font/gs"
|
||||||
target="%{buildroot}%{_datadir}/groff/$groffver/font/gs"
|
|
||||||
install -d "${target}"
|
install -d "${target}"
|
||||||
mv "-t${target}" devps
|
mv "-t${target}" devps
|
||||||
mkdir -p %{buildroot}/etc/profile.d
|
mkdir -p %{buildroot}/etc/profile.d
|
||||||
|
Loading…
Reference in New Issue
Block a user