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

Last change on this file since 1711 was 1701, checked in by tellie, 6 years ago

spec: novprog: Release version 3.1.7-1

File size: 2.3 KB
Line 
1Name: novprog
2Version: 3.1.7
3Release: 1%{?dist}
4Summary: Tool to graph your progress in writing a NaNoWriMo style novel
5License: GPLv3+
6URL: 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
12BuildRequires: qt5-qttools-devel
13#Requires: hicolor-icon-theme
14
15%description
16NovProg is a tool to graph your progress in writing a NaNoWriMo style novel.
17You enter your wordcount and it updates a graph showing you how much progress
18you have made. It also shows you how far you are through your daily goal,
19and your total goal. Mousing over a bar in the graph will show a tooltip
20with 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
28export QMAKE_SH=$SHELL
29export FAST_BUILD=1
30LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
31
32%{qmake_qt5} PREFIX=%{_prefix}
33make %{?_smp_mflags}
34
35
36%install
37%make_install INSTALL_ROOT=%{buildroot}
38mkdir -p %{buildroot}%{_bindir}/
39mkdir -p %{buildroot}%{_mandir}/man1/
40mkdir -p %{buildroot}%{_datadir}/%{name}/translations
41mkdir -p %{buildroot}%{_datadir}/%{name}/icons/
42install -p -m 644 release/%{name}.exe %{buildroot}%{_bindir}/
43install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
44install -p -m 644 doc/%{name}.1 %{buildroot}%{_mandir}/man1/
45install -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
Note: See TracBrowser for help on using the repository browser.