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.01
Release: alt2
License: LGPL
Group: System/Libraries
Url: http://projectm.sourceforge.net/
Summary: Awesome music visualizer
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://dl.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 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
%__sed -i \
-e 's|DESTINATION lib|DESTINATION %_lib|' \
-e 's|lib/pkgconfig|%_lib/pkgconfig|' \
CMakeLists.txt
%build
cmake \
-DCMAKE_INSTALL_PREFIX=%prefix \
.
%make_build
%install
%make_install install \
DESTDIR=%buildroot
rm -f %buildroot/%_libdir/libprojectM.a
%post -p %post_ldconfig
%postun -p %post_ldconfig
%files
%doc ChangeLog
%_libdir/libprojectM.so
%dir %_datadir/%oname/
%_datadir/%oname/config.inp
%dir %_datadir/%oname/fonts/
%_datadir/%oname/fonts/*.ttf
%dir %_datadir/%oname/presets/
%_datadir/%oname/presets/*
%files devel
%_includedir/%name/
%_pkgconfigdir/libprojectM.pc
#%files static
#%_libdir/libprojectM.a
%changelog
…
Full changelog you can see here
%define oname projectM
Name: libprojectM
Version: 1.01
Release: alt2
License: LGPL
Group: System/Libraries
Url: http://projectm.sourceforge.net/
Summary: Awesome music visualizer
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://dl.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 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
%__sed -i \
-e 's|DESTINATION lib|DESTINATION %_lib|' \
-e 's|lib/pkgconfig|%_lib/pkgconfig|' \
CMakeLists.txt
%build
cmake \
-DCMAKE_INSTALL_PREFIX=%prefix \
.
%make_build
%install
%make_install install \
DESTDIR=%buildroot
rm -f %buildroot/%_libdir/libprojectM.a
%post -p %post_ldconfig
%postun -p %post_ldconfig
%files
%doc ChangeLog
%_libdir/libprojectM.so
%dir %_datadir/%oname/
%_datadir/%oname/config.inp
%dir %_datadir/%oname/fonts/
%_datadir/%oname/fonts/*.ttf
%dir %_datadir/%oname/presets/
%_datadir/%oname/presets/*
%files devel
%_includedir/%name/
%_pkgconfigdir/libprojectM.pc
#%files static
#%_libdir/libprojectM.a
%changelog
…
Full changelog you can see here