source: spec/trunk/SPECS/novprog.spec@ 1784

Last change on this file since 1784 was 1784, checked in by tellie, 4 years ago

spec: novprog: Release version 3.2.0-1.

File size: 2.5 KB
Line 
1Name: novprog
2Version: 3.2.0
3Release: 1%{?dist}
4Summary: Tool to graph your progress in writing a NaNoWriMo style novel
5License: GPLv3+
6URL: http://gottcode.org/%{name}/
7%if !0%{?os2_version}
8Source: 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}
14BuildRequires: desktop-file-utils
15BuildRequires: libappstream-glib
16%endif
17BuildRequires: qt5-qttools-devel
18%if !0%{?os2_version}
19Requires: hicolor-icon-theme
20%endif
21
22%description
23NovProg is a tool to graph your progress in writing a NaNoWriMo style novel.
24You enter your wordcount and it updates a graph showing you how much progress
25you have made. It also shows you how far you are through your daily goal,
26and your total goal. Mousing over a bar in the graph will show a tooltip
27with 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
38export QMAKE_SH=$SHELL
39export FAST_BUILD=1
40LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
41
42%{qmake_qt5} PREFIX=%{_prefix}
43make %{?_smp_mflags}
44
45
46%install
47%make_install INSTALL_ROOT=%{buildroot}
48mkdir -p %{buildroot}%{_bindir}/
49mkdir -p %{buildroot}%{_mandir}/man1/
50mkdir -p %{buildroot}%{_datadir}/%{name}/translations
51mkdir -p %{buildroot}%{_datadir}/%{name}/icons/
52install -p -m 644 %{name}.exe %{buildroot}%{_bindir}/
53install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
54install -p -m 644 doc/%{name}.1 %{buildroot}%{_mandir}/man1/
55install -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}
61desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || :
62appstream-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
Note: See TracBrowser for help on using the repository browser.