-
Notifications
You must be signed in to change notification settings - Fork 0
/
odroid-c-mali.spec
145 lines (111 loc) · 4.89 KB
/
odroid-c-mali.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
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
143
144
145
%global commit cdf9ddb1cb2090f2c25dc4b4cca5e0d73d8db17c
%global debug_package %{nil}
%global __debug_install_post %{nil}
Name: odroid-c-mali
Version: 2016.09.12
Release: 3%{?dist}
Summary: Mali GL Binaries for ODROID-C
Group: System Environment/Libraries
License: Proprietary
URL: https://github.com/mdrjr/c1_mali_libs
Source0: https://github.com/mdrjr/c1_mali_libs/archive/%{commit}/c1_mali_libs-%{commit}.tar.gz
%package fb
Summary: Mali GL Binaries for ODROID-C (Frame Buffer)
Conflicts: %{name}-x11
Provides: libEGL.so
Provides: libEGL.so.1
Provides: libGLESv1_CM.so
Provides: libGLESv1_CM.so.1
Provides: libGLESv2.so
Provides: libGLESv2.so.2
%package x11
Summary: Mali GL Binaries for ODROID-C (X11)
Conflicts: %{name}-fb
Provides: libEGL.so
Provides: libEGL.so.1
Provides: libGLESv1_CM.so
Provides: libGLESv1_CM.so.1
Provides: libGLESv2.so
Provides: libGLESv2.so.2
%package ump
Summary: Mali GL Binaries for ODROID-C (UMP)
%package ump-devel
Summary: Mali GL Binaries for ODROID-C (UMP Headers)
Requires: %{name}-ump%{?_isa} = %{version}-%{release}
%description
Mali GL Binaries for ODROID-C based on r6p2-01rel0
%description fb
Mali GL Binaries for ODROID-C (Frame Buffer) based on r6p2-01rel0
%description x11
Mali GL Binaries for ODROID-C (X11) based on r6p2-01rel0
%description ump
Mali GL Binaries for ODROID-C (UMP) based on r6p2-01rel0
%description ump-devel
Mali GL Binaries for ODROID-C (UMP Headers) based on r6p2-01rel0
%prep
%setup -qn c1_mali_libs-%{commit}
chmod 644 *.md
# The LICENSE.md file is a symlink - it needs to be resolved for %%license to work
cp --remove-destination `readlink LICENSE.md` LICENSE.md
%build
%install
install -d %{buildroot}%{_sysconfdir}/ld.so.conf.d/
install -d %{buildroot}%{_includedir}/ump/
install -d %{buildroot}%{_includedir}/umplock/
install -m0755 -p -D fbdev/mali_libs/libMali.so %{buildroot}%{_libdir}/odroid-c-mali-fb/libMali.so
install -m0755 -p -D x11/mali_libs/libMali.so %{buildroot}%{_libdir}/odroid-c-mali-x11/libMali.so
install -m0755 -p -D x11/mali_libs/libUMP.so %{buildroot}%{_libdir}/libUMP.so
install -m0644 -p x11/mali_headers/ump/* %{buildroot}%{_includedir}/ump/
install -m0644 -p x11/mali_headers/umplock/* %{buildroot}%{_includedir}/umplock/
echo "%{_libdir}/odroid-c-mali-fb" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/odroid-c-mali-fb.conf
echo "%{_libdir}/odroid-c-mali-x11" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/odroid-c-mali-x11.conf
ln -s libMali.so %{buildroot}%{_libdir}/odroid-c-mali-fb/libEGL.so.1.0.0
ln -s libEGL.so.1.0.0 %{buildroot}%{_libdir}/odroid-c-mali-fb/libEGL.so
ln -s libEGL.so.1.0.0 %{buildroot}%{_libdir}/odroid-c-mali-fb/libEGL.so.1
ln -s libMali.so %{buildroot}%{_libdir}/odroid-c-mali-fb/libGLESv2.so.2.0.0
ln -s libGLESv2.so.2.0.0 %{buildroot}%{_libdir}/odroid-c-mali-fb/libGLESv2.so
ln -s libGLESv2.so.2.0.0 %{buildroot}%{_libdir}/odroid-c-mali-fb/libGLESv2.so.2
ln -s libMali.so %{buildroot}%{_libdir}/odroid-c-mali-fb/libGLESv1_CM.so.1.1
ln -s libGLESv1_CM.so.1.1 %{buildroot}%{_libdir}/odroid-c-mali-fb/libGLESv1_CM.so
ln -s libGLESv1_CM.so.1.1 %{buildroot}%{_libdir}/odroid-c-mali-fb/libGLESv1_CM.so.1
ln -s libMali.so %{buildroot}%{_libdir}/odroid-c-mali-x11/libEGL.so.1.0.0
ln -s libEGL.so.1.0.0 %{buildroot}%{_libdir}/odroid-c-mali-x11/libEGL.so
ln -s libEGL.so.1.0.0 %{buildroot}%{_libdir}/odroid-c-mali-x11/libEGL.so.1
ln -s libMali.so %{buildroot}%{_libdir}/odroid-c-mali-x11/libGLESv2.so.2.0.0
ln -s libGLESv2.so.2.0.0 %{buildroot}%{_libdir}/odroid-c-mali-x11/libGLESv2.so
ln -s libGLESv2.so.2.0.0 %{buildroot}%{_libdir}/odroid-c-mali-x11/libGLESv2.so.2
ln -s libMali.so %{buildroot}%{_libdir}/odroid-c-mali-x11/libGLESv1_CM.so.1.1
ln -s libGLESv1_CM.so.1.1 %{buildroot}%{_libdir}/odroid-c-mali-x11/libGLESv1_CM.so
ln -s libGLESv1_CM.so.1.1 %{buildroot}%{_libdir}/odroid-c-mali-x11/libGLESv1_CM.so.1
%post fb -p /sbin/ldconfig
%post x11 -p /sbin/ldconfig
%post ump -p /sbin/ldconfig
%postun fb -p /sbin/ldconfig
%postun x11 -p /sbin/ldconfig
%postun ump -p /sbin/ldconfig
%files fb
%doc README.md
%license LICENSE.md
%{_libdir}/odroid-c-mali-fb/
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/odroid-c-mali-fb.conf
%files x11
%doc README.md
%license LICENSE.md
%{_libdir}/odroid-c-mali-x11/
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/odroid-c-mali-x11.conf
%files ump
%doc README.md
%license LICENSE.md
%{_libdir}/libUMP.so
%files ump-devel
%{_includedir}/ump/
%{_includedir}/umplock/
%changelog
* Sat Jan 20 2018 Scott K Logan <logans@cottsay.net> - 2016.09.12-3
- Disable debuginfo packages
* Wed Oct 19 2016 Scott K Logan <logans@cottsay.net> - 2016.09.12-2
- Add LICENSE.md and README.md
* Fri Oct 14 2016 Scott K Logan <logans@cottsay.net> - 2016.09.12-1
- Update to latest source
* Wed Dec 02 2015 Scott K Logan <logans@cottsay.net> - 2015.10.15-1
- Initial package