summaryrefslogtreecommitdiff
path: root/RPM/kopieckreta.spec
blob: 23f3487c531fdb293a54c291781fb1977936c82e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
# spec file for package kopieckreta
#
# 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.230924-4
Name:           kopieckreta
Version:		0.230924
Release:        4
Summary:    	My version of the Pyramid of Words
License:        GPL
URL:            https://pietraszczyk.smallhost.pl
Source0:	%{name}-%{unmangled_version}.tar.gz

%if 0%{?suse_version} > 1600
BuildRequires:	java-21-openjdk, ant
Requires:       java-21-openjdk
%endif
%if 0%{?sle_version} >= 150400 && 0%{?is_opensuse}
BuildRequires:	java-11-openjdk, ant
Requires:       java-11-openjdk
%endif
%if 0%{?fedora} >= 37
BuildRequires:	java-latest-openjdk, ant
Requires:		java-latest-openjdk
%endif

BuildArch:	noarch

%description


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

%build
ant compile
ant jar

%install
mkdir -p %{buildroot}/usr
mkdir -p %{buildroot}/usr/games
mkdir -p %{buildroot}/usr/share
mkdir -p %{buildroot}/usr/share/kopieckreta
mkdir -p %{buildroot}/usr/share/kopieckreta/icons
mkdir -p %{buildroot}/usr/share/applications

#%make_install

install -m 0644 build/jar/KopiecKreta.jar %{buildroot}/usr/games
install -m 0644 kopieckreta.png %{buildroot}/usr/share/kopieckreta/icons
install -m 0644 KopiecKreta.desktop %{buildroot}/usr/share/applications

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

%changelog