Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37837372
en ru br
ALT Linux repos
S:2.1.0-alt15.1
5.0: 1.2.0-alt2.1
4.1: 1.01-alt2

Group :: System/Libraries
RPM: libprojectM

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# FIXME: soname
%define oname projectM

Name: libprojectM
Version: 1.2.0
Release: alt2.1

License: LGPL
Group: System/Libraries
Url: http://projectm.sourceforge.net/

Summary: Awesome music visualizer

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://prdownloads.sourceforge.net/projectm/%name-%version.tar.bz2
Patch0: %name-static.patch

# Automatically added by buildreq on Wed Nov 07 2007

BuildRequires: cmake gcc-c++ libICE-devel libX11-devel libXext-devel libftgl-devel libglew-devel

%description
projectM is a reimplementation of Milkdrop under OpenGL. It is an
awesome music visualizer. There is nothing better in the world of
Unix.

%package devel
Summary: Header files for projectM library
Group: Development/C
Requires: %name = %version-%release

%description devel
Header files for projectM library.

%package static
Summary: Static projectM library
Group: Development/Libraries
Requires: %name-devel = %version-%release

%description static
Static projectM library.

%prep
%setup -q
#%patch0 -p1
#workaround for library path on x86_64
#    -e 's|DESTINATION lib|DESTINATION %_lib|' \
#    -e 's|lib/pkgconfig|%_lib/pkgconfig|' \
%__sed -i \
   -e 's| m | m pthread |' \
   CMakeLists.txt

%build
cmake \
-DCMAKE_INSTALL_PREFIX=%prefix \
%ifarch x86_64
-DLIB_SUFFIX=64 \
%endif
.
%make_build

%install
%makeinstall_std

rm -f %buildroot/%_libdir/libprojectM.a

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%doc ChangeLog
%dir %_datadir/%oname/
%_libdir/libprojectM.so.*
%_datadir/%oname/config.inp
%dir %_datadir/%oname/fonts/
%_datadir/%oname/fonts/*.ttf
%dir %_datadir/%oname/presets/
%_datadir/%oname/presets/*

%files devel
%_includedir/%name/
%_libdir/libprojectM.so
%_pkgconfigdir/libprojectM.pc

#%files static

#%_libdir/libprojectM.a

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin