Guest User

pulse audio module.spec

a guest
Dec 16th, 2017
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %define pulseversion %{expand:%(rpm -q --qf '[%%{version}]' pulseaudio)}
  2. %define pulsemajorminor %{expand:%(echo '%{pulseversion}' | cut -d+ -f1)}
  3. %define moduleversion %{pulsemajorminor}.%{expand:%(echo '%{version}' | cut -d. -f3)}
  4.  
  5. Name:       pulseaudio-modules-droid
  6.  
  7. Summary:    PulseAudio Droid HAL modules
  8. Version:    %{pulsemajorminor}.47
  9. Release:    1
  10. Group:      Multimedia/PulseAudio
  11. License:    LGPLv2.1+
  12. URL:        https://github.com/mer-hybris/pulseaudio-modules-droid
  13. Source0:    %{name}-%{version}.tar.bz2
  14. Requires:   pulseaudio >= %{pulseversion}
  15. Requires:   %{name}-common = %{version}-%{release}
  16. BuildRequires:  automake
  17. BuildRequires:  libtool
  18. BuildRequires:  libtool-ltdl-devel
  19. BuildRequires:  pkgconfig(pulsecore) >= %{pulsemajorminor}
  20. BuildRequires:  pkgconfig(android-headers)
  21. BuildRequires:  pkgconfig(libhardware)
  22. BuildRequires:  pkgconfig(dbus-1)
  23.  
  24. %description
  25. PulseAudio Droid HAL modules.
  26.  
  27. %package common
  28. Summary:    Common libs for the PulseAudio droid modules
  29. Group:      Multimedia/PulseAudio
  30. Requires:   pulseaudio >= %{pulseversion}
  31.  
  32. %description common
  33. This contains common libs for the PulseAudio droid modules.
  34.  
  35. %package devel
  36. Summary:    Development files for PulseAudio droid modules
  37. Group:      Development/Libraries
  38. Requires:   %{name}-common = %{version}-%{release}
  39.  
  40. %description devel
  41. This contains development files for PulseAudio droid modules.
  42.  
  43. %prep
  44. %setup -q -n %{name}-%{version}
  45.  
  46. %build
  47. echo "%{moduleversion}" > .tarball-version
  48. # Obtain the DEVICE from the same source as used in /etc/os-release
  49. . /usr/lib/droid-devel/hw-release.vars
  50. %reconfigure --disable-static --with-droid-device=$MER_HA_DEVICE
  51. make %{?jobs:-j%jobs}
  52.  
  53. %install
  54. rm -rf %{buildroot}
  55. %make_install
  56.  
  57. install -d %{buildroot}/%{_prefix}/include/pulsecore/modules/droid
  58. install -m 644 src/common/*.h %{buildroot}/%{_prefix}/include/pulsecore/modules/droid
  59. install -d %{buildroot}/%{_libdir}/pkgconfig
  60. install -m 644 src/common/*.pc %{buildroot}/%{_libdir}/pkgconfig
  61.  
  62. %files
  63. %defattr(-,root,root,-)
  64. %{_libdir}/pulse-%{pulsemajorminor}/modules/libdroid-sink.so
  65. %{_libdir}/pulse-%{pulsemajorminor}/modules/libdroid-source.so
  66. %{_libdir}/pulse-%{pulsemajorminor}/modules/module-droid-sink.so
  67. %{_libdir}/pulse-%{pulsemajorminor}/modules/module-droid-source.so
  68. %{_libdir}/pulse-%{pulsemajorminor}/modules/module-droid-card.so
  69. %{_libdir}/pulse-%{pulsemajorminor}/modules/module-droid-keepalive.so
  70.  
  71. %files common
  72. %defattr(-,root,root,-)
  73. %{_libdir}/pulse-%{pulsemajorminor}/modules/libdroid-util.so
  74.  
  75. %files devel
  76. %defattr(-,root,root,-)
  77. %{_prefix}/include/pulsecore/modules/droid/*.h
RAW Paste Data