/
glesplash.spec
41 lines (34 loc) · 1.11 KB
/
glesplash.spec
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
Name: glesplash
Version: 0.1
Release: 1
Summary: GL splash screen
Group: System/Base
License: Proprietary
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(glesv2)
BuildRequires: qt5-qmake
%description
%{summary}.
%files
%defattr(-,root,root,-)
%{_bindir}/glesplash-fb
%config %{_sysconfdir}/powervr.d/glesplash-fb.ini
/lib/systemd/system/glesplash-fb.service
/lib/systemd/system/basic.target.wants/glesplash-fb.service
/lib/systemd/system/multi-user.target.wants/glesplash-fb.service
%{_datadir}/%{name}/*.png
%prep
%setup -q
%build
qmake -qt=5
make %{?_smp_mflags}
%install
make INSTALL_ROOT=%{buildroot} install
mkdir -p %{buildroot}/lib/systemd/system/basic.target.wants
mkdir -p %{buildroot}/lib/systemd/system/multi-user.target.wants
ln -sf ../glesplash-fb.service %{buildroot}/lib/systemd/system/basic.target.wants
# basic.target is to get splash screen as early as possible
# multi-user.target is to get splash started when we change from actdead to user mode
ln -sf ../glesplash-fb.service %{buildroot}/lib/systemd/system/multi-user.target.wants