Name: novprog Version: 3.2.0 Release: 1%{?dist} Summary: Tool to graph your progress in writing a NaNoWriMo style novel License: GPLv3+ URL: http://gottcode.org/%{name}/ %if !0%{?os2_version} Source: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2 %else %scm_source github https://github.com/gottcode/novprog main %endif %if !0%{?os2_version} BuildRequires: desktop-file-utils BuildRequires: libappstream-glib %endif BuildRequires: qt5-qttools-devel %if !0%{?os2_version} Requires: hicolor-icon-theme %endif %description NovProg is a tool to graph your progress in writing a NaNoWriMo style novel. You enter your wordcount and it updates a graph showing you how much progress you have made. It also shows you how far you are through your daily goal, and your total goal. Mousing over a bar in the graph will show a tooltip with that days wordcount. %prep %if !0%{?os2_version} %setup -q %else %scm_setup %endif %build # do a fast qt build, as runmapsym and wmapsym is not needed here export QMAKE_SH=$SHELL export FAST_BUILD=1 LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" %{qmake_qt5} PREFIX=%{_prefix} make %{?_smp_mflags} %install %make_install INSTALL_ROOT=%{buildroot} mkdir -p %{buildroot}%{_bindir}/ mkdir -p %{buildroot}%{_mandir}/man1/ mkdir -p %{buildroot}%{_datadir}/%{name}/translations mkdir -p %{buildroot}%{_datadir}/%{name}/icons/ install -p -m 644 %{name}.exe %{buildroot}%{_bindir}/ install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/ install -p -m 644 doc/%{name}.1 %{buildroot}%{_mandir}/man1/ install -p -m 644 icons/hicolor/32x32/apps/*.png %{buildroot}%{_datadir}/%{name}/icons/ %find_lang %{name} --with-qt --without-mo %check %if !0%{?os2_version} desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || : appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml || : %endif #%files -f %{name}.lang %files %doc ChangeLog COPYING CREDITS README %license COPYING %{_bindir}/%{name}.exe #%{_datadir}/appdata/%{name}.appdata.xml #%{_datadir}/applications/%{name}.desktop %{_datadir}/%{name}/icons/*.png #%{_datadir}/pixmaps/%{name}.xpm %{_datadir}/%{name}/ %{_datadir}/%{name}/translations %{_mandir}/man1/%{name}.1.* %changelog * Fri Oct 08 2021 Elbert Pol - 3.2.0-1 - Updated to latest version * Thu Apr 23 2020 Elbert Pol - 3.1.7-1 - first QT5 RPM for OS2