| 1 | Name: simsu
|
|---|
| 2 | Version: 1.3.4
|
|---|
| 3 | Release: 4%{?dist}
|
|---|
| 4 | Summary: Basic Sudoku game
|
|---|
| 5 | License: GPLv3+
|
|---|
| 6 | URL: 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 |
|
|---|
| 10 | BuildRequires: qt5-qttools-devel
|
|---|
| 11 |
|
|---|
| 12 | %description
|
|---|
| 13 | Simsu 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
|
|---|
| 15 | where to place numbers, you can highlight all instances of a number.
|
|---|
| 16 | You can also check your answers for correctness while playing. The game
|
|---|
| 17 | stores your current notes and answers, so that you can pick up where you
|
|---|
| 18 | left 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
|
|---|
| 25 | export QMAKE_SH=$SHELL
|
|---|
| 26 | export FAST_BUILD=1
|
|---|
| 27 | LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 28 |
|
|---|
| 29 | %{qmake_qt5} PREFIX=%{_prefix}
|
|---|
| 30 | make %{?_smp_mflags}
|
|---|
| 31 |
|
|---|
| 32 | %install
|
|---|
| 33 | #make install INSTALL_ROOT=%{buildroot}
|
|---|
| 34 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 35 | mkdir -p %{buildroot}%{_bindir}/
|
|---|
| 36 | mkdir -p %{buildroot}%{_mandir}/man6/
|
|---|
| 37 | mkdir -p %{buildroot}%{_datadir}/%{name}/translations
|
|---|
| 38 | install -p -m 644 release/%{name}.exe %{buildroot}%{_bindir}/
|
|---|
| 39 | install -p -m 644 translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
|
|---|
| 40 | install -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
|
|---|