[zynjacku] Fix symlink to gpl.txt when doc dir is unversioned.

Ville Skyttä scop at fedoraproject.org
Sat Nov 9 17:20:25 UTC 2013


commit d3eb3ac6497f8ed568fcc316f874a60159053042
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Nov 9 19:20:42 2013 +0200

    Fix symlink to gpl.txt when doc dir is unversioned.
    
    - Fix bogus date in %changelog.

 zynjacku.spec |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/zynjacku.spec b/zynjacku.spec
index 06505f3..1c3b45f 100644
--- a/zynjacku.spec
+++ b/zynjacku.spec
@@ -2,7 +2,7 @@
 
 Name:		zynjacku
 Version:	6
-Release:	6%{?dist}
+Release:	7%{?dist}
 Summary:	LV2 synths and plugins host
 Group:		Applications/Multimedia
 License:	GPLv2
@@ -68,7 +68,8 @@ make install DESTDIR=$RPM_BUILD_ROOT
 chmod -x $RPM_BUILD_ROOT%{python_sitearch}/zynworld/*.py
 
 # We don't need duplicate files
-ln -sf ../doc/%{name}-%{version}/gpl.txt $RPM_BUILD_ROOT/%{_datadir}/%{name}/
+ln -sf %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}/gpl.txt \
+	$RPM_BUILD_ROOT/%{_datadir}/%{name}/
 
 # Kill .la files
 rm -f $RPM_BUILD_ROOT%{python_sitearch}/zynworld/*.la
@@ -110,6 +111,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/icons/hicolor/72x72/apps/%{name}.png
 
 %changelog
+* Sat Nov  9 2013 Ville Skyttä <ville.skytta at iki.fi> - 6-7
+- Fix symlink to gpl.txt when doc dir is unversioned.
+- Fix bogus date in %%changelog.
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
@@ -144,7 +149,7 @@ rm -rf $RPM_BUILD_ROOT
 * Mon Jul 27 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 5-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 
-* Sun Jun 13 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 5-1
+* Sun Jun 14 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 5-1
 - Update to 5
 
 * Fri Apr 10 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 4-2


More information about the scm-commits mailing list