mikedep333

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

Dec 3rd, 2014
15
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.99
  11. %define tar_version master
  12. %define dll_version 5.99
  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.  
  21. Patch20:    6.0rc1-fix-mingw32-build.patch
  22.  
  23. BuildRoot:      %{_tmppath}/%{name}-%{tar_version}-build
  24.  
  25. BuildArch:      noarch
  26. #!BuildIgnore: post-build-checks
  27.  
  28. BuildRequires:  mingw32-filesystem
  29. BuildRequires:  mingw32-cross-gcc
  30. BuildRequires:  mingw32-cross-binutils
  31. BuildRequires:  mingw32-cross-pkg-config
  32. BuildRequires:  mingw32-winpthreads-devel
  33. BuildRequires:  mingw32-libsamplerate-devel
  34. BuildRequires:  mingw32-libsndfile-devel
  35. BuildRequires:  mingw32-libspeex-devel
  36. BuildRequires:  mingw32-libvorbis-devel
  37. BuildRequires:  mingw32-libatomic_ops-devel
  38. BuildRequires:  mingw32-pcre-devel
  39. BuildRequires:  mingw32-liborc-devel
  40. BuildRequires:  mingw32-libjson-c2
  41. BuildRequires:  mingw32-libjson-c-devel
  42. BuildRequires:  mingw32-win_iconv-devel
  43. #BuildRequires:  mingw32-libintl
  44. #BuildRequires:  mingw32-libintl-devel
  45. BuildRequires:  mingw32-libtool
  46. BuildRequires:  mingw32-glib2-devel
  47. BuildRequires:  mingw32-gettext-runtime
  48. BuildRequires:  mingw32-gettext-tools
  49. BuildRequires:  autoconf
  50. BuildRequires:  automake
  51. #BuildRequires:  coreutils
  52. #BuildRequires:  diffutils
  53. BuildRequires:  git
  54. BuildRequires:  intltool
  55. BuildRequires:  orc
  56. Requires:       %{name}-lang = %{version}
  57.  
  58. %description
  59. PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications. It allows you to do
  60. advanced operations on your sound data as it passes between your application and your hardware. Things like transferring
  61. the audio to a different machine, changing the sample format or channel count and mixing several sounds into one are
  62. easily achieved using a sound server.
  63.  
  64. PulseAudio is an integral part of all relevant modern Linux distributions and used in various mobile devices by multiple vendors.
  65.  
  66.  
  67. %package devel
  68. Summary:        PulseAudio desktop sound server (development files)
  69. Group:          Development/Libraries
  70.  
  71. %description devel
  72. This package contains all necessary include files and libraries needed to develop applications that require these.
  73.  
  74.  
  75. %{_mingw32_debug_package}
  76.  
  77. %lang_package
  78.  
  79.  
  80. %prep
  81. %setup -q -n pulseaudio
  82. %patch20 -p1
  83.  
  84. %build
  85. PATH=${PATH}:%{_mingw32_bindir} ACLOCAL_PATH=%{_mingw32_datadir}/aclocal/ NOCONFIGURE=1 ./bootstrap.sh
  86. #PATH=${PATH}:%{_mingw32_bindir} ACLOCAL_PATH=%{_mingw32_datadir}/aclocal/ autoreconf
  87. # --disable-orc enables builds on OpenSUSE 13.1 to succeed.
  88. echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
  89. CFLAGS="$CFLAGS -g -O0" %{_mingw32_configure} \
  90.     --enable-orc \
  91.     --enable-waveout \
  92.     --enable-shared --disable-static
  93. mingw32-make %{?_smp_mflags}
  94.  
  95.  
  96. %install
  97. make DESTDIR=$RPM_BUILD_ROOT install
  98.  
  99. # Workaround these files being placed in the wrong place.
  100. # Observed with Pulseaudio 3.0 on OpenSuse 12.1 through 13.1
  101. mv -t $RPM_BUILD_ROOT%{_mingw32_bindir} $RPM_BUILD_ROOT%{_mingw32_libdir}/bin/libpulsecommon-%{dll_version}.dll
  102. mv -t $RPM_BUILD_ROOT%{_mingw32_libdir} $RPM_BUILD_ROOT%{_mingw32_libdir}/pulseaudio/libpulsecommon-%{dll_version}.dll.a
  103.  
  104. # Copy all non-dlopen DLLs to /bin
  105. mv -t $RPM_BUILD_ROOT%{_mingw32_bindir} $RPM_BUILD_ROOT%{_mingw32_libdir}/pulse-%{dll_version}/bin/*
  106. rm $RPM_BUILD_ROOT%{_mingw32_libdir}/pulse-%{dll_version}/modules/*.dll.a
  107.  
  108. %find_lang pulseaudio
  109.  
  110.  
  111. %clean
  112. rm -rf $RPM_BUILD_ROOT
  113.  
  114.  
  115. %files
  116. %defattr(-, root, root)
  117. %{_mingw32_sysconfdir}
  118. %{_mingw32_bindir}/pacat.exe
  119. %{_mingw32_bindir}/pactl.exe
  120. %{_mingw32_bindir}/pamon.exe
  121. %{_mingw32_bindir}/paplay.exe
  122. %{_mingw32_bindir}/parec.exe
  123. %{_mingw32_bindir}/parecord.exe
  124. %{_mingw32_bindir}/pulseaudio.exe
  125. %{_mingw32_bindir}/libpulsecommon-%{dll_version}.dll
  126. %{_mingw32_bindir}/libpulsecore-%{dll_version}.dll
  127. %{_mingw32_bindir}/libpulse-mainloop-glib-0.dll
  128. %{_mingw32_bindir}/libpulse-simple-0.dll
  129. %{_mingw32_bindir}/libpulse-0.dll
  130. %{_mingw32_bindir}/libcli.dll
  131. %{_mingw32_bindir}/libprotocol-*.dll
  132. %{_mingw32_libdir}/pulse-%{dll_version}/modules/*.dll
  133. %dir %{_mingw32_libdir}/pulse-%{dll_version}
  134. %dir %{_mingw32_libdir}/pulse-%{dll_version}/modules
  135. %exclude %{_mingw32_bindir}/esdcompat
  136. %exclude %{_mingw32_datadir}/vala
  137. %exclude %{_mingw32_datadir}/zsh
  138. %{_mingw32_mandir}
  139.  
  140. %files lang -f pulseaudio.lang
  141. %defattr(-,root,root)
  142.  
  143. %files devel
  144. %defattr(-, root, root)
  145. %{_mingw32_includedir}/pulse/
  146. %{_mingw32_libdir}/libpulsecommon-%{dll_version}.dll.a
  147. %{_mingw32_libdir}/libpulsecore-%{dll_version}.dll.a
  148. %{_mingw32_libdir}/libpulse-mainloop-glib.dll.a
  149. %{_mingw32_libdir}/libpulse-simple.dll.a
  150. %{_mingw32_libdir}/libpulse.dll.a
  151. %{_mingw32_libdir}/pkgconfig/libpulse.pc
  152. %{_mingw32_libdir}/pkgconfig/libpulse-mainloop-glib.pc
  153. %{_mingw32_libdir}/pkgconfig/libpulse-simple.pc
  154. %{_mingw32_libdir}/cmake/PulseAudio/PulseAudioConfig*.cmake
  155.  
  156. %changelog
RAW Paste Data