Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # comment out when not pre-release
- #define prel rc1
- %define rel 1
- %define major 1
- %define libname %mklibname %{name} %{major}
- %define develname %mklibname %{name} -d
- %define build_doc 1
- Name: audaspace
- Version: 1.0
- Release: %mkrel %{?prel:0.%prel.}%{rel}
- Summary: A feature rich high level audio library
- License: Apache License
- Group: Sound/Utilities
- URL: http://audaspace.github.io/
- Source0: https://github.com/audaspace/%{name}/archive/%{version}-%{?prel}/%{name}-%{version}%{?prel:-%prel}.tar.gz
- BuildRequires: cmake
- BuildRequires: ffmpeg-devel
- BuildRequires: pkgconfig(jack)
- BuildRequires: pkgconfig(openal)
- BuildRequires: pkgconfig(python3)
- BuildRequires: pkgconfig(sdl2)
- BuildRequires: pkgconfig(sndfile)
- BuildRequires: pythonegg(3)(setuptools)
- %description
- Audaspace (pronounced "outer space") is a high level audio library written
- in C++ with language bindings for Python for example.
- It started out as the audio engine of the 3D modelling application Blender
- and is now released as a standalone library.
- #------------------------------------------------
- %if %build_doc
- %package doc
- Summary: Documentation for %{name}
- Group: Documentation
- BuildArch: noarch
- BuildRequires: doxygen
- BuildRequires: graphviz
- BuildRequires: pythonegg(3)(audaspace)
- BuildRequires: pythonegg(3)(sphinx)
- %description doc
- This package contains documentation for %{name}.
- %endif
- #------------------------------------------------
- %package -n %{libname}
- Summary: Library for %{name}
- Group: System/Libraries
- %description -n %{libname}
- Audaspace (pronounced "outer space") is a high level audio library written
- in C++ with language bindings for Python for example.
- It started out as the audio engine of the 3D modelling application Blender
- and is now released as a standalone library.
- This package contains library files for %{name}.
- #------------------------------------------------
- %package -n %{develname}
- Summary: Development package for %{name}
- Group: Development/C++
- Requires: %{libname} = %{version}-%{release}
- Provides: %{name}-devel = %{version}-%{release}
- %description -n %{develname}
- This package contains header files for development with %{name}.
- #------------------------------------------------
- %package -n python3-%{name}
- Summary: Python3 bindings package for %{name}
- Group: Development/Python
- %description -n python3-%{name}
- This package contains Python3 bindings for %{name}.
- #------------------------------------------------
- %package -n python3-%{name}-devel
- Summary: Python3 development package for %{name}
- Group: Development/Python
- Requires: python3-%{name} = %{version}-%{release}
- %description -n python3-%{name}-devel
- This package contains Python3 header files for development with %{name}.
- #------------------------------------------------
- %prep
- %setup -q -n %{name}-%{version}%{?prel:-%prel}
- %build
- %cmake \
- -DCMAKE_BUILD_TYPE:STRING=Release \
- -DWITH_STRICT_DEPENDENCIES:BOOL=TRUE \
- -DUSE_SDL2:BOOL=TRUE \
- %if %build_doc == 1
- -DSPHINX_EXECUTABLE=%{_bindir}/sphinx-build-3.4 \
- -DDOCUMENTATION_INSTALL_PATH:PATH=%{_docdir}/%{name}-doc \
- %endif
- %if %build_doc == 0
- -DWITH_DOCS:BOOL=FALSE \
- -DWITH_BINDING_DOCS:BOOL=FALSE \
- %endif
- -DDEFAULT_PLUGIN_PATH:PATH=%{_libdir}/%{name}/plugins
- %make
- %install
- %makeinstall_std -C build
- %files
- %doc AUTHORS LICENSE README.md
- %{_bindir}/*
- %if %build_doc
- %files doc
- %{_docdir}/%{name}-doc/
- %endif
- %files -n %{libname}
- %doc AUTHORS LICENSE README.md
- %{_libdir}/lib%{name}*.so.%{major}*
- %dir %{_libdir}/%{name}/plugins
- %{_libdir}/%{name}/plugins/libaud*.so.%{major}*
- %files -n %{develname}
- %doc AUTHORS LICENSE README.md
- %{_includedir}/%{name}/
- %{_libdir}/lib%{name}*.so
- %{_libdir}/%{name}/plugins/libaud*.so
- %{_libdir}/pkgconfig/%{name}.pc
- %files -n python3-%{name}
- %doc AUTHORS LICENSE README.md
- %{python3_sitearch}/aud.cpython-34m.so
- %{python3_sitearch}/%{name}-%{version}%{?prel}-py%{py3ver}.egg-info/
- %files -n python3-%{name}-devel
- %doc AUTHORS LICENSE README.md
- %{_includedir}/python*/%{name}/
- %changelog
- * Wed Aug 12 2015 daviddavid <daviddavid> 1.0-1.mga5
- - initial package audaspace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement