Advertisement
david_david

audaspace.spec

Aug 7th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. # comment out when not pre-release
  2. #define prel rc1
  3.  
  4. %define rel 1
  5.  
  6. %define major 1
  7. %define libname %mklibname %{name} %{major}
  8. %define develname %mklibname %{name} -d
  9.  
  10. %define build_doc 1
  11.  
  12. Name: audaspace
  13. Version: 1.0
  14. Release: %mkrel %{?prel:0.%prel.}%{rel}
  15. Summary: A feature rich high level audio library
  16. License: Apache License
  17. Group: Sound/Utilities
  18. URL: http://audaspace.github.io/
  19. Source0: https://github.com/audaspace/%{name}/archive/%{version}-%{?prel}/%{name}-%{version}%{?prel:-%prel}.tar.gz
  20. BuildRequires: cmake
  21. BuildRequires: ffmpeg-devel
  22. BuildRequires: pkgconfig(jack)
  23. BuildRequires: pkgconfig(openal)
  24. BuildRequires: pkgconfig(python3)
  25. BuildRequires: pkgconfig(sdl2)
  26. BuildRequires: pkgconfig(sndfile)
  27. BuildRequires: pythonegg(3)(setuptools)
  28.  
  29.  
  30. %description
  31. Audaspace (pronounced "outer space") is a high level audio library written
  32. in C++ with language bindings for Python for example.
  33. It started out as the audio engine of the 3D modelling application Blender
  34. and is now released as a standalone library.
  35.  
  36. #------------------------------------------------
  37. %if %build_doc
  38. %package doc
  39. Summary: Documentation for %{name}
  40. Group: Documentation
  41. BuildArch: noarch
  42. BuildRequires: doxygen
  43. BuildRequires: graphviz
  44. BuildRequires: pythonegg(3)(audaspace)
  45. BuildRequires: pythonegg(3)(sphinx)
  46.  
  47. %description doc
  48. This package contains documentation for %{name}.
  49. %endif
  50. #------------------------------------------------
  51.  
  52. %package -n %{libname}
  53. Summary: Library for %{name}
  54. Group: System/Libraries
  55.  
  56. %description -n %{libname}
  57. Audaspace (pronounced "outer space") is a high level audio library written
  58. in C++ with language bindings for Python for example.
  59. It started out as the audio engine of the 3D modelling application Blender
  60. and is now released as a standalone library.
  61. This package contains library files for %{name}.
  62.  
  63. #------------------------------------------------
  64.  
  65. %package -n %{develname}
  66. Summary: Development package for %{name}
  67. Group: Development/C++
  68. Requires: %{libname} = %{version}-%{release}
  69. Provides: %{name}-devel = %{version}-%{release}
  70.  
  71. %description -n %{develname}
  72. This package contains header files for development with %{name}.
  73.  
  74. #------------------------------------------------
  75.  
  76. %package -n python3-%{name}
  77. Summary: Python3 bindings package for %{name}
  78. Group: Development/Python
  79.  
  80. %description -n python3-%{name}
  81. This package contains Python3 bindings for %{name}.
  82.  
  83. #------------------------------------------------
  84.  
  85. %package -n python3-%{name}-devel
  86. Summary: Python3 development package for %{name}
  87. Group: Development/Python
  88. Requires: python3-%{name} = %{version}-%{release}
  89.  
  90. %description -n python3-%{name}-devel
  91. This package contains Python3 header files for development with %{name}.
  92.  
  93. #------------------------------------------------
  94. %prep
  95. %setup -q -n %{name}-%{version}%{?prel:-%prel}
  96.  
  97. %build
  98. %cmake \
  99. -DCMAKE_BUILD_TYPE:STRING=Release \
  100. -DWITH_STRICT_DEPENDENCIES:BOOL=TRUE \
  101. -DUSE_SDL2:BOOL=TRUE \
  102. %if %build_doc == 1
  103. -DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3.4 \
  104. -DDOCUMENTATION_INSTALL_PATH:PATH=%{_docdir}/%{name}-doc \
  105. %endif
  106. %if %build_doc == 0
  107. -DWITH_DOCS:BOOL=FALSE \
  108. -DWITH_BINDING_DOCS:BOOL=FALSE \
  109. %endif
  110. -DDEFAULT_PLUGIN_PATH:PATH=%{_libdir}/%{name}/plugins
  111. %make
  112.  
  113. %install
  114. %makeinstall_std -C build
  115.  
  116. %files
  117. %doc AUTHORS LICENSE README.md
  118. %{_bindir}/*
  119.  
  120. %if %build_doc
  121. %files doc
  122. %{_docdir}/%{name}-doc/
  123. %endif
  124.  
  125. %files -n %{libname}
  126. %doc AUTHORS LICENSE README.md
  127. %{_libdir}/lib%{name}*.so.%{major}*
  128. %dir %{_libdir}/%{name}/plugins
  129. %{_libdir}/%{name}/plugins/libaud*.so.%{major}*
  130.  
  131. %files -n %{develname}
  132. %doc AUTHORS LICENSE README.md
  133. %{_includedir}/%{name}/
  134. %{_libdir}/lib%{name}*.so
  135. %{_libdir}/%{name}/plugins/libaud*.so
  136. %{_libdir}/pkgconfig/%{name}.pc
  137.  
  138. %files -n python3-%{name}
  139. %doc AUTHORS LICENSE README.md
  140. %{python3_sitearch}/aud.cpython-34m.so
  141. %{python3_sitearch}/%{name}-%{version}%{?prel}-py%{py3ver}.egg-info/
  142.  
  143. %files -n python3-%{name}-devel
  144. %doc AUTHORS LICENSE README.md
  145. %{_includedir}/python*/%{name}/
  146.  
  147. %changelog
  148. * Wed Aug 12 2015 daviddavid <daviddavid> 1.0-1.mga5
  149. - initial package audaspace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement