Guest User

droidmedia

a guest
Mar 26th, 2018
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- rpm/dhd/helpers/droidmedia-localbuild.spec 2018-03-24 13:49:29.196700149 +0000
  2. +++ /home/del/hadk/external/droidmedia/rpm/droidmedia.spec 2018-03-26 16:02:57.921331998 +0000
  3. @@ -3,18 +3,18 @@
  4. %define __find_requires %{nil}
  5. %global debug_package %{nil}
  6. %define __provides_exclude_from ^.*$
  7. -%define device_rpm_architecture_string armv7hl
  8. +
  9. %define _target_cpu %{device_rpm_architecture_string}
  10.  
  11. Name: droidmedia
  12. Summary: Android media wrapper library
  13. -Version: 0.0.0
  14. +Version: 0.20170214.0
  15. Release: 1
  16. Group: System/Libraries
  17. License: ASL 2.0
  18. -#BuildRequires: ubu-trusty
  19. -#BuildRequires: sudo-for-abuild
  20. -#BuildRequires: droid-bin-src-full
  21. +BuildRequires: ubu-trusty
  22. +BuildRequires: sudo-for-abuild
  23. +BuildRequires: droid-bin-src-full
  24. Source0: %{name}-%{version}.tgz
  25. AutoReqProv: no
  26.  
  27. @@ -23,7 +23,6 @@
  28.  
  29. %package devel
  30. Summary: droidmedia development headers
  31. -Group: System/Libraries
  32. Requires: droidmedia = %{version}-%{release}
  33. BuildArch: noarch
  34.  
  35. @@ -37,26 +36,38 @@
  36. exit -1
  37. %endif
  38.  
  39. -%setup
  40. +%setup -T -c -n droidmedia
  41. +sudo chown -R abuild:abuild /home/abuild/src/droid/
  42. +mv /home/abuild/src/droid/* .
  43. +mkdir -p external
  44. +pushd external
  45. +tar -zxf %SOURCE0
  46. +mv droidmedia* droidmedia
  47. +popd
  48. +
  49. +cat /dev/null > external/droidmedia/env.mk
  50. +
  51. +%if %{?force_hal:1}%{!?force_hal:0}
  52. +echo Forcing Camera HAL connect version %{force_hal}
  53. +echo FORCE_HAL := %{force_hal} >> external/droidmedia/env.mk
  54. +%endif
  55.  
  56. -#sudo chown -R abuild:abuild /home/abuild/src/droid/
  57. -#mv /home/abuild/src/droid/* .
  58. -#mkdir -p external
  59. -#pushd external
  60. -#tar -zxf %SOURCE0
  61. -#mv droidmedia* droidmedia
  62. -#popd
  63. %build
  64. -pwd
  65. -ls
  66. -tar -xvf %name-%version.tgz
  67. +
  68. +if (grep -qi '^BOARD_QTI_CAMERA_32BIT_ONLY := true' device/*/*/*.mk) || %{?droidmedia_32bit:1}%{!?droidmedia_32bit:0}; then
  69. +echo DROIDMEDIA_32 := true >> external/droidmedia/env.mk
  70. +droid-make %{?_smp_mflags} libdroidmedia_32 minimediaservice minisfservice libminisf_32
  71. +else
  72. +droid-make %{?_smp_mflags} libdroidmedia minimediaservice minisfservice libminisf
  73. +fi
  74. +
  75. %install
  76.  
  77. mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/droid-hybris/system/lib/
  78. mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/droid-hybris/system/bin/
  79. mkdir -p $RPM_BUILD_ROOT/%{_includedir}/droidmedia/
  80. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/droidmedia/
  81. -pushd %name-%version
  82. +
  83. cp out/target/product/*/system/lib/libdroidmedia.so \
  84. $RPM_BUILD_ROOT/%{_libexecdir}/droid-hybris/system/lib/
  85.  
  86. @@ -72,7 +83,6 @@
  87. cp external/droidmedia/*.h $RPM_BUILD_ROOT/%{_includedir}/droidmedia/
  88. cp external/droidmedia/hybris.c $RPM_BUILD_ROOT/%{_datadir}/droidmedia/
  89.  
  90. -popd
  91. %files
  92. %defattr(-,root,root,-)
  93. %{_libexecdir}/droid-hybris/system/lib/libdroidmedia.so
  94. @@ -84,4 +94,3 @@
  95. %defattr(-,root,root,-)
  96. %{_includedir}/droidmedia/*.h
  97. %{_datadir}/droidmedia/hybris.c
RAW Paste Data