-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.spec
More file actions
59 lines (43 loc) · 1.27 KB
/
package.spec
File metadata and controls
59 lines (43 loc) · 1.27 KB
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
54
55
56
57
58
59
Name: @@PKG_NAME@@
Version: @@PKG_VERSION@@
Release: @@PKG_RELEASE@@%{?dist}
Summary: Trying to build using LTS
Group: System Environment/Development Tools
License: BSD
URL: https://website.com
Source0: all-pkg.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: stackage-dist-@@RESOLVER@@-downloads
BuildRequires: stackage-dist-@@RESOLVER@@-stack
BuildRequires: stackage-dist-@@RESOLVER@@-indices
#-----
BuildRequires: git
BuildRequires: libicu-devel
BuildRequires: zlib-devel
BuildRequires: openssl-devel
BuildRequires: gmp-devel
BuildRequires: pcre-devel
%description
%global debug_package %{nil}
%prep
tar -zxf %{_sourcedir}/all-pkg.tar.gz
%build
STACKAGE_DIST_ROOT=%{_prefix}/%{_lib}/stackage-dist-@@RESOLVER@@
export PATH=${STACKAGE_DIST_ROOT}/bin:$PATH
export STACK_ROOT=`pwd`/.stack
mkdir ${STACK_ROOT}
cat << EOF > ${STACK_ROOT}/config.yaml
download-cache-paths:
- ${STACKAGE_DIST_ROOT}/download-cache
- ${STACK_ROOT}/download-cache
EOF
mkdir -p ${STACK_ROOT}/indices/Hackage/
ln -s ${STACKAGE_DIST_ROOT}/indices/Hackage/* ${STACK_ROOT}/indices/Hackage/
cd All
stack setup
stack build
%install
export STACK_ROOT=`pwd`/.stack
cd All
%files
%changelog