source: spec/trunk/SPECS/simsu.spec@ 1697

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

spec: simsu: Release version 1.3.4-1

File size: 2.5 KB
Line 
1Name: simsu
2Version: 1.3.4
3Release: 4%{?dist}
4Summary: Basic Sudoku game
5License: GPLv3+
6URL: http://gottcode.org/%{name}/
7#Source0: http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2
8%scm_source github https://github.com/gottcode/simsu master
9
10BuildRequires: qt5-qttools-devel
11
12%description
13Simsu is a basic Sudoku game. You can switch between filling in notes
14(pencil mode), or filling in answers (pen mode). To make it easier to see
15where to place numbers, you can highlight all instances of a number.
16You can also check your answers for correctness while playing. The game
17stores your current notes and answers, so that you can pick up where you
18left off the next time you play.
19
20%prep
21%scm_setup
22
23%build
24# do a fast qt build, as runmapsym and wmapsym is not needed here
25export QMAKE_SH=$SHELL
26export FAST_BUILD=1
27LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
28
29%{qmake_qt5} PREFIX=%{_prefix}
30make %{?_smp_mflags}
31
32%install
33#make install INSTALL_ROOT=%{buildroot}
34make DESTDIR=$RPM_BUILD_ROOT install
35mkdir -p %{buildroot}%{_bindir}/
36mkdir -p %{buildroot}%{_mandir}/man6/
37mkdir -p %{buildroot}%{_datadir}/%{name}/translations
38install -p -m 644 release/%{name}.exe %{buildroot}%{_bindir}/
39install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
40install -p -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/
41
42# Generate and install localized man pages
43#mkdir -p man/de
44#po4a-translate -M utf-8 -f man \
45# --option groff_code=verbatim \
46# -m doc/%{name}.6 -p %SOURCE1 \
47# -l man/de/%{name}.6
48
49#mkdir -p %{buildroot}/%{_mandir}/de/man6
50#install -p -m 0644 man/de/%{name}.6 %{buildroot}/%{_mandir}/de/man6
51
52%find_lang %{name} --with-qt --without-mo --with-man
53
54%check
55#desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop || :
56#appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml || :
57
58%files -f %{name}.lang
59%doc CREDITS INSTALL README
60%license COPYING
61%{_bindir}/%{name}.exe
62#%{_datadir}/metainfo/%{name}.appdata.xml
63#%{_datadir}/applications/%{name}.desktop
64%dir %{_datadir}/%{name}/
65%dir %{_datadir}/%{name}/translations
66#%{_datadir}/icons/hicolor/*/apps/%{name}.*
67#%{_datadir}/pixmaps/%{name}.xpm
68%{_mandir}/man6/%{name}.6.*
69
70%changelog
71* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.4-4
72- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Note: See TracBrowser for help on using the repository browser.