File bygfoot.spec of Package bygfoot
#
# spec file for package bygfoot
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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: bygfoot
Version: 2.3.2
Release: 0
Summary: Football (Soccer) Management Game
License: GPL-2.0
Group: Amusements/Games/Action/Other
Url: http://bygfoot.sourceforge.net/
Source: http://prdownloads.sourceforge.net/bygfoot/bygfoot-%{version}.tar.bz2
Source1: bygfoot.desktop
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0: bygfoot-libm.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: glib2-devel
BuildRequires: glibc-devel
BuildRequires: gtk2-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Bygfoot is a football (a.k.a. soccer) management game for Linux and other UNIX
look-alikes. It is an original concept by G. Both and has been improved with
suggestions by players from all over the world.
Bygfoot allows you to manage a team by training the players, buying and
selling them, contracting loans, maintaining the stadium, etc. You can be
promoted or relegated, even become a champion. It includes a "team editor"
which you can use to create your own teams or edit the existing ones. The game
is deliberately kept simple (though not easy): you only have to keep one eye
at your players and another at your stadium.
%prep
%setup -q
%patch0 -p1
%build
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
mv "%{buildroot}%{_datadir}/locale/pt_PT" \
"%{buildroot}%{_datadir}/locale/pt"
mv "%{buildroot}%{_datadir}/locale/zh" \
"%{buildroot}%{_datadir}/locale/zh_CN"
install -D -m 0644 support_files/pixmaps/bygfoot_icon.png \
"%{buildroot}%{_datadir}/pixmaps/bygfoot.png"
install -D -m 0644 "%{SOURCE1}" \
"%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Game SportsGame
%fdupes -s "%{buildroot}%{_datadir}/bygfoot/support_files/pixmaps"
%find_lang "%{name}"
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README TODO
%{_bindir}/bygfoot
%{_datadir}/bygfoot
%{_datadir}/pixmaps/bygfoot.png
%{_datadir}/applications/bygfoot.desktop
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
%changelog