-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibsysve.spec.in
94 lines (79 loc) · 2.17 KB
/
libsysve.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
%if "%{libc}" == "glibc"
%if "%{_ve_arch}" == "ve3"
Name: @PACKAGE_NAME@-ve3
%else
Name: @PACKAGE_NAME@-ve1
%endif
%else
Name: @PACKAGE_NAME@-@VEARCH@-musl
%endif
Version: @PACKAGE_VERSION@
Release: @RELEASE@%{?dist}
Summary: VE system call library
Group: System Environment/Libraries
License: MIT
#ULI:
Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
Vendor: NEC Corporation
BuildArch: x86_64
BuildRequires: vedebuginfo
%if "%{libc}" == "glibc"
BuildRequires: veos-headers
%if "%{_ve_arch}" == "ve3"
Requires: glibc-ve3
%else
Requires: glibc-ve1
Obsoletes: libsysve
Provides: libsysve
%endif
%define _opt --enable-separatedlibs
%else
BuildRequires: veos-musl-headers
Requires: musl-libc-ve
%define _opt --disable-vhcallenhance
%endif
#AutoReqProv: no
%description
The libsysve package contains the libraries which are used by VE programs
to invoke VE-specific system calls or enable an additional feature.
%package devel
Summary: Headers for libsysve
Requires: %{name} = %{version}-%{release}
%if "%{_ve_arch}" != "ve3"
Obsoletes: libsysve-devel
Provides: libsysve-devel
%endif
%description devel
This package contains the files required to build VE programs that use
libraries in libsysve package.
%define _prefix @prefix@
%define _libdir @prefix@/lib
%define __strip @ve_prefix@/bin/nstrip
%if 0%{?rhel} == 8
%global __debug_install_post /opt/nec/ve/libexec/find-debuginfo.sh --unique-debug-suffix "-%{VERSION}-%{RELEASE}.%{_arch}" -S debugsourcefiles.list %{_builddir}/%{buildsubdir} %{nil}
%else
%global __debug_install_post /opt/nec/ve/libexec/find-debuginfo.sh %{nil}
%endif
%prep
%{__rm} -rf ${RPM_BUILD_ROOT}
%setup -q -n @PACKAGE_NAME@-@PACKAGE_VERSION@
%build
./configure --host=ve-nec-linux \
--prefix=%{_prefix} \
CC=@CC@ CFLAGS='@CFLAGS@' LDFLAGS='@LDFLAGS@' %{_opt}
make
%install
make install DESTDIR=${RPM_BUILD_ROOT}
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%doc
%{_includedir}/*.h
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%changelog