forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec.template
53 lines (42 loc) · 1.36 KB
/
spec.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Name: @@{BASENAME}
Version: @@{CHAPEL_VERSION}
Release: @@{PACKAGE_VERSION}%{?dist}
ExclusiveArch: %{_arch}
Summary: Chapel
License: Apache-2.0
Source0: chapel-%{version}.tar.gz
Requires: bash perl git llvm-devel clang clang-devel python3 python3-devel make
%description
Chapel Programming Language
%global debug_package %{nil}
%prep
%setup -q -n chapel-%{version}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_prefix}
mkdir -p %{buildroot}/%{_prefix}/bin
mkdir -p %{buildroot}/%{_prefix}/lib
mkdir -p %{buildroot}/%{_prefix}/share
mkdir -p %{buildroot}/%{_prefix}/lib/cmake/chpl
# Binaries
cp %{_prefix}/bin/chpl %{buildroot}/%{_prefix}/bin/chpl
cp %{_prefix}/bin/chpldoc %{buildroot}/%{_prefix}/bin/chpldoc
cp %{_prefix}/bin/mason %{buildroot}/%{_prefix}/bin/mason
cp %{_prefix}/bin/chplcheck %{buildroot}/%{_prefix}/bin/chplcheck
cp %{_prefix}/bin/chpl-language-server %{buildroot}/%{_prefix}/bin/chpl-language-server
# Libraries
cp -r %{_prefix}/lib/chapel %{buildroot}/%{_prefix}/lib/chapel
cp -r %{_prefix}/lib/cmake/chpl %{buildroot}/%{_prefix}/lib/cmake
# CHPL_HOME
cp -r %{_prefix}/share/chapel %{buildroot}/%{_prefix}/share/chapel
%files
%{_prefix}/bin/chpl
%{_prefix}/bin/chpldoc
%{_prefix}/bin/mason
%{_prefix}/bin/chplcheck
%{_prefix}/bin/chpl-language-server
%{_prefix}/lib/chapel/*
%{_prefix}/share/chapel/*
%{_prefix}/lib/cmake/chpl/*
%changelog