annotate kopieckreta/RPM/kopieckreta.spec @ 24:c7e131ce2f14

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