File game-data-packager.spec of Package game-data-packager

#
# spec file for package game-data-packager.spec
#
# Copyright (c) 2016 SUSE LINUX 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:           game-data-packager
Version:        45
Release:        0
Summary:        Installer for game data files
License:        GPL-2.0 and GPL-2.0+
Url:            https://wiki.debian.org/Games/GameDataPackager
Source:         http://http.debian.net/debian/pool/contrib/g/game-data-packager/game-data-packager_%{version}.tar.xz
BuildRequires:  ImageMagick
BuildRequires:  inkscape
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-PyYAML
BuildRequires:  python3-pyflakes
BuildRequires:  zip
BuildRequires:  openSUSE-release
BuildRequires:  update-desktop-files
Requires:       python3-PyYAML
Recommends:     innoextract
Recommends:     lgogdownloader
Suggests:       arj
Suggests:       cabextract
Suggests:       cdparanoia
Suggests:       lha
Suggests:       p7zip-plugins
Suggests:       steam
Suggests:       unar
Suggests:       unrar
Suggests:       unshield
Suggests:       unzip
Suggests:       vorbis-tools
Suggests:       xdelta
BuildArch:      noarch

%description
Various games are divided into two logical parts: engine and data.

game-data-packager is a tool which builds .rpm files for game
data which cannot be distributed (such as commercial game data).

%package -n doom2-masterlevels
Summary:        "Master Levels for Doom II" launcher
Requires:       gobject-introspection
Requires:       python3-gobject-base

%description -n doom2-masterlevels
This GUI let you select a WAD to play & show it's description.

%prep
%autosetup

%build
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} bindir=%{_bindir} datadir=%{_datadir} install
find %{buildroot}%{_datadir}/game-data-packager/game_data_packager -name '*.py' -exec chmod 755 {} \;

find %{buildroot}%{_sysconfdir}/game-data-packager -empty -exec sh -c "echo '# we need more mirrors' > {}" \;

# TODO resolve AppArmor problems
rm -rvf %{buildroot}%{_sysconfdir}/apparmor.d

%suse_update_desktop_file -r doom2-masterlevels Game ActionGame

%check
make %{?_smp_mflags} check

%post -n doom2-masterlevels
%desktop_database_post

%postun -n doom2-masterlevels
%desktop_database_postun

%files
%defattr(-,root,root)
%doc COPYING
%doc doc/adding_a_game.mdwn
%{_mandir}/man6/game-data-packager.*
%{_mandir}/fr/man6/game-data-packager.*
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/game-data-packager.conf
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/game-data-packager/
%{_bindir}/game-data-packager
%dir %{_datadir}/bash-completion/
%dir %{_datadir}/bash-completion/completions/
%{_datadir}/bash-completion/completions/game-data-packager
%{_datadir}/game-data-packager

%files -n doom2-masterlevels
%defattr(-,root,root)
%doc COPYING
%{_mandir}/man6/doom2-masterlevels.*
%{_bindir}/doom2-masterlevels
%{_datadir}/applications/doom2-masterlevels.desktop
%{_datadir}/pixmaps/doom2-masterlevels.png

%changelog
openSUSE Build Service is sponsored by