mirror of
https://abf.rosa.ru/djam/libprojectm.git
synced 2025-02-23 18:22:51 +00:00
88 lines
2.2 KiB
RPMSpec
88 lines
2.2 KiB
RPMSpec
%define oname libprojectM
|
|
%define major 2
|
|
%define libname %mklibname projectm %{major}
|
|
%define devname %mklibname projectm -d
|
|
|
|
Summary: Visualization library for OpenGL based on Milkdrop
|
|
Name: libprojectm
|
|
Epoch: 1
|
|
Version: 2.1.0
|
|
Release: 15
|
|
License: LGPLv2.1+
|
|
Group: System/Libraries
|
|
Url: http://projectm.sourceforge.net
|
|
Source0: http://downloads.sourceforge.net/project/projectm/%{version}/projectM-complete-%{version}-Source.tar.gz
|
|
Patch0: libprojectm-2.1.0-libsuffix.patch
|
|
Patch1: libprojectm-2.1.0-path.patch
|
|
Patch2: projectm-libsuffix-pkgconf.patch
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: gomp-devel
|
|
BuildRequires: pkgconfig(ftgl)
|
|
BuildRequires: pkgconfig(glew)
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
%description
|
|
projectM is a reimplementation of Milkdrop under OpenGL.
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package data
|
|
Summary: Visualization library for OpenGL based on Milkdrop
|
|
Group: Graphics
|
|
Requires: fonts-ttf-bitstream-vera
|
|
|
|
%description data
|
|
projectM is a reimplementation of Milkdrop under OpenGL. This contains data
|
|
files and presets.
|
|
|
|
%files data
|
|
%{_datadir}/projectM/
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package -n %{libname}
|
|
Summary: Visualization library for OpenGL based on Milkdrop
|
|
Group: System/Libraries
|
|
Requires: %{name}-data >= %{EVRD}
|
|
|
|
%description -n %{libname}
|
|
projectM is a reimplementation of Milkdrop under OpenGL.
|
|
|
|
%files -n %{libname}
|
|
%{_libdir}/libprojectM.so.%{major}*
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%package -n %{devname}
|
|
Summary: Visualization library for OpenGL based on Milkdrop
|
|
Group: Development/C
|
|
Requires: %{libname} = %{EVRD}
|
|
Provides: libprojectm-devel = %{EVRD}
|
|
|
|
%description -n %{devname}
|
|
projectM is a reimplementation of Milkdrop under OpenGL.
|
|
|
|
%files -n %{devname}
|
|
%{_includedir}/libprojectM
|
|
%{_libdir}/libprojectM.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%setup -qn projectM-complete-%{version}-Source
|
|
%apply_patches
|
|
|
|
%build
|
|
cd src/libprojectM/
|
|
%cmake
|
|
%make
|
|
|
|
%install
|
|
cd src/libprojectM/
|
|
%makeinstall_std -C build
|
|
|
|
#replace by symlink
|
|
ln -sf %{_datadir}/fonts/TTF/{Vera.ttf,VeraMono.ttf} %{buildroot}%{_datadir}/projectM/fonts/
|
|
|