[perl-Tk] Use %{_pkgdocdir} where available.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 8fa83f37ae6358447b9d79ad2514518d07c0978e
Author: Ville Skyttä <ville.skytta@xxxxxx>
Date:   Sat Aug 10 13:22:46 2013 +0300

    Use %{_pkgdocdir} where available.

 perl-Tk.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/perl-Tk.spec b/perl-Tk.spec
index cd6f9e8..1cd49d6 100644
--- a/perl-Tk.spec
+++ b/perl-Tk.spec
@@ -4,7 +4,7 @@
 Name:           perl-Tk
 # devel version fix for perl 5.14: 
 Version:        804.031
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Perl Graphical User Interface ToolKit
 
 Group:          Development/Libraries
@@ -73,7 +73,7 @@ chmod -x pod/Popup.pod Tixish/lib/Tk/balArrow.xbm
 # fix for widget as docs
 %patch0
 %{__perl} -pi -e \
-'s,\@demopath\@,%{_datadir}/doc/%{name}-%{version}/demos,g' demos/widget
+'s,\@demopath\@,%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}/demos,g' demos/widget
 # debian patch
 %patch1 -p1
 # patch to fix #235666 ... seems like caching code is broken
@@ -126,6 +126,9 @@ find __demos/ -type f -exec chmod -x {} \;
 
 
 %changelog
+* Sat Aug 10 2013 Ville Skyttä <ville.skytta@xxxxxx> - 804.031-4
+- Use %%{_pkgdocdir} where available.
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 804.031-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux