From d8afc9f5c2aa97a96ca326c0178a7fc9577afaaf Mon Sep 17 00:00:00 2001 From: Przemyslaw Date: Mon, 1 Apr 2024 09:02:22 +0200 Subject: Init --- RPM/kopieckreta.spec | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 RPM/kopieckreta.spec (limited to 'RPM/kopieckreta.spec') diff --git a/RPM/kopieckreta.spec b/RPM/kopieckreta.spec new file mode 100644 index 0000000..c3b6171 --- /dev/null +++ b/RPM/kopieckreta.spec @@ -0,0 +1,68 @@ +# +# 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-0 +Name: kopieckreta +Version: 0.230924 +Release: 0 +Summary: My version of the Pyramid of Words +License: GPL +URL: https://prymula.ct8.pl +Source0: %{name}-%{unmangled_version}.tar.gz +%if 0%{?suse_version}==1530 +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 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 +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/kopieckreta.png +%{_datadir}/applications/KopiecKreta.desktop + +%changelog -- cgit v1.2.3