%define major 1 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d %define staticdevelname %mklibname %{name} -d -s Name: alure Version: 1.2 Release: %mkrel 9 Summary: Audio Library Tools REloaded Group: System/Libraries License: LGPLv2+ URL: http://kcat.strangesoft.net/alure.html Source0: http://kcat.strangesoft.net/%{name}-releases/%{name}-%{version}.tar.bz2 Patch0: alure-1.2-gcc47.patch Patch1: alure-1.2-mga-link-libdumb-0.9.3.patch BuildRequires: cmake BuildRequires: dumb-devel BuildRequires: pkgconfig(openal) BuildRequires: pkgconfig(fluidsynth) BuildRequires: pkgconfig(flac) BuildRequires: pkgconfig(libmodplug) BuildRequires: pkgconfig(libmpg123) %description ALURE is a utility library to help manage common tasks with OpenAL applications. This includes device enumeration and initialization, file loading, and streaming. #------------------------------------------------------------------------------ %package -n %{libname} Summary: %{name} library Group: System/Libraries %description -n %{libname} Libraries needed by %{name}. ALURE is a utility library to help manage common tasks with OpenAL applications. This includes device enumeration and initialization, file loading, and streaming. #------------------------------------------------------------------------------ %package -n %{develname} Summary: %{name} development files Group: Development/C++ License: LGPLv2+,GPLv2+ Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-devel = %{version}-%{release} %description -n %{develname} Libraries and header files to develop applications that use %{name}. ALURE is a utility library to help manage common tasks with OpenAL applications. This includes device enumeration and initialization, file loading, and streaming. #------------------------------------------------------------------------------ %package -n %{staticdevelname} Summary: %{name} static library Group: Development/C++ License: LGPLv2+,GPLv2+ Requires: %{develname} = %{version}-%{release} Provides: %{name}-static-devel = %{version}-%{release} Provides: lib%{name}-static-devel = %{version}-%{release} %description -n %{staticdevelname} Static library file to develop applications that use %{name}. ALURE is a utility library to help manage common tasks with OpenAL applications. This includes device enumeration and initialization, file loading, and streaming. #------------------------------------------------------------------------------ %prep %setup -q %autopatch -p1 %build %cmake -DMODPLUG=ON %install %makeinstall_std -C build %files -n %{libname} %{_libdir}/libalure.so.%{major} %{_libdir}/libalure.so.%{major}.* %files -n %{develname} %doc COPYING %{_docdir}/%{name} %{_bindir}/%{name}* %{_includedir}/AL %{_libdir}/lib%{name}.so %{_libdir}/pkgconfig/%{name}.pc %files -n %{staticdevelname} %{_libdir}/lib%{name}-static.a %{_libdir}/pkgconfig/%{name}-static.pc %changelog * Tue Feb 09 2016 umeabot <umeabot> 1.2-9.mga6 + Revision: 951671 - Mageia 6 Mass Rebuild * Tue Jan 06 2015 akien <akien> 1.2-8.mga5 + Revision: 808781 - Enable modplug support - Fix dynamic loading of libdumb 0.9.3 * Wed Oct 15 2014 umeabot <umeabot> 1.2-7.mga5 + Revision: 741945 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.2-6.mga5 + Revision: 686492 - Rebuild to fix library dependencies * Tue Sep 16 2014 umeabot <umeabot> 1.2-5.mga5 + Revision: 677746 - Mageia 5 Mass Rebuild * Sun Mar 02 2014 david-david <david-david> 1.2-4.mga5 + Revision: 598571 - use '%%apply_patches' macro - prefer pkgconfig packages on BR - clean spec file - fix files for static-devel package + umeabot <umeabot> - Mageia 4 Mass Rebuild * Fri Jan 11 2013 umeabot <umeabot> 1.2-3.mga3 + Revision: 345523 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Jul 26 2012 sander85 <sander85> 1.2-2.mga3 + Revision: 274543 - Add patch from Fedora to fix build with gcc 4.7 * Tue Sep 06 2011 tv <tv> 1.2-1.mga2 + Revision: 139182 - fix file list - new release * Thu Jun 30 2011 ze <ze> 1.1-2.mga2 + Revision: 116338 - add missing provides for devel and static * Thu Jun 30 2011 ze <ze> 1.1-1.mga2 + Revision: 116332 - imported package alure * Thu Jun 30 2011 Zé <ze@mageia.org> 1.1-1 - first package