libprojectM/libprojectM.spec

154 lines
5.0 KiB
RPMSpec
Raw Normal View History

Name: libprojectM
Version: 2.1.0
Release: 1mamba
Summary: An advanced MilkDrop-compatible music visualization library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://projectm.sourceforge.net/
Source: http://downloads.sourceforge.net/project/projectm/%{version}/projectM-complete-%{version}-Source.tar.gz
Patch0: libprojectM-2.0.1-soname.patch
Patch1: libprojectM-2.0.1-USE_THREADS.patch
# patches for clementine
Patch2: 01-change-texture-size.patch
Patch3: 04-change-preset-duration.patch
Patch4: 05-fix-windows-crashes.patch
Patch5: 06-fix-numeric-locale.patch
License: LGPL
BuildRequires: cmake
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libfreetype-devel
BuildRequires: libftgl-devel
BuildRequires: libgcc
BuildRequires: libGL-devel
BuildRequires: libglew-devel
BuildRequires: libGLU-devel
BuildRequires: libgomp-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libstdc++6-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
projectM is an OpenGL based advanced music visualization program for Linux, Mac OSX, and Windows.
It is backward compatible with all the features of Milkdrop 1.x, but has many new toys and enhancements.
%package devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
projectM is an OpenGL based advanced music visualization program for Linux, Mac OSX, and Windows.
It is backward compatible with all the features of Milkdrop 1.x, but has many new toys and enhancements.
This package contains static libraries and header files needed for development.
%package qt
Group: System/Libraries
Summary: An advanced MilkDrop-compatible music visualization library for Qt
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description qt
projectM is an OpenGL based advanced music visualization program for Linux, Mac OSX, and Windows.
It is backward compatible with all the features of Milkdrop 1.x, but has many new toys and enhancements.
This package contains the Qt library.
%package qt-devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}-qt
Requires: %{name}-qt = %{?epoch:%epoch:}%{version}-%{release}
%description qt-devel
projectM is an OpenGL based advanced music visualization program for Linux, Mac OSX, and Windows.
It is backward compatible with all the features of Milkdrop 1.x, but has many new toys and enhancements.
This package contains static libraries and header files needed for development.
%package -n projectM-pulseaudio
Group: Applications/Multimedia
Summary: Pulseaudio tool for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n projectM-pulseaudio
projectM is an OpenGL based advanced music visualization program for Linux, Mac OSX, and Windows.
It is backward compatible with all the features of Milkdrop 1.x, but has many new toys and enhancements.
This package contains the Pulseaudio tool for %{name}.
%prep
%setup -q -n projectM-complete-%{version}-Source
%build
%cmake -d build \
-DCMAKE_BUILD_TYPE=RELEASE \
-DLIB_INSTALL_DIR=%{_libdir} \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DINCLUDE-PROJECTM-TEST:BOOL=FALSE
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post qt -p /sbin/ldconfig
%postun qt -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libprojectM.so.*
%{_libdir}/libvisual-*/actor/libprojectM_libvisual.so
%dir %{_datadir}/projectM
%{_datadir}/projectM/config.inp
%dir %{_datadir}/projectM/fonts
%{_datadir}/projectM/fonts/*.ttf
%{_datadir}/projectM/presets
%{_datadir}/projectM/shaders/blur.cg
%{_datadir}/projectM/shaders/projectM.cg
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libprojectM
%{_includedir}/libprojectM/*.hpp
%{_includedir}/libprojectM/*.h
%{_libdir}/libprojectM.so
%{_libdir}/pkgconfig/libprojectM.pc
%files qt
%defattr(-,root,root)
%{_libdir}/libprojectM-qt.so.*
%files qt-devel
%dir %{_includedir}/libprojectM-qt
%{_includedir}/libprojectM-qt/qprojectm*.hpp
%{_libdir}/libprojectM-qt.so
%{_libdir}/pkgconfig/libprojectM-qt.pc
%files -n projectM-pulseaudio
%defattr(-,root,root)
%{_bindir}/projectM-pulseaudio
%{_datadir}/applications/projectM-pulseaudio.desktop
%{_datadir}/pixmaps/prjm16-transparent.svg
%changelog
* Sat Dec 08 2012 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
- update to 2.1.0
* Wed Sep 22 2010 gil <puntogil@libero.it> 2.0.1-2mamba
- added clementine patches
* Mon Jul 05 2010 gil <puntogil@libero.it> 2.0.1-1mamba
- update to 2.0.1
* Tue Sep 02 2008 gil <puntogil@libero.it> 1.2.0-1mamba
- package created by autospec