Files
rpms/fedora/SPECS/xnview.spec

78 lines
2.1 KiB
RPMSpec
Raw Normal View History

2018-12-08 14:21:10 +01:00
%define debug %nil
%define debug_package %nil
%define oname XnView
%global DONT_REMOVE_RPATH 1
Name: xnview
2019-05-04 16:22:21 +02:00
Version: 0.93.1
2018-12-08 14:21:10 +01:00
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 <daniel.steiner@greenmail.ch> 0.92-1
- First initial releas on Fedora 29 (no source code available)