diff options
author | B Stack <bgstack15@gmail.com> | 2019-05-18 13:34:52 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-05-18 13:34:52 -0400 |
commit | 8415f1ee4750ac1293a42a81a33cad698efd766d (patch) | |
tree | 1ea780144b995555ba5586d44e9c6e7005df91f4 | |
parent | fix #6 for dpkg (diff) | |
download | stackrpms-8415f1ee4750ac1293a42a81a33cad698efd766d.tar.gz stackrpms-8415f1ee4750ac1293a42a81a33cad698efd766d.tar.bz2 stackrpms-8415f1ee4750ac1293a42a81a33cad698efd766d.zip |
irfanview 4.53 rpm old-style
-rw-r--r-- | irfanview/irfanview.spec | 20 |
1 files 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 <bgstack15@gmail.com> -- initial package built +* Sat May 18 2019 B Stack <bgstack15@gmail.com> - 4.53-1 +- version bump |