forked from Sandia-OpenSHMEM/SOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsandia-openshmem.spec.in
104 lines (88 loc) · 2.61 KB
/
sandia-openshmem.spec.in
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
%{!?configargs: %global configargs %{nil}}
%{!?testdir: %global testdir %{buildroot}%{_datadir}/%{name}-%{version}/tests}
Name: sandia-openshmem
Version: @VERSION@
Release: 1%{?dist}
Summary: Sandia OpenSHMEM.
Group: OpenSHMEM
License: BSD
URL: https://github.com/Sandia-OpenSHMEM/SOS
Source0: %{name}-%{version}.tar.gz
%description
Sandia OpenSHMEM.
%package devel
Summary: Development files for Sandia OpenSHMEM
Group: System Environment/Libraries
Requires: %{name} = %{version}
%description devel
Development files for Sandia OpenSHMEM.
%package tests
Summary: Tests programs for Sandia OpenSHMEM
Group: System Environment/Libraries
Requires: %{name} = %{version}
%description tests
Tests programs for Sandia OpenSHMEM
%prep
%setup -q -n %{name}-%{version}
%build
%configure %{configargs}
make -j 4 %{?_smp_mflags}
# Build tests
make -j 4 check TESTS=
%install
rm -rf %{buildroot}
%makeinstall
# remove unpackaged files from the buildroot
rm -f %{buildroot}%{_libdir}/*.la
# Prepare tests
# FIXME: It would be better to configure with --disable-libtool-wrapper so we
# can pull from the standard dirs instead of .libs
install -d %{testdir}/unit
install test/unit/.libs/* %{testdir}/unit
install -d %{testdir}/shmemx
install test/shmemx/.libs/* %{testdir}/shmemx
install -d %{testdir}/spec-example
install test/spec-example/.libs/* %{testdir}/spec-example
install -d %{testdir}/apps
install test/apps/.libs/* %{testdir}/apps
install -d %{testdir}/performance/shmem_perf_suite
install test/performance/shmem_perf_suite/.libs/* %{testdir}/performance/shmem_perf_suite
install -d %{testdir}/performance/tests
install test/performance/tests/.libs/* %{testdir}/performance/tests
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
@SOS_RPM_PREFIXED@%dir %{_prefix}
@SOS_RPM_PREFIXED@%dir %{_bindir}
@SOS_RPM_PREFIXED@%dir %{_libdir}
@SOS_RPM_PREFIXED@%dir %{_libdir}/pkgconfig
@SOS_RPM_PREFIXED@%dir %{_docdir}
@SOS_RPM_PREFIXED@%dir %{_datadir}
%{_docdir}/*
%{_bindir}/oshrun
%{_libdir}/lib*.so.*
%{_libdir}/pkgconfig/*.pc
%files devel
%defattr(-,root,root)
@SOS_RPM_PREFIXED@%dir %{_prefix}
@SOS_RPM_PREFIXED@%dir %{_bindir}
@SOS_RPM_PREFIXED@%dir %{_libdir}
@SOS_RPM_PREFIXED@%dir %{_includedir}
@SOS_RPM_PREFIXED@%dir %{_mandir}
@SOS_RPM_PREFIXED@%dir %{_mandir}/man[1-3]
%{_bindir}/*
%{_libdir}/lib*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_mandir}/man[1-3]/*
%files tests
%defattr(-,root,root)
@SOS_RPM_PREFIXED@%dir %{_prefix}
@SOS_RPM_PREFIXED@%dir %{_datadir}
@SOS_RPM_PREFIXED@%dir %{_datadir}/%{name}-%{version}
%{_datadir}/%{name}-%{version}/tests
%changelog