File pathological.spec of Package pathological

#
# spec file for package pathological
#
# Copyright (c) 2012 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:           pathological
Summary:        Enriched python clone of the game "Logical"
License:        GPL-2.0
Group:          Amusements/Games
Version:        1.1.3
Release:        0
# repacked from http://downloads.sourceforge.net/project/pathological/%{name}/%{version}/%{name}-%{version}.tar.gz
Source:         %{name}-%{version}.tar.bz2
Source1:        %{name}
Source2:        %{name}.png
Source3:        %{name}.desktop
Patch0:         %{name}-home-hiscore.patch
Patch1:         python3.patch
Url:            http://pathological.sourceforge.net/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  update-desktop-files
BuildArch:      noarch
Requires:       python3-pygame

%description
Pathological is an enriched clone of the game "Logical" by Rainbow Arts.
To solve a level, fill each wheel with four marbles of matching color.

Various board elements such as teleporters, switches, filters, etc.,
make the game interesting and challenging.

New levels can be created using your favorite text editor.

%prep
%autosetup -p1

%build

%install
install -D -m 0755 %{SOURCE1} %{buildroot}/%{_bindir}/%{name}
install -D -m 0644 pathological.6.gz %{buildroot}/%{_mandir}/man6/%{name}.6.gz
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m 0755 pathological.py %{buildroot}%{_datadir}/%{name}/pathological.py
cp -r circuits graphics music sounds %{buildroot}%{_datadir}/%{name}/
rm -f %{buildroot}%{_datadir}/%{name}/graphics/*.xcf
rm -f %{buildroot}%{_datadir}/%{name}/sounds/*.orig
%suse_update_desktop_file %{name}

%files
%defattr(-,root,root,-)
%doc LICENSE README TODO changelog
%{_bindir}/%{name}
%doc %{_mandir}/man6/%{name}.6.gz
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

%changelog
openSUSE Build Service is sponsored by