From 8415f1ee4750ac1293a42a81a33cad698efd766d Mon Sep 17 00:00:00 2001 From: B Stack Date: Sat, 18 May 2019 13:34:52 -0400 Subject: irfanview 4.53 rpm old-style --- irfanview/irfanview.spec | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/irfanview/irfanview.spec b/irfanview/irfanview.spec index 56cdcca..ceeebd5 100644 --- a/irfanview/irfanview.spec +++ b/irfanview/irfanview.spec @@ -5,7 +5,7 @@ %global arch 32 Name: irfanview -Version: 4.52 +Version: 4.53 Release: 1 Summary: Irfanview graphic viewer %define version_num %( echo %version | tr -d '\.' ) @@ -13,12 +13,12 @@ Summary: Irfanview graphic viewer Group: Applications/Graphics License: Freeware URL: http://bgstack15.wordpress.com -# must download like: curl 'https://www.irfanview.info/files/iview451_x64.zip' --compressed -H 'Referer: https://www.irfanview.info/files/iview451_x64.zip' iview451_x64.zip +# must download like: curl 'https://www.irfanview.info/files/iview451_x64.zip' --compressed -H 'Referer: https://www.irfanview.info/files/iview451_x64.zip' -A 'Mozilla (X11)' iview451_x64.zip %if 0%{?arch} == 64 #Source0: http://www.irfanview.info/files/iview%%{version_num}_x64.zip #Source1: http://www.irfanview.info/files/iview%%{version_num}_plugins_x64.zip Source0: http://gitlab.com/bgstack15/big-sources/raw/master/%{name}/iview%{version_num}_x64.zip -Source0: http://gitlab.com/bgstack15/big-sources/raw/master/%{name}/iview%{version_num}_plugins_x64.zip +Source1: http://gitlab.com/bgstack15/big-sources/raw/master/%{name}/iview%{version_num}_plugins_x64.zip %else #Source0: http://www.irfanview.info/files/iview%%{version_num}.zip #Source1: http://www.irfanview.info/files/iview%%{version_num}_plugins.zip @@ -37,7 +37,6 @@ Buildarch: noarch BuildRequires: desktop-file-utils BuildRequires: ImageMagick Requires(pre): bgscripts-core >= 1.1-20 -# WORKHERE: this requires will depend on if this is i686 or x86_64 package %if 0%{?arch} == 64 Requires: /usr/bin/wine64 %else @@ -118,8 +117,13 @@ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE2} %endif # application default config +%if 0%{?arch} == 64 +%{__install} -p -D -m0666 %{SOURCE6} %{buildroot}%{_sysconfdir}/i_view64.ini +%{__ln_s} ../../..%{_sysconfdir}/i_view64.ini %{buildroot}%{_datadir}/%{name}/i_view64.ini +%else %{__install} -p -D -m0666 %{SOURCE6} %{buildroot}%{_sysconfdir}/i_view32.ini %{__ln_s} ../../..%{_sysconfdir}/i_view32.ini %{buildroot}%{_datadir}/%{name}/i_view32.ini +%endif # man pages %{__install} -p -D -m0644 -t %{buildroot}%{_docdir}/%{name} *.txt *.chm @@ -255,8 +259,12 @@ fi %{_datadir}/icons/hicolor/*/*/* %attr(755, -, -) %{_bindir}/* %config %{_sysconfdir}/sysconfig/%{name} +%if 0%{?arch} == 64 +%config %attr(666, -, -) %{_sysconfdir}/i_view64.ini +%else %config %attr(666, -, -) %{_sysconfdir}/i_view32.ini +%endif %changelog -* Tue Nov 29 2016 B Stack -- initial package built +* Sat May 18 2019 B Stack - 4.53-1 +- version bump -- cgit