Name: thepage Version: 1.0 Release: 1%{?dist} Summary: Document Viewer License: GPLv3+ URL: https://github.com/vicr123/thepage Source0: https://github.com/vicr123/thepage/archive/v%{version}.tar.gz %if 0%{?fedora} == 32 BuildRequires: make qt5-devel the-libs-devel poppler-qt5-devel Requires: qt5 the-libs poppler-qt5 libthepage %endif %if 0%{?fedora} >= 33 BuildRequires: make qt5-qtbase-devel the-libs-devel poppler-qt5-devel qt5-linguist Requires: qt5-qtbase the-libs poppler-qt5 libthepage %endif %define debug_package %{nil} %define _unpackaged_files_terminate_build 0 %description Document viewer using poppler %package -n libthepage Summary: Libraries for %{name} plugins %description -n libthepage Libraries for thePage plugins %prep %setup -n thePage-%{version} %build mkdir build cd build qmake-qt5 ../thePage.pro make %install cd build rm -rf $RPM_BUILD_ROOT #%make_install make install INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_bindir}/thepage %{_datadir}/applications/com.vicr123.thepage.desktop %{_datadir}/icons/hicolor/scalable/apps/thepage.svg %{_sysconfdir}/theSuite/thepage/defaults.conf %{_datadir}/thepage/translations/* %{_datadir}/thepage/popplerplugin/translations/* %{_libdir}/thepage/plugins/* %files -n libthepage %{_libdir}/libthepage.so* %changelog * Sun May 3 2020 Victor Tran -