Martin Stransky d6e29c1
Name:           berusky2
c7d5a98
Version:        0.12
f2166ae
Release:        6%{?dist}
Martin Stransky d6e29c1
License:        GPLv2+
Martin Stransky d6e29c1
Summary:        Sokoban clone
c7d5a98
Source:         http://www.anakreon.cz/download/%{name}-%{version}.tar.gz
Martin Stransky ba9bca4
Source1:        berusky2.appdata.xml
Martin Stransky ba9bca4
Source2:        berusky2.png
Martin Stransky d6e29c1
URL:            http://www.anakreon.cz/en/Berusky2.htm
Martin Stransky d6e29c1
c7d5a98
Requires:       berusky2-data >= 0.12
36c2168
BuildRequires:  gcc-c++
Igor Gnatenko 19c3541
BuildRequires:  gcc
Martin Stransky d6e29c1
BuildRequires:  SDL-devel
Martin Stransky d6e29c1
BuildRequires:  SDL_image-devel
Martin Stransky d6e29c1
BuildRequires:  gtk2-devel
Martin Stransky d6e29c1
BuildRequires:  desktop-file-utils
Martin Stransky 0634420
BuildRequires:  freealut-devel
Martin Stransky 0634420
BuildRequires:  openal-soft-devel
Martin Stransky 0634420
BuildRequires:  libvorbis-devel
d61c4c7
BuildRequires: make
296801a
ExclusiveArch:  %{ix86} x86_64 %{arm} aarch64 %{mips}
Martin Stransky d6e29c1
Martin Stransky d6e29c1
%description
Martin Stransky d6e29c1
Berusky 2 is a game that challenges your visual/spatial thinking
Martin Stransky d6e29c1
and ability to find a way to resolve a logic task. Using five bugs,
Martin Stransky d6e29c1
you'll go through an adventure full of various puzzles spread across
Martin Stransky d6e29c1
nine episodes. Individual episodes differ in appearance and difficulty,
Martin Stransky d6e29c1
which increases throughout the game.
Martin Stransky d6e29c1
Martin Stransky d6e29c1
%prep
Martin Stransky d6e29c1
%setup -q
Martin Stransky d6e29c1
Martin Stransky d6e29c1
%build
5aa0727
#Uncomment to produce a debug build
cb4c59a
#OPT_FLAGS=$(echo "$RPM_OPT_FLAGS" | %{__sed} -e 's/-O2//')
cb4c59a
#export CXXFLAGS=$OPT_FLAGS
cb4c59a
#export CFLAGS=$OPT_FLAGS
cb4c59a
%configure
Martin Stransky d6e29c1
Martin Stransky d6e29c1
make %{?_smp_mflags}
Martin Stransky d6e29c1
Martin Stransky d6e29c1
%install
Martin Stransky d6e29c1
make DESTDIR=%{buildroot} install
Martin Stransky d6e29c1
Martin Stransky d6e29c1
# Move documentation so it can get installed to the right place.
Martin Stransky d6e29c1
mkdir _tmpdoc
Martin Stransky d6e29c1
mv %{buildroot}%{_usr}/doc/%{name}/* _tmpdoc/
Martin Stransky d6e29c1
rm -f _tmpdoc/INSTALL
Martin Stransky d6e29c1
Martin Stransky d6e29c1
# Install ini file
Martin Stransky d6e29c1
mkdir -p %{buildroot}%{_var}/games/%{name}
Martin Stransky d6e29c1
install -pm 644 %{buildroot}/%{_datadir}/%{name}/berusky3d.ini \
Martin Stransky d6e29c1
                %{buildroot}%{_var}/games/%{name}
Martin Stransky d6e29c1
Martin Stransky d6e29c1
# Install icon and desktop file
Martin Stransky ba9bca4
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
Martin Stransky ba9bca4
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
Martin Stransky d6e29c1
Martin Stransky d6e29c1
desktop-file-install --dir %{buildroot}/%{_datadir}/applications \
Martin Stransky d6e29c1
                     --add-category X-Fedora %{buildroot}/%{_datadir}/%{name}/berusky2.desktop
Martin Stransky d6e29c1
Martin Stransky d6e29c1
# Remove directory that will be owned by data package.
Martin Stransky d6e29c1
rm -rf %{buildroot}/%{_datadir}/%{name}
Martin Stransky d6e29c1
Martin Stransky ba9bca4
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata/
Martin Stransky ba9bca4
cp %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata/
Martin Stransky ba9bca4
Martin Stransky d6e29c1
%files
Martin Stransky d6e29c1
%doc _tmpdoc/*
Martin Stransky d6e29c1
%{_bindir}/berusky2
Martin Stransky d6e29c1
%{_datadir}/applications/berusky2.desktop
Martin Stransky ba9bca4
%{_datadir}/icons/hicolor/128x128/apps/berusky2.png
Martin Stransky ba9bca4
%{_datadir}/appdata/berusky2.appdata.xml
Martin Stransky d6e29c1
%dir %{_var}/games/%{name}
Martin Stransky d6e29c1
%{_var}/games/%{name}/*
Martin Stransky d6e29c1
Martin Stransky d6e29c1
%changelog
f2166ae
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-6
f2166ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
f2166ae
b010890
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-5
b010890
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b010890
42c81d6
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-4
42c81d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
42c81d6
1ee3676
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-3
1ee3676
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1ee3676
569c312
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-2
569c312
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
569c312
c7d5a98
* Tue Jun 30 2020 Martin Stransky <stransky@redhat.com> 0.12-1
c7d5a98
- Updated to 0.12
c7d5a98
5aa0727
* Wed Mar 04 2020 Martin Stransky <stransky@redhat.com> 0.11-3
5aa0727
- More fixes from https://notabug.org/AsDaGo
5aa0727
cb4c59a
* Mon Feb 24 2020 Martin Stransky <stransky@redhat.com> 0.11-2
cb4c59a
- More fixes from 0.11
cb4c59a
9c62e5c
* Fri Feb 21 2020 Martin Stransky <stransky@redhat.com> 0.11-1
53e4f31
- Updated to 0.11
53e4f31
b7ab6e7
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-22
b7ab6e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b7ab6e7
bc28736
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-21
bc28736
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bc28736
0a0a695
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-20
0a0a695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0a0a695
b979368
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-19
b979368
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b979368
61c67e6
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-18
61c67e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
61c67e6
95b7423
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.10-17
95b7423
- Remove obsolete scriptlets
95b7423
2a7b3a3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-16
2a7b3a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2a7b3a3
0937337
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-15
0937337
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0937337
296801a
* Wed Jul 12 2017 Michal Toman <mtoman@fedoraproject.org> 0.10-14
296801a
- Enable on MIPS
296801a
8d3eef3
* Fri Jun 30 2017 Martin Stransky <stransky@redhat.com> 0.10-13
8d3eef3
- gcc7 build fix
2194c07
- mmalloc link patch
8d3eef3
7d6c51c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-12
7d6c51c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7d6c51c
b3e6270
* Sun Feb 14 2016 Martin Stransky <stransky@redhat.com> 0.10-11
b3e6270
- gcc6 build fix
b3e6270
a468ae5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-10
a468ae5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a468ae5
Martin Stransky 28b0b7e
* Mon Jan 11 2016 Martin Stransky <stransky@redhat.com> 0.10-9
Martin Stransky 9e8ad55
- fixes more animation crashes (water, teleports, lifts)
Martin Stransky 9e8ad55
8211d08
* Wed Dec 30 2015 Martin Stransky <stransky@redhat.com> 0.10-8
Martin Stransky 9e8ad55
- fixes animation crashes
8211d08
1750544
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-7
1750544
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1750544
c32b1a2
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.10-6
c32b1a2
- Rebuilt for GCC 5 C++11 ABI change
c32b1a2
Martin Stransky ba9bca4
* Fri Nov 7 2014 Martin Stransky <stransky@redhat.com> 0.10-5
Martin Stransky ba9bca4
- Added appdata file
Martin Stransky ba9bca4
82915a0
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
82915a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
82915a0
03702b0
* Thu Jun 19 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.10-3
03702b0
- Build on aarch64
03702b0
32b47b3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2
32b47b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
32b47b3
Martin Stransky 8b16e17
* Sat Jan 18 2014 Martin Stransky <stransky@redhat.com> 0.10-1
Martin Stransky 8b16e17
- Updated to 0.10
Martin Stransky 8b16e17
b45bfa8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
b45bfa8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b45bfa8
Martin Stransky 1082ae2
* Sun Feb 24 2013 Martin Stransky <stransky@redhat.com> 0.9-1
Martin Stransky 802d25a
- Updated to 0.9
Martin Stransky 802d25a
Martin Stransky 1a4d57a
* Sun Dec 16 2012 Martin Stransky <stransky@redhat.com> 0.8-2
Martin Stransky 1a4d57a
- Updated to 0.8
Martin Stransky 1a4d57a
Martin Stransky 1a4d57a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-3
Martin Stransky 1a4d57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Martin Stransky 1a4d57a
Martin Stransky 1a4d57a
* Wed May  2 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.7-2
Martin Stransky 1a4d57a
- Build on ARM too
Martin Stransky 1a4d57a
Martin Stransky 55007f9
* Wed Mar 28 2012 Martin Stransky <stransky@redhat.com> 0.7-1
Martin Stransky 55007f9
- Updated to 0.7
Martin Stransky 55007f9
Martin Stransky d062ecd
* Mon Mar 5 2012 Martin Stransky <stransky@redhat.com> 0.6.1-1
Martin Stransky d062ecd
- Updated to 0.6.1
Martin Stransky d062ecd
Martin Stransky 0634420
* Sun Mar 4 2012 Martin Stransky <stransky@redhat.com> 0.6-1
Martin Stransky 0634420
- Updated to 0.6
Martin Stransky 0634420
8afbced
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-2
8afbced
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8afbced
Martin Stransky d6e29c1
* Wed Sep 7 2011 Martin Stransky <stransky@redhat.com> 0.5-1
Martin Stransky d6e29c1
- Updated to 0.5
Martin Stransky d6e29c1
Martin Stransky d6e29c1
* Tue Aug 30 2011 Martin Stransky <stransky@redhat.com> 0.4-1
Martin Stransky d6e29c1
- new upstream version
Martin Stransky d6e29c1
- spec clean-up (by Richard Shaw)
Martin Stransky d6e29c1
Martin Stransky d6e29c1
* Mon Aug 22 2011 Martin Stransky <stransky@redhat.com> 0.3-3
Martin Stransky d6e29c1
- spec polished
Martin Stransky d6e29c1
Martin Stransky d6e29c1
* Mon Aug 15 2011 Martin Stransky <stransky@redhat.com> 0.3-2
Martin Stransky d6e29c1
- fixed ini file location
Martin Stransky d6e29c1
Martin Stransky d6e29c1
* Mon Aug 15 2011 Martin Stransky <stransky@redhat.com> 0.3-1
Martin Stransky d6e29c1
- initial build