-
-
Save Ingvix/f32a5243623575e4bdd669480e8d8a45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: libhybris | |
Version: 0.0.0 | |
Release: 1%{?dist} | |
Summary: Utilize Bionic-based HW adaptations on glibc systems | |
Group: System/Libraries | |
License: ASL 2.0 | |
URL: https://github.com/libhybris/libhybris | |
Source: %{name}-%{version}.tar.bz2 | |
BuildRequires: libtool | |
BuildRequires: pkgconfig(wayland-client) | |
# When droid-hal-ha builds for a specific HA it should provide | |
# droid-hal-devel via droid-hal-%{device}-devel package | |
BuildRequires: droid-hal-devel | |
Conflicts: mesa-llvmpipe | |
%description | |
%{summary}. | |
%package devel | |
Summary: Common development headers for %{name} | |
Requires: %{name} = %{version}-%{release} | |
%description devel | |
%{summary}. | |
%package libEGL | |
Summary: EGL for hybris | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libhardware = %{version}-%{release} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Provides: libEGL | |
Provides: libEGL.so.1 | |
%description libEGL | |
%{summary}. | |
%package libEGL-devel | |
Summary: EGL development headers for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libEGL = %{version}-%{release} | |
Requires: %{name}-devel = %{version}-%{release} | |
Requires: pkgconfig(android-headers) | |
Provides: libEGL-devel | |
%description libEGL-devel | |
%{summary}. | |
%package libGLESv1 | |
Summary: OpenGL ES 1.x for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Provides: libGLESv1 | |
Provides: libGLES_CM.so.1 | |
%description libGLESv1 | |
%{summary}. | |
%package libGLESv1-devel | |
Summary: OpenGL ES 1.x development library for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libGLESv1 = %{version}-%{release} | |
Requires: %{name}-devel = %{version}-%{release} | |
Provides: libGLESv1-devel | |
%description libGLESv1-devel | |
%{summary}. | |
%package libGLESv2 | |
Summary: OpenGL ES 2.0 for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Provides: libGLESv2 | |
Provides: libGLESv2.so.2 | |
%description libGLESv2 | |
%{summary}. | |
%package libGLESv2-devel | |
Summary: OpenGL ES 2.0 development library for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libGLESv2 = %{version}-%{release} | |
Requires: %{name}-devel = %{version}-%{release} | |
Provides: libGLESv2-devel | |
%description libGLESv2-devel | |
%{summary}. | |
%package libOpenCL | |
Summary: OpenCL for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Provides: libOpenCL | |
%description libOpenCL | |
%{summary}. | |
%package libOpenCL-devel | |
Summary: OpenCL development library for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libOpenCL = %{version}-%{release} | |
Requires: %{name}-devel = %{version}-%{release} | |
Provides: libOpenCL-devel | |
%description libOpenCL-devel | |
%{summary}. | |
%package libOpenVG | |
Summary: OpenVG for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Provides: libOpenVG | |
%description libOpenVG | |
%{summary}. | |
%package libOpenVG-devel | |
Summary: OpenVG development library for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libOpenVG = %{version}-%{release} | |
Requires: %{name}-devel = %{version}-%{release} | |
Provides: libOpenVG-devel | |
%description libOpenVG-devel | |
%{summary}. | |
%package libwayland-egl | |
Summary: Wayland EGL for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libhardware = %{version}-%{release} | |
Requires: %{name}-libEGL = %{version}-%{release} | |
Requires: %{name}-libsync = %{version}-%{release} | |
Provides: libwayland-egl | |
%description libwayland-egl | |
%{summary}. | |
%package libwayland-egl-devel | |
Summary: Wayland EGL development library for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libwayland-egl = %{version}-%{release} | |
Provides: libwayland-egl-devel | |
%description libwayland-egl-devel | |
%{summary}. | |
%package libhardware | |
Summary: libhardware for %{name} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Requires: %{name} = %{version}-%{release} | |
%description libhardware | |
%{summary}. | |
%package libhardware-devel | |
Summary: libhardware development library for %{name} | |
Requires: %{name}-devel = %{version}-%{release} | |
Requires: %{name}-libhardware = %{version}-%{release} | |
%description libhardware-devel | |
%{summary}. | |
%package libsync | |
Summary: libsync for %{name} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Requires: %{name} = %{version}-%{release} | |
%description libsync | |
%{summary}. | |
%package libsync-devel | |
Summary: libsync development library for %{name} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libsync = %{version}-%{release} | |
%description libsync-devel | |
%{summary}. | |
%package libnfc | |
Summary: Near Field Communication for %{name} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Requires: %{name} = %{version}-%{release} | |
%description libnfc | |
%{summary}. | |
%package libnfc-devel | |
Summary: Near Field Communication development library for %{name} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libnfc = %{version}-%{release} | |
%description libnfc-devel | |
%{summary}. | |
%package libvibrator | |
Summary: Vibrator for %{name} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Requires: %{name} = %{version}-%{release} | |
%description libvibrator | |
%{summary}. | |
%package libvibrator-devel | |
Summary: Vibrator development library for %{name} | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libvibrator = %{version}-%{release} | |
%description libvibrator-devel | |
%{summary}. | |
%package tests | |
Summary: Tests for %{name} | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libEGL = %{version}-%{release} | |
Requires: %{name}-libGLESv2 = %{version}-%{release} | |
Requires: %{name}-libhardware = %{version}-%{release} | |
Requires: %{name}-libsync = %{version}-%{release} | |
Requires: %{name}-libvibrator = %{version}-%{release} | |
%description tests | |
%{summary}. | |
%package tests-upstream | |
Summary: Tests from upstream %{name} but not working on our side | |
Requires(post): /sbin/ldconfig | |
Requires(postun): /sbin/ldconfig | |
Requires: %{name} = %{version}-%{release} | |
Requires: %{name}-libEGL = %{version}-%{release} | |
Requires: %{name}-libGLESv2 = %{version}-%{release} | |
Requires: %{name}-libhardware = %{version}-%{release} | |
Requires: %{name}-libsync = %{version}-%{release} | |
%description tests-upstream | |
%{summary}. | |
%prep | |
%setup -q -n %{name}-%{version}/%{name} | |
%build | |
cd hybris | |
autoreconf -v -f -i | |
%configure \ | |
--enable-wayland \ | |
--enable-debug \ | |
--enable-trace \ | |
--with-android-headers=/usr/lib/droid-devel/droid-headers \ | |
--enable-property-cache \ | |
%ifarch %{arm} | |
--enable-arch=arm \ | |
%endif | |
%ifarch %{ix86} | |
--enable-arch=x86 \ | |
%endif | |
%ifarch %{aarch64} | |
--enable-arch=arm64 \ | |
--with-default-hybris-ld-library-path=/usr/libexec/droid-hybris/system/lib64:/vendor/lib64:/system/lib64:/odm/lib64 | |
%else | |
--with-default-hybris-ld-library-path=/usr/libexec/droid-hybris/system/lib:/vendor/lib:/system/lib:/odm/lib | |
%endif | |
make | |
%install | |
rm -rf $RPM_BUILD_ROOT | |
cd hybris | |
make install DESTDIR=$RPM_BUILD_ROOT | |
# Remove the static libraries. | |
rm %{buildroot}/%{_libdir}/*.la %{buildroot}/%{_libdir}/libhybris/*.la | |
%post -p /sbin/ldconfig | |
%postun -p /sbin/ldconfig | |
%post libEGL -p /sbin/ldconfig | |
%postun libEGL -p /sbin/ldconfig | |
%post libGLESv1 -p /sbin/ldconfig | |
%postun libGLESv1 -p /sbin/ldconfig | |
%post libGLESv2 -p /sbin/ldconfig | |
%postun libGLESv2 -p /sbin/ldconfig | |
%post libwayland-egl -p /sbin/ldconfig | |
%postun libwayland-egl -p /sbin/ldconfig | |
%post libhardware -p /sbin/ldconfig | |
%postun libhardware -p /sbin/ldconfig | |
%post libsync -p /sbin/ldconfig | |
%postun libsync -p /sbin/ldconfig | |
%post libnfc -p /sbin/ldconfig | |
%postun libnfc -p /sbin/ldconfig | |
%post libvibrator -p /sbin/ldconfig | |
%postun libvibrator -p /sbin/ldconfig | |
%post tests-upstream -p /sbin/ldconfig | |
%postun tests-upstream -p /sbin/ldconfig | |
%files | |
%defattr(-,root,root,-) | |
%doc hybris/AUTHORS hybris/COPYING | |
%{_libdir}/libhybris-common.so.* | |
%{_libdir}/libandroid-properties.so.* | |
%{_bindir}/getprop | |
%{_bindir}/setprop | |
%{_libdir}/libhybris/linker/*.la | |
%{_libdir}/libhybris/linker/*.so | |
%{_libdir}/libwifi.so.1 | |
%{_libdir}/libwifi.so.1.0.0 | |
%files devel | |
%defattr(-,root,root,-) | |
%{_includedir}/hybris/input/*.h | |
%{_includedir}/hybris/properties/properties.h | |
%{_includedir}/hybris/dlfcn/dlfcn.h | |
%{_includedir}/hybris/common/binding.h | |
%{_includedir}/hybris/common/dlfcn.h | |
%{_includedir}/hybris/common/floating_point_abi.h | |
%{_includedir}/hybris/common/hooks.h | |
%{_libdir}/libhybris-common.so | |
%{_libdir}/libandroid-properties.so | |
%{_libdir}/pkgconfig/libandroid-properties.pc | |
%{_includedir}/hybris/camera/*.h | |
%{_includedir}/hybris/surface_flinger/surface_flinger_compatibility_layer.h | |
%{_includedir}/hybris/ui/ui_compatibility_layer.h | |
%{_includedir}/hybris/media/*.h | |
%{_libdir}/libwifi.so | |
%{_libdir}/pkgconfig/libwifi.pc | |
%files libEGL | |
%defattr(-,root,root,-) | |
%{_libdir}/libEGL.so.* | |
%{_libdir}/libhybris-eglplatformcommon.so.* | |
%{_libdir}/libhybris/eglplatform_fbdev.so | |
%{_libdir}/libhybris/eglplatform_null.so | |
%{_libdir}/libhybris/eglplatform_hwcomposer.so | |
%{_libdir}/libhybris-hwcomposerwindow.so.1 | |
%{_libdir}/libhybris-hwcomposerwindow.so.1.0.0 | |
%files libEGL-devel | |
%defattr(-,root,root,-) | |
%{_includedir}/KHR/*.h | |
%{_includedir}/EGL/*.h | |
%{_includedir}/hybris/eglplatformcommon/*.h | |
%{_libdir}/libEGL.so | |
%{_libdir}/libhybris-eglplatformcommon.so | |
%{_libdir}/pkgconfig/egl.pc | |
%{_libdir}/pkgconfig/hybris-egl-platform.pc | |
%{_includedir}/hybris/hwcomposerwindow/hwcomposer.h | |
%{_includedir}/hybris/hwcomposerwindow/hwcomposer_window.h | |
%{_libdir}/libhybris-hwcomposerwindow.so | |
%{_libdir}/pkgconfig/hwcomposer-egl.pc | |
%files libGLESv1 | |
%defattr(-,root,root,-) | |
%{_libdir}/libGLESv1_CM.so.* | |
%files libGLESv1-devel | |
%defattr(-,root,root,-) | |
%{_libdir}/libGLESv1_CM.so | |
%{_includedir}/GLES/*.h | |
%{_libdir}/pkgconfig/glesv1_cm.pc | |
%files libGLESv2 | |
%defattr(-,root,root,-) | |
%{_libdir}/libGLESv2.so.2* | |
%files libGLESv2-devel | |
%defattr(-,root,root,-) | |
%{_includedir}/GLES2/*.h | |
%{_libdir}/libGLESv2.so | |
%{_libdir}/pkgconfig/glesv2.pc | |
%files libOpenCL | |
%defattr(-,root,root,-) | |
# We don't have implementation of OpenCL atm. | |
%files libOpenCL-devel | |
%defattr(-,root,root,-) | |
%{_includedir}/CL/*.h | |
%{_includedir}/CL/*.hpp | |
%files libOpenVG | |
%defattr(-,root,root,-) | |
# We don't have implementation of OpenVG atm. | |
%files libOpenVG-devel | |
%defattr(-,root,root,-) | |
%{_includedir}/VG/*.h | |
%files libwayland-egl | |
%defattr(-,root,root,-) | |
%{_libdir}/libhybris/eglplatform_wayland.so | |
%{_libdir}/libwayland-egl.so.* | |
%files libwayland-egl-devel | |
%defattr(-,root,root,-) | |
%{_libdir}/libwayland-egl.so | |
%{_libdir}/pkgconfig/wayland-egl.pc | |
%files libhardware | |
%defattr(-,root,root,-) | |
%{_libdir}/libhardware.so.* | |
%files libhardware-devel | |
%defattr(-,root,root,-) | |
%{_libdir}/libhardware.so | |
%{_libdir}/pkgconfig/libhardware.pc | |
%files libsync | |
%defattr(-,root,root,-) | |
%{_libdir}/libsync.so.* | |
%files libsync-devel | |
%defattr(-,root,root,-) | |
%{_libdir}/libsync.so | |
%{_libdir}/pkgconfig/libsync.pc | |
%files libnfc | |
%defattr(-,root,root,-) | |
%{_libdir}/libnfc_*.so.* | |
%files libnfc-devel | |
%defattr(-,root,root,-) | |
%{_libdir}/libnfc_*.so | |
%{_libdir}/pkgconfig/libnfc_*.pc | |
%files libvibrator | |
%defattr(-,root,root,-) | |
%{_libdir}/libvibrator.so.* | |
%files libvibrator-devel | |
%defattr(-,root,root,-) | |
%{_libdir}/libvibrator.so | |
%{_libdir}/pkgconfig/libvibrator.pc | |
%files tests | |
%defattr(-,root,root,-) | |
%{_bindir}/test_audio | |
%{_bindir}/test_egl | |
%{_bindir}/test_egl_configs | |
%{_bindir}/test_glesv2 | |
%{_bindir}/test_gps | |
%{_bindir}/test_hwcomposer | |
%{_bindir}/test_lights | |
%{_bindir}/test_nfc | |
%{_bindir}/test_sensors | |
%{_bindir}/test_vibrator | |
%{_bindir}/test_wifi | |
%files tests-upstream | |
%defattr(-,root,root,-) | |
%{_libdir}/libcamera.so | |
%{_libdir}/libis.so | |
%{_libdir}/libmedia.so | |
%{_libdir}/libsf.so | |
%{_libdir}/libui.so | |
%{_libdir}/pkgconfig/libcamera.pc | |
%{_libdir}/pkgconfig/libis.pc | |
%{_libdir}/pkgconfig/libmedia.pc | |
%{_libdir}/pkgconfig/libsf.pc | |
%{_libdir}/libcamera.so.1 | |
%{_libdir}/libcamera.so.1.0.0 | |
%{_libdir}/libis.so.1 | |
%{_libdir}/libis.so.1.0.0 | |
%{_libdir}/libmedia.so.1 | |
%{_libdir}/libmedia.so.1.0.0 | |
%{_libdir}/libsf.so.1 | |
%{_libdir}/libsf.so.1.0.0 | |
%{_libdir}/libui.so.1 | |
%{_libdir}/libui.so.1.0.0 | |
%{_bindir}/test_camera | |
%{_bindir}/test_input | |
%{_bindir}/test_media | |
%{_bindir}/test_recorder | |
%{_bindir}/test_sf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment