| 1 | Name: novprog
|
|---|
| 2 | Version: 3.2.0
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Tool to graph your progress in writing a NaNoWriMo style novel
|
|---|
| 5 | License: GPLv3+
|
|---|
| 6 | URL: http://gottcode.org/%{name}/
|
|---|
| 7 | %if !0%{?os2_version}
|
|---|
| 8 | Source: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2
|
|---|
| 9 | %else
|
|---|
| 10 | %scm_source github https://github.com/gottcode/novprog main
|
|---|
| 11 | %endif
|
|---|
| 12 |
|
|---|
| 13 | %if !0%{?os2_version}
|
|---|
| 14 | BuildRequires: desktop-file-utils
|
|---|
| 15 | BuildRequires: libappstream-glib
|
|---|
| 16 | %endif
|
|---|
| 17 | BuildRequires: qt5-qttools-devel
|
|---|
| 18 | %if !0%{?os2_version}
|
|---|
| 19 | Requires: hicolor-icon-theme
|
|---|
| 20 | %endif
|
|---|
| 21 |
|
|---|
| 22 | %description
|
|---|
| 23 | NovProg is a tool to graph your progress in writing a NaNoWriMo style novel.
|
|---|
| 24 | You enter your wordcount and it updates a graph showing you how much progress
|
|---|
| 25 | you have made. It also shows you how far you are through your daily goal,
|
|---|
| 26 | and your total goal. Mousing over a bar in the graph will show a tooltip
|
|---|
| 27 | with that days wordcount.
|
|---|
| 28 |
|
|---|
| 29 | %prep
|
|---|
| 30 | %if !0%{?os2_version}
|
|---|
| 31 | %setup -q
|
|---|
| 32 | %else
|
|---|
| 33 | %scm_setup
|
|---|
| 34 | %endif
|
|---|
| 35 |
|
|---|
| 36 | %build
|
|---|
| 37 | # do a fast qt build, as runmapsym and wmapsym is not needed here
|
|---|
| 38 | export QMAKE_SH=$SHELL
|
|---|
| 39 | export FAST_BUILD=1
|
|---|
| 40 | LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 41 |
|
|---|
| 42 | %{qmake_qt5} PREFIX=%{_prefix}
|
|---|
| 43 | make %{?_smp_mflags}
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 | %install
|
|---|
| 47 | %make_install INSTALL_ROOT=%{buildroot}
|
|---|
| 48 | mkdir -p %{buildroot}%{_bindir}/
|
|---|
| 49 | mkdir -p %{buildroot}%{_mandir}/man1/
|
|---|
| 50 | mkdir -p %{buildroot}%{_datadir}/%{name}/translations
|
|---|
| 51 | mkdir -p %{buildroot}%{_datadir}/%{name}/icons/
|
|---|
| 52 | install -p -m 644 %{name}.exe %{buildroot}%{_bindir}/
|
|---|
| 53 | install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
|
|---|
| 54 | install -p -m 644 doc/%{name}.1 %{buildroot}%{_mandir}/man1/
|
|---|
| 55 | install -p -m 644 icons/hicolor/32x32/apps/*.png %{buildroot}%{_datadir}/%{name}/icons/
|
|---|
| 56 |
|
|---|
| 57 | %find_lang %{name} --with-qt --without-mo
|
|---|
| 58 |
|
|---|
| 59 | %check
|
|---|
| 60 | %if !0%{?os2_version}
|
|---|
| 61 | desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || :
|
|---|
| 62 | appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml || :
|
|---|
| 63 | %endif
|
|---|
| 64 |
|
|---|
| 65 | #%files -f %{name}.lang
|
|---|
| 66 | %files
|
|---|
| 67 | %doc ChangeLog COPYING CREDITS README
|
|---|
| 68 | %license COPYING
|
|---|
| 69 | %{_bindir}/%{name}.exe
|
|---|
| 70 | #%{_datadir}/appdata/%{name}.appdata.xml
|
|---|
| 71 | #%{_datadir}/applications/%{name}.desktop
|
|---|
| 72 | %{_datadir}/%{name}/icons/*.png
|
|---|
| 73 | #%{_datadir}/pixmaps/%{name}.xpm
|
|---|
| 74 | %{_datadir}/%{name}/
|
|---|
| 75 | %{_datadir}/%{name}/translations
|
|---|
| 76 | %{_mandir}/man1/%{name}.1.*
|
|---|
| 77 |
|
|---|
| 78 | %changelog
|
|---|
| 79 | * Fri Oct 08 2021 Elbert Pol <elbert.pol@gmail.com> - 3.2.0-1
|
|---|
| 80 | - Updated to latest version
|
|---|
| 81 |
|
|---|
| 82 | * Thu Apr 23 2020 Elbert Pol <elbert.pol@gmail.com> - 3.1.7-1
|
|---|
| 83 | - first QT5 RPM for OS2
|
|---|