-
Notifications
You must be signed in to change notification settings - Fork 4
/
veo.spec.in
64 lines (56 loc) · 1.57 KB
/
veo.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
Summary: VE Offloading Framework
%if "%{libc}" == "glibc"
Name: @PACKAGE@
Conflicts: @PACKAGE@-musl
%else
Name: @PACKAGE@-musl
Conflicts: @PACKAGE@
%endif
Version: @VERSION@
Release: @RELEASE@%{?dist}
Vendor: NEC Corporation
Group: System Environment/Libraries
License: LGPLv2+
Source0: @PACKAGE@-@VERSION@.tar.gz
Requires: veos log4c veosinfo
BuildRequires: log4c-devel veos-libvepseudo-headers veosinfo-devel
%if "%{libc}" == "glibc"
Requires: veoffload-veorun
BuildRequires: veoffload-veorun-devel
%else
Requires: veoffload-veorun-musl
BuildRequires: veoffload-veorun-musl-devel
%endif
%description
VE offloading framework (VEO) is low-leve interface to control
VE process from VH side to provide accelerator-like heterogeneous
programming model like OpenMP and OpenACC.
%define _prefix @prefix@
%define _libdir @libdir@
%define _localstatedir @localstatedir@
%if 0%{?rhel} == 8
%define build_ldflags "-Wl,-z,lazy"
%define build_cflags "-g -O2"
%define build_cxxflags "-g -O0"
%endif
%package devel
Summary: Development package for VE Offloading Framework
Requires: %{name} = %{version}-%{release}
%description devel
This package includes header files of VE offloading framework.
Requires: %{name} = %{version}-%{release}
%prep
%setup -q -n @PACKAGE@-@VERSION@
%build
%configure --with-veorun=@VEORUN_BIN@ --with-veos-socket=@VEOS_SOCKET@ \
--with-veorun-includedir=@veorun_includedir@
%make_build
%install
%make_install
sh -c "rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib*.a \
${RPM_BUILD_ROOT}%{_libdir}/lib*.la"
%files
%{_libdir}/libveo.so.*
%files devel
%{_includedir}/*
%{_libdir}/libveo.so