File crystal.spec of Package crystal

#
# spec file for package crystal
#
# Copyright (c) 2023 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/
#


%global version_suffix 1.18
%global version_current 1.18.2

Name:           crystal
Version:        %{version_current}
Release:        0
License:        Apache-2.0
Summary:        A programming language for humans and computers
URL:            https://github.com/crystal-lang/crystal
Source0:        README
# Crystal is technically not required to build. Instead, this serves as a dynamic check for whether the crystal* package has been built for the current architecture.
BuildRequires:  crystal%{version_suffix}
Requires:       crystal%{version_suffix}
Recommends:     shards
BuildArch:      noarch

%description
Crystal is a general-purpose, object-oriented programming language.
With syntax inspired by Ruby, it is a compiled language with static type-checking,
serving both, humans and computers.

%prep

%build

%install
install -D -m 0644 %{S:0} "%{buildroot}%{_datadir}/doc/packages/crystal/README"

%files
%doc %{_datadir}/doc/packages/crystal

%changelog
openSUSE Build Service is sponsored by