diff options
author | Przemyslaw <prymula76@outlook.com> | 2024-04-01 09:01:24 +0200 |
---|---|---|
committer | Przemyslaw <prymula76@outlook.com> | 2024-04-01 09:01:24 +0200 |
commit | 18e499686d1c9991b65dc79272038b291bc14c5d (patch) | |
tree | 00b9d71f9c609e5e6fe990ea937822c3768032c9 /RPM |
Init
Diffstat (limited to 'RPM')
-rw-r--r-- | RPM/colorsmemory.spec | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/RPM/colorsmemory.spec b/RPM/colorsmemory.spec new file mode 100644 index 0000000..0a92fb1 --- /dev/null +++ b/RPM/colorsmemory.spec @@ -0,0 +1,66 @@ +# +# spec file for package colorsmemory +# +# 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.210503-2 +Name: colorsmemory +Version: 0.210503 +Release: 2 +Summary: My implementation Memory game +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/bin +mkdir -p %{buildroot}/usr/share +mkdir -p %{buildroot}/usr/share/colorsmemory +mkdir -p %{buildroot}/usr/share/applications + +#%make_install + +install -m 0644 build/jar/ColorsMemory.jar %{buildroot}/usr/bin +install -m 0644 colorsmemory.png %{buildroot}/usr/share/colorsmemory +install -m 0644 ColorsMemory.desktop %{buildroot}/usr/share/applications + +%files +%defattr(0755,root,root) +%{_datadir}/colorsmemory +%defattr(0644,root,root) +/usr/bin/ColorsMemory.jar +%{_datadir}/colorsmemory/colorsmemory.png +%{_datadir}/applications/ColorsMemory.desktop + +%changelog |