Summary: PGF image format plugin for Qt5 Name: pgf-imageformat-qt5 Version: 1.1 Release: 2%{?dist} License: GPLv2+ URL: https://copr.fedorainfracloud.org/coprs/vr5/qt-imageformats/ Source0: pgf-imageformat-qt5-1.0.tar.gz Source1: pgf-qt5.pro BuildRoot: %{_tmppath}/%{name}-%{version} Requires: qt5-qtbase-gui libpgf xdg-utils BuildRequires: qt5-qtbase-devel libpgf-devel %define debug_package %{nil} %description PGF image format plugin for Qt5 provides read-only access to PGF images (they can be opened via QImage class, for example) %prep %setup -q -n %{name} %build qmake-qt5 %{SOURCE1} make %install install -D libpgf.so $RPM_BUILD_ROOT%{_libdir}/qt5/plugins/imageformats/libpgf.so install -D xdg-pgf.xml %{buildroot}/usr/share/%{name}-%{version}/xdg-pgf.xml install -D pgf.desktop $RPM_BUILD_ROOT/usr/share/kservices5/qimageioplugins/pgf.desktop %post xdg-mime install /usr/share/%{name}-%{version}/xdg-pgf.xml %files %defattr(0644,root,root) %attr(0755,root,root) %{_libdir}/qt5/plugins/imageformats/libpgf.so /usr/share/%{name}-%{version}/xdg-pgf.xml /usr/share/kservices5/qimageioplugins/pgf.desktop %clean rm -rf %{buildroot} %changelog *Tue May 7 2019 Vad Rulezz - 1.0 - Initial Package of pgf-imageformat-qt5