forked from Sandia-OpenSHMEM/SOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sandia-openshmem.spec.in
86 lines (69 loc) · 1.83 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
%{!?configargs: %global configargs %{nil}}
%{!?testdir: %global testdir %{buildroot}%{_datadir}/%{name}-%{version}/tests}
Name: sos
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 %{?_smp_mflags}
# Build tests
make check TESTS=
%install
rm -rf %{buildroot}
%makeinstall
# remove unpackaged files from the buildroot
rm -f %{buildroot}%{_libdir}/*.la
# Prepare tests
install -d %{testdir}/unit
install test/unit/.libs/* %{testdir}/unit
install -d %{testdir}/shmemx
install test/shmemx/.libs/* %{testdir}/shmemx
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,-)
%{_bindir}/oshrun
%{_libdir}/lib*.so.*
%{_libdir}/pkgconfig/*.pc
%doc LICENSE README NEWS
%files devel
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/lib*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_mandir}/man[1-3]/*
%files tests
%defattr(-,root,root)
%{_datadir}/%{name}-%{version}/tests
%changelog