From 97d217df5d659e45e002282b5701decd86afd374 Mon Sep 17 00:00:00 2001 From: Jameson Pugh Date: Nov 07 2008 00:52:00 +0000 Subject: Initial commit --- diff --git a/.cvsignore b/.cvsignore index e69de29..d4deeba 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libprojectM-1.2.0.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..5418632 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +libprojectM-1_2_0-5_fc9:HEAD:libprojectM-1.2.0-5.src.rpm:1226019019 diff --git a/libprojectM-fonts.patch b/libprojectM-fonts.patch new file mode 100644 index 0000000..fe730a6 --- /dev/null +++ b/libprojectM-fonts.patch @@ -0,0 +1,24 @@ +diff -Naur libprojectM-1.2.0-orig/CMakeLists.txt libprojectM-1.2.0/CMakeLists.txt +--- libprojectM-1.2.0-orig/CMakeLists.txt 2008-09-18 23:30:58.000000000 -0400 ++++ libprojectM-1.2.0/CMakeLists.txt 2008-09-18 23:31:14.000000000 -0400 +@@ -129,8 +129,6 @@ + + FILE(GLOB presets "presets/*.milk" "presets/*.prjm" "presets/*.tga") + INSTALL(FILES ${presets} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/projectM/presets) +-FILE(GLOB fonts "fonts/*.ttf") +-INSTALL(FILES ${fonts} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/projectM/fonts) + INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/libprojectM.pc" DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig) + INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/config.inp DESTINATION ${CMAKE_INSTALL_PREFIX}/share/projectM) + INSTALL(FILES projectM.hpp event.h dlldefs.h fatal.h PresetFrameIO.hpp PCM.hpp DESTINATION include/libprojectM) +#diff -Naur libprojectM-1.2.0-orig/config.inp.in libprojectM-1.2.0/config.inp.in +#--- libprojectM-1.2.0-orig/config.inp.in 2008-09-18 23:30:58.000000000 -0400 +#+++ libprojectM-1.2.0/config.inp.in 2008-09-18 23:33:38.000000000 -0400 +#@@ -17,6 +17,6 @@ +# Aspect Correction = true # Custom Shape Aspect Correction +# +# Preset Path = @CMAKE_INSTALL_PREFIX@/@RESOURCE_PREFIX@/presets # preset location +#-Title Font = @CMAKE_INSTALL_PREFIX@/@RESOURCE_PREFIX@/fonts/Vera.ttf +#-Menu Font = @CMAKE_INSTALL_PREFIX@/@RESOURCE_PREFIX@/fonts/VeraMono.ttf +#+Title Font = @CMAKE_INSTALL_PREFIX@/share/fonts/bitstream-vera/Vera.ttf +#+Menu Font = @CMAKE_INSTALL_PREFIX@/share/fonts/bitstream-vera/VeraMono.ttf +# diff --git a/libprojectM-pc-libsuffix.patch b/libprojectM-pc-libsuffix.patch new file mode 100644 index 0000000..a974d35 --- /dev/null +++ b/libprojectM-pc-libsuffix.patch @@ -0,0 +1,10 @@ +--- libprojectM-1.2.0-orig/libprojectM.pc.in 2008-10-28 23:19:23.000000000 -0400 ++++ libprojectM-1.2.0/libprojectM.pc.in 2008-10-31 00:43:07.000000000 -0400 +@@ -1,6 +1,6 @@ + prefix=@CMAKE_INSTALL_PREFIX@ + exec_prefix=@CMAKE_INSTALL_PREFIX@ +-libdir=@CMAKE_INSTALL_PREFIX@/lib ++libdir=@LIB_INSTALL_DIR@ + includedir=@CMAKE_INSTALL_PREFIX@/include + pkgdatadir=@CMAKE_INSTALL_PREFIX@/@RESOURCE_PREFIX@ + sysconfdir=@CMAKE_INSTALL_PREFIX@/@RESOURCE_PREFIX@ diff --git a/libprojectM.spec b/libprojectM.spec new file mode 100644 index 0000000..f5eda55 --- /dev/null +++ b/libprojectM.spec @@ -0,0 +1,101 @@ +Name: libprojectM +Version: 1.2.0 +Release: 5%{?dist} +Summary: The libraries for the projectM music visualization plugin +Group: Applications/Multimedia +License: LGPLv2+ +URL: http://projectm.sourceforge.net/ +Source0: http://downloads.sourceforge.net/projectm/%{name}-%{version}.tar.bz2 +#Remove fonts from package: +Patch0: libprojectM-fonts.patch + +#Add LIB_SUFFIX to libprojectM.pc.in +Patch1: libprojectM-pc-libsuffix.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: ftgl-devel, cmake, glew-devel +Requires: bitstream-vera-fonts + +%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} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release}, pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 +sed -i 's/\r//' ChangeLog + +%build +%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_INSTALL_DIR=%{_libdir} . +make %{?_smp_mflags} VERBOSE=1 + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +mkdir $RPM_BUILD_ROOT/%{_datadir}/projectM/fonts +ln -s ../../fonts/bitstream-vera/Vera.ttf $RPM_BUILD_ROOT/%{_datadir}/projectM/fonts +ln -s ../../fonts/bitstream-vera/VeraMono.ttf $RPM_BUILD_ROOT/%{_datadir}/projectM/fonts + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc ChangeLog +%{_libdir}/*.so.* +%{_datadir}/projectM + +%files devel +%defattr(-,root,root,-) +%doc +%{_includedir}/%{name} +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog +* Tue Nov 4 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 2 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 5 2007 Jameson Pugh - 1.01-1 +- Initial public release of the package diff --git a/sources b/sources index e69de29..96678ea 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3bb7abb0f2d929780851bad1ca4fd045 libprojectM-1.2.0.tar.bz2