%global reltag rc4 %global commit0 f2e0a32368e73a26746b0ac04a9182b23256825f %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: libprojectM Version: 3.1.1 Release: 0.6.rc4%{?dist} Summary: The libraries for the projectM music visualization plugin License: LGPLv2+ URL: https://github.com/projectM-visualizer/projectm Source0: https://github.com/projectM-visualizer/projectm/archive/%{version}-%{reltag}/libprojectM-%{version}-%{reltag}.tar.gz #Source0: https://github.com/projectM-visualizer/projectm/archive/%%{commit0}/%%{name}-%%{shortcommit0}.tar.gz Patch1: projectM-disable_native_plugins.patch Patch2: 3c431fc43e8318bdcd48b66eb50e07655e915f80.patch Patch3: projectm-3.1.0-autotools.patch BuildRequires: libtool BuildRequires: gcc-c++ BuildRequires: libgomp BuildRequires: pkgconfig(glesv2) #BuildRequires: pkgconfig(glew) #BuildRequires: pkgconfig(glm) BuildRequires: glm-devel BuildRequires: pkgconfig(sdl2) # libprojectM-qt BuildRequires: pkgconfig(Qt5Core) #BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5OpenGL) BuildRequires: pkgconfig(Qt5Widgets) #BuildRequires: pkgconfig(Qt5Xml) #BuildRequires: cmake(Qt5LinguistTools) #projectM-jack BuildRequires: jack-audio-connection-kit-devel BuildRequires: desktop-file-utils %if !0%{?rhel} #projectM-libvisual #BuildRequires: libvisual-devel = 1:0.4.0 %endif #projectM-pulseaudio BuildRequires: pkgconfig(libpulse) BuildRequires: dejavu-sans-mono-fonts BuildRequires: dejavu-sans-fonts Requires: dejavu-sans-mono-fonts Requires: dejavu-sans-fonts Provides: libprojectM-qt = %{version}-%{release} Obsoletes: libprojectM-qt < %{version}-%{release} Obsoletes: projectM-libvisual < %{version}-%{release} #if 0%%{?fedora} = 29 #xcludearch: %%{ix86} #endif %description projectM is an awesome music visualizer. There is nothing better in the world of Unix. projectM's greatness comes from the hard work of the community. Users like you can create presets that connect music with incredible visuals. projectM is an LGPL'ed reimplementation of Milkdrop under OpenGL. All projectM requires is a video card with 3D acceleration and your favorite music. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package qt Summary: The Qt frontend to the projectM visualization plugin License: GPLv2+ %description qt projectM-qt is a GUI designed to enhance the projectM user and preset writer experience. It provides a way to browse, search, rate presets and setup preset playlists for projectM-jack and projectM-pulseaudio. %package qt-devel Summary: Development files for %{name}-qt Requires: %{name}-qt = %{version}-%{release} Requires: pkgconfig libprojectM-devel qt-devel %description qt-devel The %{name}-qt-devel package contains libraries and header files for developing applications that use %{name}-qt. %package -n projectM-jack Summary: The projectM visualization plugin for jack License: GPLv2+ and MIT %description -n projectM-jack This package allows the use of the projectM visualization plugin through any JACK compatible applications. %package -n projectM-pulseaudio Summary: The projectM visualization plugin for pulseaudio License: GPLv2+ and MIT %description -n projectM-pulseaudio This package allows the use of the projectM visualization plugin through any pulseaudio compatible applications. %package -n projectM-libvisual Summary: The projectM visualization plugin for libvisual License: GPLv2+ and LGPLv2+ and MIT %description -n projectM-libvisual This package allows the use of the projectM visualization plugin through any libvisual compatible applications. %prep #setup -q -n projectm-%%{commit0} %setup -q -n projectm-%{version}-%{reltag} #patch1 -p1 %patch2 -p1 chmod -x LICENSE.txt find -name "*.?pp" -exec chmod -x {} ';' find -name "*.c" -exec chmod -x {} ';' find -name "*.h" -exec chmod -x {} ';' %build #export CXXFLAGS="%{optflags} -Wl,--as-needed" ./autogen.sh # from rpm -E %%{cmake_kf5} to detect qmake in /usr/lib64/qt5/bin # export PATH="%{_libdir}/qt5/bin:$PATH" ; #QMAKE=%%{_qt5_qmake} #QMAKE_FLAGS=%%{?_qt5_qmake_flags} %configure --disable-static --disable-rpath --enable-sdl --enable-threading --enable-gles --enable-qt %make_build %install %make_install find %{buildroot} -name '*.la' -delete #replace by symlink ln -sf %{_datadir}/fonts/TTF/{Vera.ttf,VeraMono.ttf} %{buildroot}%{_datadir}/projectM/fonts/ desktop-file-validate %{buildroot}%{_datadir}/applications/projectM-pulseaudio.desktop desktop-file-validate %{buildroot}%{_datadir}/applications/projectM-jack.desktop %ldconfig_scriptlets %files %doc src/libprojectM/ChangeLog %doc AUTHORS.txt README.md %license src/libprojectM/COPYING %{_bindir}/projectM-pulseaudio %{_bindir}/projectMSDL %{_bindir}/projectM-unittest %{_libdir}/libprojectM.so.* %{_datadir}/projectM/ %{_datadir}/icons/hicolor/scalable/apps/projectM.svg %{_datadir}/applications/projectM-pulseaudio.desktop %{_mandir}/man1/projectM-pulseaudio.1.* %files devel %{_includedir}/libprojectM %{_libdir}/libprojectM.so %{_libdir}/pkgconfig/libprojectM.pc %if 0 %ldconfig_scriptlets qt %files qt %license src/projectM-qt/COPYING %{_libdir}/libprojectM-qt*.so.* %files qt-devel %doc src/projectM-qt/ReadMe %{_includedir}/%{name}-qt %{_libdir}/libprojectM-qt*.so %{_libdir}/pkgconfig/libprojectM-qt*.pc %endif %files -n projectM-jack %doc src/projectM-jack/ChangeLog %license src/projectM-jack/COPYING %{_bindir}/projectM-jack %{_datadir}/applications/projectM-jack.desktop %{_mandir}/man1/projectM-jack.1.* %files -n projectM-pulseaudio %doc src/projectM-pulseaudio/ChangeLog %license src/projectM-pulseaudio/COPYING %{_bindir}/projectM-pulseaudio %{_datadir}/applications/projectM-pulseaudio.desktop %{_datadir}/man/man1/projectM-pulseaudio.1.gz %if 0 && !0%{?rhel} %files -n projectM-libvisual %doc src/projectM-libvisual/AUTHORS src/projectM-libvisual/ChangeLog %license src/projectM-libvisual/COPYING %{_libdir}/libvisual-0.4/ %endif %changelog * Thu Jun 13 2019 Sérgio Basto - 3.1.1-0.6.rc4.gitf2e0a32 - update to rc4 final * Wed Apr 24 2019 Sérgio Basto - 3.1.1-0.5.rc3 - Desktop improvments more drop SDL * Sun Mar 17 2019 Sérgio Basto - 3.1.1-0.4.rc3 - Minor improvements and try to build on i686 * Thu Mar 14 2019 Sérgio Basto - 3.1.1-0.3.rc3 - Add Provides/Obsoletes for libprojectM-qt and projectM-libvisual * Wed Mar 13 2019 Sérgio Basto - 3.1.1-0.2.rc3 - Can't workaround FTBFS on i686 - Minor fix in desktop file * Wed Mar 13 2019 Sérgio Basto - 3.1.1-0.1.rc3 - Update to 3.1.1-rc3 * Fri Feb 01 2019 Fedora Release Engineering - 2.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Aug 23 2018 Nicolas Chauvet - 2.1.0-9 - Rebuilt for glew 2.1.0 * Fri Jul 13 2018 Fedora Release Engineering - 2.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 2.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 2.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jan 10 2017 Orion Poplawski - 2.1.0-3 - Rebuild for glew 2.0.0 * Sat Mar 19 2016 Sérgio Basto - 2.1.0-2 - On epel (6 and 7) disable projectM-libvisual. * Wed Mar 16 2016 Sérgio Basto - 2.1.0-1 - Update to 2.1.0 . - deleted: 01-change-texture-size.patch, upstreamed. - deleted: 04-change-preset-duration.patch, upstreamed. - deleted: libprojectM-USE_THREADS.patch, configurable. - deleted: libprojectM-soname.patch, configurable. - deleted: libprojectM-fonts.patch, configurable. - deleted: libprojectM-freetype25.patch, it is build well with freetype. - Add patch to fix FTBFS with GCC6, courtesy of Ralf Corsepius. - Add as sub packages: libprojectM-qt, libprojectM-qt-devel, projectM-jack, projectM-libvisual and projectM-pulseaudio. - Also checked that remove_pulse_browser_h.patch, projectM-pulseaudio-stat.patch and projectM-libvisual-gcc46.patch are upstreamed. - Add libprojectM-2.1.0-paths.patch and libprojectM-qt-2.1.0-paths.patch, to fix _libdir paths - Using fedora-review fixed: mix tabs and spaces, unused-direct-shlib-dependency, wrong-script-end-of-line-encoding and spurious-executable-perm. * Thu Feb 04 2016 Fedora Release Engineering - 2.0.1-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 14 2016 Adam Jackson - 2.0.1-27 - Rebuild for glew 1.13 * Wed Jun 17 2015 Fedora Release Engineering - 2.0.1-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 2.0.1-25 - Rebuilt for GCC 5 C++11 ABI change * Sun Aug 17 2014 Fedora Release Engineering - 2.0.1-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Mon Jun 30 2014 Yaakov Selkowitz - 2.0.1-23 - Fix FTBFS with freetype-2.5 (#1106066) * Sat Jun 07 2014 Fedora Release Engineering - 2.0.1-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Nov 18 2013 Dave Airlie - 2.0.1-21 - rebuilt for GLEW 1.10 * Sat Aug 03 2013 Fedora Release Engineering - 2.0.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 2.0.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Dec 13 2012 Adam Jackson - 2.0.1-18 - Rebuild for glew 1.9.0 * Thu Jul 26 2012 Rex Dieter 2.0.1-17 - rebuild (glew) * Thu Jul 19 2012 Fedora Release Engineering - 2.0.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 1 2012 Michael Schwendt - 2.0.1-15 - Enhancement of the patch in 2.0.1-11: also override invalid font paths passed in by applications as these lead to an immediate crash. (#664088) - Make -devel base pkg dep arch-specific. * Tue Feb 28 2012 Fedora Release Engineering - 2.0.1-14 - Rebuilt for c++ ABI breakage * Fri Jan 13 2012 Fedora Release Engineering - 2.0.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Jun 20 2011 ajax@redhat.com - 2.0.1-12 - Rebuild for new glew soname * Sat May 7 2011 Michael Schwendt - 2.0.1-11 - Also BuildRequires the desired font packages for the safety-checks. - Drop obsolete README.fedora file since users need not modify their config file manually anymore to prevent projectM from crashing. - Revise fonts patch: check that user's configured font files exist, fall back to our defaults, add safety-check in spec file, replace font paths in prep section. (#698404, #698381) * Mon Apr 25 2011 Jameson Pugh - 2.0.1-10 - Fixed fonts patch * Wed Mar 23 2011 Jameson Pugh - 2.0.1-9 - Correct typo in requirements * Tue Mar 15 2011 Jameson Pugh - 2.0.1-8 - Replace obsolete bitstream-vera font requirements with dejavu * Sat Jul 17 2010 Jameson Pugh (imntreal@gmail.com) - 2.0.1-7 - Updated font patch with Orcan's changes * Sat Jul 10 2010 Jameson Pugh (imntreal@gmail.com) - 2.0.1-6 - Added patches so clementine can be built against it * Fri May 21 2010 Jameson Pugh (imntreal@gmail.com) - 2.0.1-5 - Don't create fonts directory - Add a README.fedora for instructions on upgrading from -3 * Mon Apr 05 2010 Jameson Pugh (imntreal@gmail.com) - 2.0.1-4 - Got rid of font symlinks * Mon Feb 08 2010 Jameson Pugh (imntreal@gmail.com) - 2.0.1-3 - Patch to remove the USE_THREADS option pending an update from upstream * Sun Jan 10 2010 Jameson Pugh (imntreal@gmail.com) - 2.0.1-2 - Made needed soname bump * Sun Dec 13 2009 Jameson Pugh (imntreal@gmail.com) - 2.0.1-1 - New release * Mon Oct 12 2009 Jameson Pugh (imntreal@gmail.com) - 1.2.0r1300-1 - SVN Release to prepare for v2 * Wed Feb 25 2009 Jameson Pugh (imntreal@gmail.com) - 1.2.0-9 - Aparently stdio.h didn't need to be included in BuiltinParams.cpp before, but is now * Tue Feb 24 2009 Jameson Pugh (imntreal@gmail.com) - 1.2.0-8 - Font packages renamed * Fri Jan 02 2009 Jameson Pugh (imntreal@gmail.com) - 1.2.0-7 - Per recommendation, switched font packages from bitstream to dejavu * Mon Dec 22 2008 Jameson Pugh (imntreal@gmail.com) - 1.2.0-6 - Updated font package names * Tue Nov 04 2008 Jameson Pugh (imntreal@gmail.com) - 1.2.0-5 - Moved sed command from prep to install - Correct libprojectM.pc patch * Thu Oct 30 2008 Jameson Pugh (imntreal@gmail.com) - 1.2.0-4 - Removed patch for ChangeLog, and used sed command in the spec - Added VERBOSE=1 to the make line - Added patch to correct libprojectM.pc * Wed Oct 29 2008 Jameson Pugh (imntreal@gmail.com) - 1.2.0-3 - Added a patch to correct ChangeLog EOL encoding - Cleaned up all Requires and BuildRequires - Corrected ownership of include/libprojectM and data/projectM - Removed unnecessary cmake arguments * Wed Sep 24 2008 Jameson Pugh (imntreal@gmail.com) - 1.2.0-2 - Removed fonts from package - Added symlinks to the fonts due to hard coded programing * Tue Sep 02 2008 Jameson Pugh (imntreal@gmail.com) - 1.2.0-1 - New release - 64-bit patch no longer needed * Mon Mar 31 2008 Jameson Pugh (imntreal@gmail.com) - 1.1-1 - New release * Wed Dec 05 2007 Jameson Pugh - 1.01-1 - Initial public release of the package