/[packages]/cauldron/spack/current/SPECS/spack.spec
ViewVC logotype

Annotation of /cauldron/spack/current/SPECS/spack.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1618811 - (hide annotations) (download)
Tue Aug 25 00:46:59 2020 UTC (4 years, 1 month ago) by joequant
File size: 2519 byte(s)
add more packages

1 joequant 1586418 %global debug_package %{nil}
2 joequant 1613841 %global __requires_exclude_from ^.*\.fish$
3 joequant 1586418
4     Name: spack
5     Summary: A flexible package manager
6 joequant 1614198 Version: 0.15.4
7 joequant 1615764 Release: %mkrel 4
8 joequant 1586418
9     License: MIT
10     URL: https://spack.io/
11     Source0: https://github.com/spack/spack/releases/download/v%{version}/spack-%{version}.tar.gz
12 joequant 1587039 Patch0: find-path-prefix.patch
13 joequant 1586418 Group: System/Packaging
14    
15 joequant 1587041 BuildRequires: python3
16 joequant 1613807 Requires(pre): shadow-utils
17 joequant 1613821 Requires: curl
18 joequant 1613825 Requires: tar
19     Requires: make
20     Requires: glibc-static-devel
21     Requires: glibc-devel
22 joequant 1613841 Requires: fish
23 joequant 1613919 Requires: patch
24 joequant 1614203 Requires: zip
25 joequant 1614543 Requires: gcc-gfortran
26     Requires: gcc-c++
27 joequant 1615764 Requires: libstdc++-static-devel
28 joequant 1618811 Requires: cmake
29     Requires: tar
30     Requires: gzip
31     Requires: bzip2
32 joequant 1586418 BuildArch: noarch
33 joequant 1587039 Recommends: spack-repos
34 joequant 1586418
35     %description
36 daviddavid 1596590 Spack is a package manager for supercomputers, Linux, and macOS.
37     It makes installing scientific software easy. Spack isn’t tied to
38     a particular language; you can build a software stack in Python
39     or R, link to libraries written in C, C++, or Fortran, and easily
40     swap compilers or target specific microarchitectures.
41 joequant 1586418
42 joequant 1587039 %package docs
43     Summary: A flexible package manager
44     Group: Documentation
45    
46     %description docs
47 daviddavid 1596590 Documentation for spack.
48 joequant 1587039
49     %package repos
50     Summary: A flexible package manager
51     Group: System/Packaging
52    
53     %description repos
54 daviddavid 1596590 Repository for spack.
55 joequant 1587039
56    
57 joequant 1586418 %prep
58 joequant 1587039 %autosetup -p1 spack-%{version}
59 joequant 1586418
60     %build
61    
62     %install
63     mkdir -p %{buildroot}%{_prefix}
64     cp -r lib %{buildroot}%{_prefix}/lib
65     mkdir -p %{buildroot}%{_bindir}
66     cp -r bin/* %{buildroot}%{_bindir}
67     mkdir -p %{buildroot}%{_datadir}
68     cp -r share/* %{buildroot}%{_datadir}
69     cp -r etc %{buildroot}
70     cp -r var %{buildroot}
71 joequant 1598810 mkdir -p %{buildroot}/opt/spack
72     mkdir -p %{buildroot}/%{_var}/spack/cache
73 joequant 1586418
74 joequant 1598810 %pre
75     getent group spack >/dev/null || groupadd -r spack
76     getent passwd spack >/dev/null || \
77     useradd -c "Spack package manager" -g spack -d %{_localstatedir}/lib/spack -M -r -s /sbin/nologin spack
78 joequant 1613841 mkdir -p /opt/spack
79 joequant 1613816 chown spack:spack /opt/spack
80 joequant 1613893 chmod ug+rwx /opt/spack
81 joequant 1598810 exit 0
82    
83 joequant 1586418 %files
84 joequant 1598810 %attr(0775,spack,spack) %{_prefix}/lib/spack
85     %attr(0775,spack,spack) %{_datadir}/spack
86 joequant 1586418 %{_sysconfdir}/spack
87     %{_bindir}/sbang
88     %{_bindir}/spack
89     %{_bindir}/spack-python
90 joequant 1598810 %attr(0775,spack,spack) %{_var}/spack
91     %dir %attr(0775,spack,spack) %{_var}/spack/cache
92 joequant 1587039 %exclude %{_prefix}/lib/spack/docs
93 joequant 1599001 %exclude %{_prefix}/lib/spack/spack/test
94 joequant 1587039 %dir %{_var}/spack/repos
95     %exclude %{_var}/spack/repos/*
96    
97     %files docs
98     %{_prefix}/lib/spack/docs
99 joequant 1599001 %{_prefix}/lib/spack/spack/test
100 joequant 1587039
101     %files repos
102     %{_var}/spack/repos/*

  ViewVC Help
Powered by ViewVC 1.1.30