Skip to content

Commit 1f5fb61

Browse files
committed
Fix version format in fedora/crystal.spec when version contains hyphens
1 parent fe5e80c commit 1f5fb61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fedora/crystal.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: crystal
2-
Version: %{getenv:crystal_version}
2+
Version: %(echo %{getenv:crystal_version} | tr '-' '.')
33
Release: %{getenv:pkg_revision}%{?dist}
44
Summary: A general-purpose, object-oriented programming language
55
License: Apache-2.0
@@ -29,7 +29,7 @@ Crystal is a programming language with the following goals:
2929
- Compile to efficient native code
3030

3131
%prep
32-
%setup -q -b 1
32+
%setup -q -n crystal-%{getenv:crystal_version} -b 1
3333

3434
%build
3535
# Build Crystal

0 commit comments

Comments
 (0)