]> git.pld-linux.org Git - packages/OpenAL.git/blame - OpenAL.spec
- new Source0 URL, updated to 1.19.1
[packages/OpenAL.git] / OpenAL.spec
CommitLineData
68071dbf 1#
a35955a2 2# Conditional build:
f2c99d8a 3%bcond_without alsa # ALSA backend
b5f2479e 4%bcond_without jack # JACK backend
f2c99d8a
JB
5%bcond_without portaudio # PortAudio backend
6%bcond_without pulseaudio # PulseAudio backend
bd9b58be
JB
7%bcond_with sdl # SDL2 backend
8%bcond_with sse # force use of SSE instructions (x86)
9%bcond_with sse2 # force use of SSE2 instructions (x86)
f2c99d8a 10%bcond_without gui # alsoft-config GUI
99cf5ae3 11%bcond_with qt4 # Qt 4 instead of Qt 5 for GUI
a26f1dac 12#
bd9b58be
JB
13%ifarch pentium3 pentium4
14%define with_sse 1
15%endif
16%ifarch pentium4
17%define with_sse2 1
18%endif
d451b59a 19Summary: Open Audio Library
8be14136 20Summary(pl.UTF-8): Otwarta Biblioteka Dźwięku
6a3db3d8 21Name: OpenAL
bd9b58be 22Version: 1.19.1
f2c99d8a 23Release: 1
65437b48 24License: LGPL v2+
68071dbf 25Group: Libraries
bd9b58be
JB
26Source0: http://openal-soft.org/openal-releases/openal-soft-%{version}.tar.bz2
27# Source0-md5: af6f148c342276a51ea9c33ebd303f78
827050d4 28URL: http://www.openal.org/
bd9b58be 29%{?with_sdl:BuildRequires: SDL2-devel >= 2}
e62907a5 30%{?with_alsa:BuildRequires: alsa-lib-devel}
99cf5ae3 31BuildRequires: cmake >= 3.0.2
b5f2479e 32%{?with_jack:BuildRequires: jack-audio-connection-kit-devel}
89d1fa49 33BuildRequires: pkgconfig
7e80d8dd 34%{?with_portaudio:BuildRequires: portaudio-devel}
f953b352 35%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
60652dc3 36BuildRequires: rpmbuild(macros) >= 1.605
f2c99d8a 37%if %{with gui}
99cf5ae3 38%if %{with qt4}
f2c99d8a
JB
39BuildRequires: QtCore-devel >= 4.8.0
40BuildRequires: QtGui-devel >= 4.8.0
41BuildRequires: qt4-build >= 4.8.0
99cf5ae3
JB
42%else
43BuildRequires: Qt5Core-devel >= 5
44BuildRequires: Qt5Gui-devel >= 5
45BuildRequires: Qt5Widgets-devel >= 5
46BuildRequires: qt5-build >= 5
47%endif
f2c99d8a 48%endif
6a3db3d8 49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
6a3db3d8 51%description
52OpenAL, the Open Audio Library, is a joint effort to create an open,
53vendor-neutral, cross-platform API for interactive, primarily
54spatialized audio. OpenAL's primary audience are application
55developers and desktop users that rely on portable standards like
56OpenGL, for games and other multimedia applications. OpenAL is already
57supported by a number of hardware vendors and developers.
58
a4959810
JR
59%description -l pl.UTF-8
60OpenAL, otwarta biblioteka dźwięku, to połączony wysiłek w celu
61stworzenia otwartego, niezależnego od producentów, międzyplatformowego
62interfejsu projektowania aplikacji w części obsługi dźwięku.
63Biblioteka adresowana jest do twórców aplikacji i użytkowników,
64którzy wybierają przenośne standardy, jak OpenGL, w grach i
65aplikacjach multimedialnych. OpenAL posiada już wsparcie wielu
66dostarczycieli sprzętu i programistów.
d451b59a 67
6a3db3d8 68%package devel
d451b59a 69Summary: Headers for OpenAL
8be14136 70Summary(pl.UTF-8): Pliki nagłówkowe do OpenAL
68071dbf 71Group: Development/Libraries
e62907a5 72Requires: %{name} = %{version}-%{release}
6a3db3d8 73
74%description devel
d451b59a 75Header files for OpenAL-based programs.
6a3db3d8 76
a4959810
JR
77%description devel -l pl.UTF-8
78Pliki nagłówkowe potrzebne przy budowaniu programów opartych na
d451b59a 79OpenAL.
80
f2c99d8a
JB
81%package gui
82Summary: OpenAL configuration GUI
83Summary(pl.UTF-8): Graficzny interfejs do konfiguracji biblioteki OpenAL
84Group: X11/Applications/Sound
85Requires: %{name} = %{version}-%{release}
86Requires: QtCore >= 4.8.0
87Requires: QtGui >= 4.8.0
88
89%description gui
90OpenAL configuration GUI.
91
92%description gui -l pl.UTF-8
93Graficzny interfejs do konfiguracji biblioteki OpenAL.
94
6a3db3d8 95%prep
7e80d8dd 96%setup -q -n openal-soft-%{version}
68071dbf 97
6a3db3d8 98%build
99cf5ae3
JB
99cd build
100%cmake .. \
b5f2479e
JB
101 %{!?with_alsa:-DALSOFT_BACKEND_ALSA=OFF} \
102 %{!?with_jack:-DALSOFT_BACKEND_JACK=OFF} \
103 %{!?with_portaudio:-DALSOFT_BACKEND_PORTAUDIO=OFF} \
99cf5ae3 104 %{!?with_pulseaudio:-DALSOFT_BACKEND_PULSEAUDIO=OFF} \
bd9b58be
JB
105 %{?with_sdl:-DALSOFT_BACKEND_SDL2=ON} \
106 %{!?with_sse:-DALSOFT_ENABLE_SSE_CODEGEN=OFF} \
107 %{!?with_sse2:-DALSOFT_ENABLE_SSE2_CODEGEN=OFF} \
99cf5ae3
JB
108 -DALSOFT_EXAMPLES=OFF \
109 %{!?with_gui:-DALSOFT_NO_CONFIG_UTIL=ON} \
110 %{?with_qt4:-DALSOFT_NO_QT5=ON} \
65437b48 111
7e80d8dd 112%{__make}
6a3db3d8 113
114%install
115rm -rf $RPM_BUILD_ROOT
6ce9e958 116install -d $RPM_BUILD_ROOT%{_sysconfdir}/openal
d451b59a 117
99cf5ae3 118%{__make} -C build install \
68071dbf 119 DESTDIR=$RPM_BUILD_ROOT
d451b59a 120
c06f4ed0 121install -p alsoftrc.sample $RPM_BUILD_ROOT%{_sysconfdir}/openal/alsoft.conf
6ce9e958 122
b5f2479e 123# these look not really useful
96987817 124%{__rm} $RPM_BUILD_ROOT%{_bindir}/altonegen
b5f2479e 125
6a3db3d8 126%clean
127rm -rf $RPM_BUILD_ROOT
128
404a1bc6
JB
129%post -p /sbin/ldconfig
130%postun -p /sbin/ldconfig
131
6a3db3d8 132%files
3f81b215 133%defattr(644,root,root,755)
6ce9e958 134%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openal
ce19b7ae 135%attr(755,root,root) %{_bindir}/makehrtf
65437b48 136%attr(755,root,root) %{_bindir}/openal-info
a26f1dac 137%attr(755,root,root) %{_libdir}/libopenal.so.*.*.*
65437b48 138%attr(755,root,root) %ghost %{_libdir}/libopenal.so.1
f2c99d8a 139%{_datadir}/openal
6a3db3d8 140
141%files devel
142%defattr(644,root,root,755)
a26f1dac 143%attr(755,root,root) %{_libdir}/libopenal.so
68071dbf 144%{_includedir}/AL
a26f1dac 145%{_pkgconfigdir}/openal.pc
99cf5ae3 146%{_libdir}/cmake/OpenAL
f2c99d8a
JB
147
148%if %{with gui}
149%files gui
150%defattr(644,root,root,755)
151%attr(755,root,root) %{_bindir}/alsoft-config
152%endif
This page took 0.059225 seconds and 4 git commands to generate.