diff --git a/xournalpp.spec b/xournalpp.spec index e417b77..dd1ac87 100644 --- a/xournalpp.spec +++ b/xournalpp.spec @@ -1,6 +1,8 @@ +%global _with_cppunit 1 + Name: xournalpp Version: 1.0.16 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Handwriting note-taking software with PDF annotation support License: GPLv2+ @@ -9,7 +11,9 @@ Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake3 >= 3.10 BuildRequires: desktop-file-utils +%{?_with_cppunit: BuildRequires: cppunit-devel >= 1.12-0 +} BuildRequires: gcc-c++ BuildRequires: gettext BuildRequires: libappstream-glib @@ -57,12 +61,17 @@ sed -i 's|tlh-AA|tlh|g' po/tlh.po %build %cmake3 \ - -DENABLE_CPPUNIT=ON \ + %{_with_cppunit: -DENABLE_CPPUNIT=ON} \ . %make_build %install %make_install + +#Remove depreciated key from desktop file +desktop-file-install \ + --remove-key="Encoding" \ + %{buildroot}%{_datadir}/applications/com.github.%{name}.%{name}.desktop %find_lang %{name} #Remove scripts from icons interface @@ -94,6 +103,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/com.github.%{n %{_datadir}/%{name}/ui %changelog +* Sun Jan 12 2020 Luya Tshimbalanga - 1.0.16-8 +- Remove depreciate key in desktop file + * Mon Dec 16 2019 Luya Tshimbalanga - 1.0.16-7 - Remove architecture requirement for plugins and ui