From 675ee141379c6ddc11af51de9975e6ef603c1fec Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Sat, 8 Dec 2018 14:21:10 +0100 Subject: [PATCH] New xnview package added --- fedora/SPECS/xnview.spec | 77 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 fedora/SPECS/xnview.spec diff --git a/fedora/SPECS/xnview.spec b/fedora/SPECS/xnview.spec new file mode 100644 index 0000000..177e37a --- /dev/null +++ b/fedora/SPECS/xnview.spec @@ -0,0 +1,77 @@ +%define debug %nil +%define debug_package %nil +%define oname XnView +%global DONT_REMOVE_RPATH 1 + +Name: xnview +Version: 0.92 +Release: 1%{?dist} +Summary: Best Photo Viewer, Image Resizer & Batch Converter +URL: https://www.xnview.com +%ifarch x86_64 +Source0: https://download.xnview.com/XnViewMP-linux-x64.tgz +%else +Source0: https://download.xnview.com/XnViewMP-linux.tgz +%endif +Source1000: %{name}.rpmlintrc +License: Free +Group: Graphics +Prefix: /opt +Requires: bzip2-libs +Provides: libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit) +Provides: libQt5EglFSDeviceIntegration.so.5(Qt_5_PRIVATE_API)(64bit) +Provides: libQt5Gui.so.5(Qt_5_PRIVATE_API)(64bit) +Provides: libQt5Multimedia.so.5(Qt_5_PRIVATE_API)(64bit) +Provides: libQt5Network.so.5(Qt_5_PRIVATE_API)(64bit) +Provides: libQt5PrintSupport.so.5(Qt_5_PRIVATE_API)(64bit) +Provides: libQt5XcbQpa.so.5(Qt_5_PRIVATE_API)(64bit) +Provides: libQtAV.so.1()(64bit) +Provides: libQtAVWidgets.so.1()(64bit) +Provides: libicudata.so.56()(64bit) +Provides: libicui18n.so.56()(64bit) +Provides: libicuio.so.56()(64bit) +Provides: libicule.so.56()(64bit) +Provides: libiculx.so.56()(64bit) +Provides: libicutest.so.56()(64bit) +Provides: libicutu.so.56()(64bit) +Provides: libicuuc.so.56()(64bit) +Provides: libqgsttools_p.so.1()(64bit) + +%description +XnView MP is the enhanced version of XnView Classic. +It is a powerful picture viewer, browser and converter for +Windows, Mac and Linux. This software can read more than +500 formats change picture size, reduce picture file size +and much more! + +%prep +%setup -qn %{oname} + +%build +## no build + +%install +export DONT_REMOVE_RPATH=1 +install -d %{buildroot}/%{prefix}/%{oname} +install -d %{buildroot}/%{_datadir}/applications +cp -a . %{buildroot}/%{prefix}/%{oname} +install %{oname}.desktop %{buildroot}/%{_datadir}/applications/ + +%post +ln -s %{prefix}/%{oname}/%{name}.sh %{_bindir}/%{name} +cd %{_libdir} +ln -s libbz2.so.1 libbz2.so.1.0 + +%postun +rm -f %{_bindir}/%{name} +rm -f %{_libdir}libbz2.so.1.0 + +%files +%doc license.txt +%{prefix}/%{oname} +%{_datadir}/applications/%{oname}.desktop + +%changelog +* Sat Dec 8 2018 User 0.92-1 +- First initial releas on Fedora 29 (no source code available) +