Guest User

RPM spec for http://pastebin.com/v79sheyR

a guest
Jan 25th, 2014
202
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %define __strip %{_mingw32_strip}
  2. %define __objdump %{_mingw32_objdump}
  3. %define _use_internal_dependency_generator 0
  4. %define __find_requires %{_mingw32_findrequires}
  5. %define __find_provides %{_mingw32_findprovides}
  6. %define __os_install_post %{_mingw32_debug_install_post} \
  7.                           %{_mingw32_install_post}
  8.  
  9. Name:           mingw32-pulseaudio
  10. Version:        5.0
  11. %define tar_version 4.99.2
  12. %define dll_version 5.0
  13. Release:        0
  14. Summary:        PulseAudio desktop sound server
  15.  
  16. License:        LGPL 2.1+
  17. Url:            http://pulseaudio.org/
  18. Group:          System/Sound Daemons
  19. Source:         pulseaudio-%{tar_version}.tar.xz
  20. BuildRoot:      %{_tmppath}/%{name}-%{tar_version}-build
  21.  
  22. BuildArch:      noarch
  23. #!BuildIgnore: post-build-checks
  24.  
  25. BuildRequires:  mingw32-filesystem
  26. BuildRequires:  mingw32-cross-gcc
  27. BuildRequires:  mingw32-cross-binutils
  28. BuildRequires:  mingw32-cross-pkg-config
  29. BuildRequires:  mingw32-libsamplerate-devel
  30. BuildRequires:  mingw32-libsndfile-devel
  31. BuildRequires:  mingw32-libspeex-devel
  32. BuildRequires:  mingw32-libvorbis-devel
  33. BuildRequires:  mingw32-libatomic_ops-devel
  34. BuildRequires:  mingw32-pcre-devel
  35. BuildRequires:  mingw32-liborc-devel
  36. BuildRequires:  mingw32-libjson-devel
  37. BuildRequires:  mingw32-win_iconv-devel
  38. BuildRequires:  mingw32-libintl-devel
  39. BuildRequires:  mingw32-libtool
  40. BuildRequires:  intltool
  41. BuildRequires:  orc
  42. Requires:       %{name}-lang = %{version}
  43.  
  44. %description
  45. PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications. It allows you to do
  46. advanced operations on your sound data as it passes between your application and your hardware. Things like transferring
  47. the audio to a different machine, changing the sample format or channel count and mixing several sounds into one are
  48. easily achieved using a sound server.
  49.  
  50. PulseAudio is an integral part of all relevant modern Linux distributions and used in various mobile devices by multiple vendors.
  51.  
  52.  
  53. %package devel
  54. Summary:        PulseAudio desktop sound server (development files)
  55. Group:          Development/Libraries
  56.  
  57. %description devel
  58. This package contains all necessary include files and libraries needed to develop applications that require these.
  59.  
  60.  
  61. %{_mingw32_debug_package}
  62.  
  63. %lang_package
  64.  
  65.  
  66. %prep
  67. %setup -q -n pulseaudio-%{tar_version}
  68.  
  69. %build
  70. echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
  71. %{_mingw32_configure} \
  72.     --enable-waveout \
  73.     --disable-orc \
  74.       --enable-shared --disable-static
  75. make %{?_smp_mflags}
  76.  
  77.  
  78. %install
  79. make DESTDIR=$RPM_BUILD_ROOT install
  80.  
  81. # Workaround these files being placed in the wrong place.
  82. # Observed with Pulseaudio 3.0 on OpenSuse 12.1 through 13.1
  83. mv -t $RPM_BUILD_ROOT%{_mingw32_bindir} $RPM_BUILD_ROOT%{_mingw32_libdir}/bin/libpulsecommon-%{dll_version}.dll
  84. mv -t $RPM_BUILD_ROOT%{_mingw32_libdir} $RPM_BUILD_ROOT%{_mingw32_libdir}/pulseaudio/libpulsecommon-%{dll_version}.dll.a
  85.  
  86. # Copy all non-dlopen DLLs to /bin
  87. mv -t $RPM_BUILD_ROOT%{_mingw32_bindir} $RPM_BUILD_ROOT%{_mingw32_libdir}/pulse-%{dll_version}/bin/*
  88. rm $RPM_BUILD_ROOT%{_mingw32_libdir}/pulse-%{dll_version}/modules/*.dll.a
  89.  
  90. %find_lang pulseaudio
  91.  
  92.  
  93. %clean
  94. rm -rf $RPM_BUILD_ROOT
  95.  
  96.  
  97. %files
  98. %defattr(-, root, root)
  99. %{_mingw32_sysconfdir}
  100. %{_mingw32_bindir}/pacat.exe
  101. %{_mingw32_bindir}/pactl.exe
  102. %{_mingw32_bindir}/pamon.exe
  103. %{_mingw32_bindir}/paplay.exe
  104. %{_mingw32_bindir}/parec.exe
  105. %{_mingw32_bindir}/parecord.exe
  106. %{_mingw32_bindir}/pulseaudio.exe
  107. %{_mingw32_bindir}/libpulsecommon-%{dll_version}.dll
  108. %{_mingw32_bindir}/libpulsecore-%{dll_version}.dll
  109. %{_mingw32_bindir}/libpulse-simple-0.dll
  110. %{_mingw32_bindir}/libpulse-0.dll
  111. %{_mingw32_bindir}/libcli.dll
  112. %{_mingw32_bindir}/libprotocol-*.dll
  113. %{_mingw32_libdir}/pulse-%{dll_version}/modules/*.dll
  114. %dir %{_mingw32_libdir}/pulse-%{dll_version}
  115. %dir %{_mingw32_libdir}/pulse-%{dll_version}/modules
  116. %exclude %{_mingw32_bindir}/esdcompat
  117. %exclude %{_mingw32_datadir}/vala
  118. %{_mingw32_mandir}
  119.  
  120. %files lang -f pulseaudio.lang
  121. %defattr(-,root,root)
  122.  
  123. %files devel
  124. %defattr(-, root, root)
  125. %{_mingw32_includedir}/pulse/
  126. %{_mingw32_libdir}/libpulsecommon-%{dll_version}.dll.a
  127. %{_mingw32_libdir}/libpulsecore-%{dll_version}.dll.a
  128. %{_mingw32_libdir}/libpulse-simple.dll.a
  129. %{_mingw32_libdir}/libpulse.dll.a
  130. %{_mingw32_libdir}/pkgconfig/libpulse.pc
  131. %{_mingw32_libdir}/pkgconfig/libpulse-simple.pc
  132. %{_mingw32_libdir}/cmake/PulseAudio/PulseAudioConfig*.cmake
  133.  
  134. %changelog
RAW Paste Data