view flappyufo/RPM/flappyufo.spec @ 25:404e262cd7e7 default tip

png rm
author Przemyslaw <prymula76@outlook.com>
date Mon, 01 Apr 2024 07:18:10 +0200
parents 8fa14e28f099
children
line wrap: on
line source

#
# spec file for package n00btetris
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

%define unmangled_version 0.230919-1
Name:           flappyufo
Version:		0.230919
Release:        1
Summary:    	Clone Flappy Bird from Android
License:        GPL
URL:            https://prymula.ct8.pl
Source0:	%{name}-%{unmangled_version}.tar.gz
%if 0%{?suse_version}==1550
BuildRequires:	java-11-openjdk, ant
Requires:       java-11-openjdk
%else
BuildRequires:	java-11-openjdk, ant
Requires:		java-11-openjdk
%endif
BuildArch:	noarch

%description


%prep
%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}

%build
ant clean
ant compile
ant jar

%install
#mkdir -p %{buildroot}/usr
mkdir -p %{buildroot}/usr/games
#mkdir -p %{buildroot}/usr/share
mkdir -p %{buildroot}/usr/share/flappyufo
mkdir -p %{buildroot}/usr/share/applications

#%make_install

install -m 0644 build/jar/FlappyUfo.jar %{buildroot}/usr/games
install -m 0644 res/flappyufo.png %{buildroot}/usr/share/flappyufo
install -m 0644 flappyufo.desktop %{buildroot}/usr/share/applications

%files
%defattr(0755,root,root)
%{_datadir}/flappyufo/
/usr/games/
%defattr(0644,root,root)
/usr/games/FlappyUfo.jar
%{_datadir}/flappyufo/flappyufo.png
%{_datadir}/applications/flappyufo.desktop

%changelog