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