]> git.pld-linux.org Git - packages/tix.git/commitdiff
- install macro in groff versioned dir to satisfy dirdeps
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 23 Dec 2014 00:11:15 +0000 (00:11 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 23 Dec 2014 00:11:15 +0000 (00:11 +0000)
tix.spec

index aedde654eafffe152613c2a44ead63f5965b433f..bd5d96a29367bcd002b2511cf065a84ce59dab69 100644 (file)
--- a/tix.spec
+++ b/tix.spec
@@ -17,6 +17,7 @@ Patch2:               fixInterpResult.patch
 URL:           http://tix.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: groff
 BuildRequires: tcl-devel >= 8.4.6
 BuildRequires: tk-devel >= 8.4.6
 BuildRequires: which
@@ -25,6 +26,8 @@ Requires:     tcl >= 8.4.6
 Requires:      tk >= 8.4.6
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                groff_version   %(rpm -q --qf %{V} groff)
+
 %description
 Tix is a add on for the Tk widget set which adds many complex widgets
 which are built from Tk building blocks. The extra widgets include
@@ -99,9 +102,9 @@ install -d $RPM_BUILD_ROOT{%{_mandir},%{_examplesdir}/%{name}-%{version}}
 install -d $RPM_BUILD_ROOT%{_mandir}/mann
 install man/*.n $RPM_BUILD_ROOT%{_mandir}/mann
 
-install -d $RPM_BUILD_ROOT%{_datadir}/groff/current/tmac
+install -d $RPM_BUILD_ROOT%{_datadir}/groff/%{groff_version}/tmac
 sed -i -e 's/.so man.macros/.mso tix.tmac/g' $RPM_BUILD_ROOT%{_mandir}/mann/*.n
-install man/man.macros $RPM_BUILD_ROOT%{_datadir}/groff/current/tmac/tix.tmac
+install man/man.macros $RPM_BUILD_ROOT%{_datadir}/groff/%{groff_version}/tmac/tix.tmac
 
 cp -af demos $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
@@ -123,7 +126,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc docs/*.txt docs/{pdf,tix-book}
 %{_mandir}/mann/*
-%{_datadir}/groff/current/tmac/tix.tmac
+%{_datadir}/groff/%{groff_version}/tmac/tix.tmac
 
 %files demo
 %defattr(644,root,root,755)
This page took 1.199634 seconds and 4 git commands to generate.