Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:games
lbreakout2
lbreakout2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lbreakout2.spec of Package lbreakout2
# # spec file for package lbreakout2 # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2009-2010 Pascal Bleser <pascal.bleser@opensuse.org> # Copyright (c) 2017 Pauline Emily <vilene@posteo.net> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: lbreakout2 Version: 2.6.5 Release: 0 Summary: Classic Breakout-Style Game Group: Amusements/Games/Action/Breakout License: GPL-2.0+ URL: http://lgames.sourceforge.net/index.php?project=LBreakout2 Source: %{name}-%{version}.tar.gz Source1: %{name}-levelsets-20160512.tar.gz Source2: lbreakout2.6 Source3: lbreakout2server.6 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: hicolor-icon-theme BuildRequires: ImageMagick BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(sdl) BuildRequires: pkgconfig(SDL_mixer) BuildRequires: update-desktop-files Requires(post): hicolor-icon-theme %if %{?suse_version} > 1320 Requires(post): user(games) %endif Requires(postun): hicolor-icon-theme %description A Breakout-style arcade game for Linux featuring a number of added graphical enhancements and effects. You control a paddle at the bottom of the playing field and must destroy bricks at the top by bouncing balls against them. %prep %setup -q %build export CFLAGS="%{optflags} -fno-strict-aliasing" %configure \ --docdir=%{_docdir}/%{name} \ --localstatedir=%{_localstatedir}/games make %{?_smp_mflags} %install %make_install # install levels tar -xf %{S:1} -C %{buildroot}%{_datadir}/%{name}/levels # install icons rm -rf %{buildroot}%{_datadir}/icons for size in 32 48; do icon_dir=%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps mkdir -p ${icon_dir} convert -strip lbreakout${size}.gif ${icon_dir}/%{name}.png done # install man pages install -d %{buildroot}%{_mandir}/man6 install -m 644 %{S:2} %{S:3} %{buildroot}%{_mandir}/man6 # fix name of the HTML documentation directory mv %{buildroot}%{_docdir}/%{name}/lbreakout2 \ %{buildroot}%{_docdir}/%{name}/html # fix desktop file sed -i "s/^\(Icon=\).*/\1%{name}/" \ %{buildroot}%{_datadir}/applications/%{name}.desktop %suse_update_desktop_file -r -G "Breakout-like Game" %{name} Game ArcadeGame # fix file modes find %{buildroot}%{_datadir}/%{name} -type f -exec chmod 0644 {} \; %find_lang %{name} %fdupes -s %{buildroot} %post %icon_theme_cache_post %postun %icon_theme_cache_postun %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog README TODO %doc %{_mandir}/man6/lbreakout2.6%{?ext_man} %doc %{_mandir}/man6/lbreakout2server.6%{?ext_man} %{_bindir}/lbreakout2 %{_bindir}/lbreakout2server %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_docdir}/%{name} %attr(664,games,games) %{_localstatedir}/games/%{name}.hscr %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor