Stefan Posdzich ce15f9c
Name:           barrage
681507b
Version:        1.0.7
0c111bf
Release:        2%{?dist}
Stefan Posdzich ce15f9c
Summary:        Kill and destroy as many targets as possible within 3 minutes
Stefan Posdzich ce15f9c
a06ff0b
License:        GPL-2.0-or-later
Stefan Posdzich ce15f9c
URL:            http://lgames.sourceforge.net/index.php?project=Barrage
Stefan Posdzich ce15f9c
Source0:        http://downloads.sourceforge.net/lgames/%{name}-%{version}.tar.gz
Stefan Posdzich ce15f9c
Source1:        %{name}.png
Jon Ciesla 571d926
Source2:	%{name}.desktop
893a36f
Patch0:         barrage-1.0.2-spelling.patch
893a36f
Patch1:         barrage-1.0.5-hiscore.patch
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
Requires:       hicolor-icon-theme
Igor Gnatenko 04f4c5a
BuildRequires:  gcc
Stefan Posdzich ce15f9c
BuildRequires:  SDL-devel SDL_mixer-devel desktop-file-utils
653d6b2
BuildRequires: make
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
%description
Stefan Posdzich ce15f9c
Barrage is a rather violent action game with the objective to kill
Stefan Posdzich ce15f9c
and destroy as many targets as possible within 3 minutes. The player
Stefan Posdzich ce15f9c
controls a gun that may either fire small or large grenades at
Stefan Posdzich ce15f9c
soldiers, jeeps and tanks. It is a very simple gameplay though it is
Stefan Posdzich ce15f9c
not that easy to get high scores.
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
%prep
Stefan Posdzich ce15f9c
%setup -q
893a36f
%patch0 -p0
893a36f
%patch1 -p0
Stefan Posdzich ce15f9c
# add Icon to desktop file
Stefan Posdzich ce15f9c
echo Icon=barrage >> barrage.desktop
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
%build
Stefan Posdzich ce15f9c
%configure
893a36f
find . -type f -name 'Makefile' | xargs sed -i s/-Werror=format-security//g
893a36f
%make_build %{?_smp_mflags}
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
%install
Stefan Posdzich ce15f9c
make install DESTDIR=$RPM_BUILD_ROOT
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
# below the desktop file and icon stuff
Jon Ciesla 571d926
desktop-file-install %{SOURCE2} \
Stefan Posdzich ce15f9c
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
Stefan Posdzich ce15f9c
        $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
install -p -m 0644 %{SOURCE1} \
Stefan Posdzich ce15f9c
           $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
Stefan Posdzich ce15f9c
Richard Hughes c35ace7
# Register as an application to be visible in the software center
Richard Hughes c35ace7
#
Richard Hughes c35ace7
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes c35ace7
# project, translated and installed into the right place during `make install`.
Richard Hughes c35ace7
#
Richard Hughes c35ace7
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes c35ace7
#
Richard Hughes c35ace7
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes c35ace7
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes c35ace7
Richard Hughes c35ace7
Richard Hughes c35ace7
Richard Hughes c35ace7
BugReportURL: https://sourceforge.net/p/lgames/support-requests/2/
Richard Hughes c35ace7
SentUpstream: 2014-09-24
Richard Hughes c35ace7
-->
Richard Hughes c35ace7
<application>
Richard Hughes c35ace7
  <id type="desktop">barrage.desktop</id>
Richard Hughes c35ace7
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes c35ace7
  <summary>A fast paced action game where you shoot down as many targets as possible</summary>
Richard Hughes c35ace7
  <description>
Richard Hughes c35ace7
    

Richard Hughes c35ace7
      Barrage is a fast paced shooter game where the objective is to destroy
Richard Hughes c35ace7
      targets like soldiers, tanks and jeeps within 3 minutes.
Richard Hughes c35ace7
    

Richard Hughes c35ace7
    

Richard Hughes c35ace7
      The player controls a gun that shoots small and large grenades at fast
Richard Hughes c35ace7
      moving targets and you need to manage your aim, ammo and re-load times carefully.
Richard Hughes c35ace7
    

Richard Hughes c35ace7
  </description>
Richard Hughes c35ace7
  <url type="homepage">http://lgames.sourceforge.net/index.php?project=Barrage</url>
Richard Hughes c35ace7
  <screenshots>
Richard Hughes c35ace7
    <screenshot type="default">http://lgames.sourceforge.net/Barrage/ss1.jpg</screenshot>
Richard Hughes c35ace7
    <screenshot>http://lgames.sourceforge.net/Barrage/ss0.jpg</screenshot>
Richard Hughes c35ace7
    <screenshot>http://lgames.sourceforge.net/Barrage/ss2.jpg</screenshot>
Richard Hughes c35ace7
  </screenshots>
Richard Hughes c35ace7
</application>
Richard Hughes c35ace7
EOF
Richard Hughes c35ace7
Jon Ciesla 571d926
rm -f $RPM_BUILD_ROOT%{_datadir}/icons/barrage48.gif
893a36f
rm -f $RPM_BUILD_ROOT%{_datadir}/icons/barrage48.png
Jon Ciesla 571d926
Stefan Posdzich ce15f9c
%files
893a36f
%license COPYING
893a36f
%doc AUTHORS BUGS ChangeLog README
Stefan Posdzich ce15f9c
%{_bindir}/%{name}
Stefan Posdzich ce15f9c
%{_datadir}/%{name}/
Richard Hughes c35ace7
%{_datadir}/appdata/%{name}.appdata.xml
Stefan Posdzich ce15f9c
%{_datadir}/applications/%{name}.desktop
Stefan Posdzich ce15f9c
%{_datadir}/icons/hicolor/*/apps/%{name}.png
893a36f
%{_var}/games/barrage.hscr
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
%changelog
0c111bf
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7-2
0c111bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
0c111bf
681507b
* Mon Jun 05 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.0.7-1
681507b
- 1.0.7
681507b
a06ff0b
* Sun Mar 05 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.0.6-3
a06ff0b
- migrated to SPDX license
a06ff0b
13b0902
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-2
13b0902
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
13b0902
f8e1703
* Mon Oct 31 2022 Gwyn Ciesla <gwync@protonmail.com> - 1.0.6-1
f8e1703
- 1.0.6
f8e1703
9c113e9
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-7
9c113e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9c113e9
539ac4a
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-6
539ac4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
539ac4a
6c9ce04
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-5
6c9ce04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
6c9ce04
587e2d1
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-4
587e2d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
587e2d1
92ce2f8
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-3
92ce2f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
92ce2f8
2ece9e8
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
2ece9e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2ece9e8
893a36f
* Fri Sep 06 2019 Gwyn Ciesla <gwync@protonmail.com> - 1.0.5-1
893a36f
- 1.0.5
893a36f
0b338d6
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-17
0b338d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0b338d6
d546284
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-16
d546284
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d546284
ff17028
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-15
ff17028
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ff17028
fbb9920
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-14
fbb9920
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fbb9920
ac3ebad
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.4-13
ac3ebad
- Remove obsolete scriptlets
ac3ebad
5e6b4a9
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-12
5e6b4a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5e6b4a9
c726d46
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-11
c726d46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c726d46
4b372ee
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-10
4b372ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4b372ee
49481e7
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-9
49481e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
49481e7
fecc3ef
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-8
fecc3ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fecc3ef
Richard Hughes c35ace7
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.0.4-7
Richard Hughes c35ace7
- Add an AppData file for the software center
Richard Hughes c35ace7
8743dbf
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-6
8743dbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8743dbf
7ebf96e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-5
7ebf96e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7ebf96e
9768390
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-4
9768390
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9768390
c9d7d8f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-3
c9d7d8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c9d7d8f
c465cce
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
c465cce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c465cce
40c6782
* Fri Feb 17 2012 Jon Ciesla <limburgher@gmail.com> - 1.0.4-1
40c6782
- New upstream.
40c6782
- Menu overflow patch upstreamed.
40c6782
3770d74
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-3
3770d74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3770d74
225200a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.3-2
225200a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
225200a
Jon Ciesla 571d926
* Wed Feb 02 2011 Jon Ciesla <limb@jcomserv.net> - 1.0.3-1
Jon Ciesla 571d926
- New upstream.
Jon Ciesla 571d926
- Switched to Source desktop, generation isn't working.
Jon Ciesla 571d926
36bca31
* Fri Mar 19 2010 Jon Ciesla <limb@jcomserv.net> - 1.0.2-7
36bca31
- Spelling fix.
36bca31
60cd9da
* Fri Mar 19 2010 Jon Ciesla <limb@jcomserv.net> - 1.0.2-6
60cd9da
- Fix for crash due to overflow in menu.
60cd9da
- Fix for DSOLink error.
60cd9da
28c096d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-5
28c096d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
28c096d
93949ef
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-4
93949ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
93949ef
Stefan Posdzich ce15f9c
* Fri Oct 31 2008 Stefan Posdzich <cheekyboinc@foresightlinux.org> - 1.0.2-3
Stefan Posdzich ce15f9c
- Fixed Source0 URL
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
* Sun Oct 26 2008 Stefan Posdzich <cheekyboinc@foresightlinux.org> - 1.0.2-2
Stefan Posdzich ce15f9c
- Add post and postun
Stefan Posdzich ce15f9c
- Add BUGS to doc
Stefan Posdzich ce15f9c
- Add desktop-file-install
Stefan Posdzich ce15f9c
- Change icon to 48x48
Stefan Posdzich ce15f9c
- Remove INSTALL from doc
Stefan Posdzich ce15f9c
Stefan Posdzich ce15f9c
* Sat Oct 25 2008 Stefan Posdzich <cheekyboinc@foresightlinux.org> - 1.0.2-1
Stefan Posdzich ce15f9c
- Initial SPEC file