23
|
1 #
|
|
2 # spec file for package kopieckreta
|
|
3 #
|
|
4 # Copyright (c) 2020 SUSE LLC
|
|
5 #
|
|
6 # All modifications and additions to the file contributed by third parties
|
|
7 # remain the property of their copyright owners, unless otherwise agreed
|
|
8 # upon. The license for this file, and modifications and additions to the
|
|
9 # file, is the same license as for the pristine package itself (unless the
|
|
10 # license for the pristine package is not an Open Source License, in which
|
|
11 # case the license is the MIT License). An "Open Source License" is a
|
|
12 # license that conforms to the Open Source Definition (Version 1.9)
|
|
13 # published by the Open Source Initiative.
|
|
14
|
|
15 # Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
16 #
|
|
17
|
|
18 %define unmangled_version 0.230924-0
|
|
19 Name: kopieckreta
|
|
20 Version: 0.230924
|
|
21 Release: 0
|
|
22 Summary: My version of the Pyramid of Words
|
|
23 License: GPL
|
|
24 URL: https://prymula.ct8.pl
|
|
25 Source0: %{name}-%{unmangled_version}.tar.gz
|
|
26 %if 0%{?suse_version}==1530
|
|
27 BuildRequires: java-11-openjdk, ant
|
|
28 Requires: java-11-openjdk
|
|
29 %else
|
|
30 BuildRequires: java-11-openjdk, ant
|
|
31 Requires: java-11-openjdk
|
|
32 %endif
|
|
33 BuildArch: noarch
|
|
34
|
|
35 %description
|
|
36
|
|
37
|
|
38 %prep
|
|
39 %setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
|
|
40
|
|
41 %build
|
|
42 ant compile
|
|
43 ant jar
|
|
44
|
|
45 %install
|
|
46 mkdir -p %{buildroot}/usr
|
|
47 mkdir -p %{buildroot}/usr/games
|
|
48 mkdir -p %{buildroot}/usr/share
|
|
49 mkdir -p %{buildroot}/usr/share/kopieckreta
|
|
50 mkdir -p %{buildroot}/usr/share/kopieckreta/icons
|
|
51 mkdir -p %{buildroot}/usr/share/applications
|
|
52
|
|
53 #%make_install
|
|
54
|
|
55 install -m 0644 build/jar/KopiecKreta.jar %{buildroot}/usr/games
|
|
56 install -m 0644 kopieckreta.png %{buildroot}/usr/share/kopieckreta
|
|
57 install -m 0644 KopiecKreta.desktop %{buildroot}/usr/share/applications
|
|
58
|
|
59 %files
|
|
60 %defattr(0755,root,root)
|
|
61 /usr/games/
|
|
62 %{_datadir}/kopieckreta
|
|
63 %defattr(0644,root,root)
|
|
64 /usr/games/KopiecKreta.jar
|
|
65 %{_datadir}/kopieckreta/kopieckreta.png
|
|
66 %{_datadir}/applications/KopiecKreta.desktop
|
|
67
|
|
68 %changelog
|