blob: 80865830d0073186a3d39e254ce600200659efa6 (
plain)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
%define name hal-rootstrap
%define devel_name hal-rootstrap-devel
%define hal_rootstrap_install_path /opt/data/hal-rootstrap
Name: hal-rootstrap
Summary: Package for rootstrap of hal
Version: 0.1.0
Release: 1
#Group:
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
AutoReqProv: no
ExcludeArch: riscv64
BuildRequires: cmake
BuildRequires: xmlstarlet
BuildRequires: python3
BuildRequires: capi-base-common
BuildRequires: capi-base-common-devel
BuildRequires: capi-base-utils
BuildRequires: capi-base-utils-devel
BuildRequires: capi-system-info
BuildRequires: capi-system-info-devel
BuildRequires: capi-system-runtime-info
BuildRequires: capi-system-runtime-info-devel
BuildRequires: libtbm
BuildRequires: libtbm-devel
BuildRequires: coregl
BuildRequires: coregl-devel
BuildRequires: fontconfig
BuildRequires: fontconfig-devel
BuildRequires: libfreetype
BuildRequires: freetype2-devel
BuildRequires: glib2-devel
BuildRequires: glib2-devel-static
BuildRequires: libgio
BuildRequires: libglib
BuildRequires: libgmodule
BuildRequires: libgobject
BuildRequires: libgthread
BuildRequires: libharfbuzz
BuildRequires: harfbuzz-devel
BuildRequires: kernel-headers
BuildRequires: liboauth
BuildRequires: liboauth-devel
BuildRequires: openal-soft
BuildRequires: openal-soft-devel
BuildRequires: SDL2
BuildRequires: SDL2-devel
BuildRequires: vulkan-loader
BuildRequires: vulkan-loader-devel
BuildRequires: vulkan-headers
BuildRequires: glibc
BuildRequires: glibc-devel
BuildRequires: glibc-devel-static
BuildRequires: glibc-devel-utils
BuildRequires: glibc-extra
BuildRequires: glibc-locale
BuildRequires: glibc-profile
BuildRequires: linux-glibc-devel
BuildRequires: libcurl
BuildRequires: libcurl-devel
BuildRequires: libxml2
BuildRequires: libxml2-devel
BuildRequires: minizip
BuildRequires: minizip-devel
BuildRequires: openssl3
BuildRequires: libopenssl3
BuildRequires: libopenssl3-devel
BuildRequires: libsqlite
BuildRequires: sqlite
BuildRequires: sqlite-devel
BuildRequires: zlib
BuildRequires: zlib-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(ttrace)
BuildRequires: pkgconfig(capi-system-peripheral-io)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(hal-api-audio)
BuildRequires: pkgconfig(hal-api-bluetooth)
BuildRequires: pkgconfig(hal-api-camera)
BuildRequires: pkgconfig(hal-api-common)
BuildRequires: pkgconfig(hal-api-device)
BuildRequires: pkgconfig(hal-api-location)
BuildRequires: pkgconfig(hal-api-nfc)
BuildRequires: pkgconfig(hal-api-power)
BuildRequires: pkgconfig(hal-api-radio)
BuildRequires: pkgconfig(hal-api-sensor)
BuildRequires: pkgconfig(hal-api-tbm)
BuildRequires: pkgconfig(hal-api-tdm)
BuildRequires: pkgconfig(hal-api-uwb)
BuildRequires: pkgconfig(hal-api-wifi)
BuildRequires: pkgconfig(hal-api-zigbee)
### hal-rootstrap-devel
%package -n %{devel_name}
Summary: %{name} interface
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description -n %{devel_name}
%{name} Interface for product vendor developer
### hal-rootstrap
%description
Package for rootstrap of hal
%prep
%setup -q
%cmake . -DCMAKE_LIBDIR_PREFIX=%{_libdir}
%build
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
mkdir %{buildroot}
./generate_rootstrap.sh "%{_arch}" "%{buildroot}%{hal_rootstrap_install_path}"
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
cp packaging/hal-rootstrap.pc %{buildroot}%{_libdir}/pkgconfig/
./modify_pc.py "%{buildroot}%{_libdir}/pkgconfig/hal-rootstrap.pc" "%{buildroot}%{hal_rootstrap_install_path}/%{_libdir}/pkgconfig"
%files
%{hal_rootstrap_install_path}/etc/*
%{hal_rootstrap_install_path}/lib*/*
%{hal_rootstrap_install_path}/usr/share/*
%{hal_rootstrap_install_path}/usr/lib*/*
%files -n %{devel_name}
%defattr(-,root,root,-)
%{hal_rootstrap_install_path}/%{_includedir}/*
%{hal_rootstrap_install_path}/%{_libdir}/pkgconfig/*.pc
%{_libdir}/pkgconfig/*.pc
|