libprojectm-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. %define _ftgl_ver 2.1.2
  2. Summary: projectM music visualization library
  3. Name: libprojectm
  4. Version: 2.0.1
  5. Release: 4%{?_dist_release}
  6. License: LGPLv2
  7. Group: System Environment/Libraries
  8. URL: http://xmms-projectm.sourceforge.net/
  9. Source0: http://prdownloads.sourceforge.net/xmms-projectm/libprojectM-%{version}.tar.bz2
  10. #Remove fonts from package:
  11. Patch0: libprojectM-fonts.patch
  12. #Bump soname
  13. Patch1: libprojectM-soname.patch
  14. #Turn off USE_THREADS until the bug is fixed upstream
  15. Patch2: libprojectM-USE_THREADS.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: ftgl-devel >= %{_ftgl_ver}, cmake, glew-devel, pkgconfig
  18. Requires: TrueType-bitstream-vera
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: daisuke
  22. %description
  23. projectM is a music visualization library that allows applications
  24. to display interesting moving images while playing music. It is a
  25. reimplementation of Milkdrop under OpenGL.
  26. %package devel
  27. Summary: Development files for libprojectM
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Requires: mesa-libGL-devel
  31. Requires: pkgconfig
  32. %description devel
  33. projectM is a music visualization library that allows applications
  34. to display interesting moving images while playing music. It is a
  35. reimplementation of Milkdrop under OpenGL.
  36. This package contains the libraries and header files necessary to
  37. develop applications with projectM.
  38. %prep
  39. %setup -q -n libprojectM-%{version}
  40. %patch0 -p1
  41. %patch1 -p1
  42. %patch2 -p1
  43. sed -i 's/\r//' ChangeLog
  44. %build
  45. %cmake \
  46. %if %{?_dist_release} == "vl5" || %{_dist_release} == "vl4"
  47. -DUSE_OPENMP:BOOL=OFF \
  48. %endif
  49. -DCMAKE_INSTALL_PREFIX=%{_prefix}
  50. make %{?_smp_mflags} VERBOSE=1
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. make install DESTDIR=$RPM_BUILD_ROOT
  54. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  55. mkdir $RPM_BUILD_ROOT/%{_datadir}/projectM/fonts
  56. %post -p /sbin/ldconfig
  57. %postun -p /sbin/ldconfig
  58. %clean
  59. %__rm -rf %{buildroot}
  60. %files
  61. %defattr(-,root,root)
  62. %{_libdir}/lib*.so.*
  63. %{_datadir}/projectM
  64. %files devel
  65. %defattr(-,root,root)
  66. %{_includedir}/libprojectM
  67. %{_libdir}/lib*.so
  68. %{_libdir}/pkgconfig/*.pc
  69. %changelog
  70. * Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-4
  71. - rebuild with glew-1.7.0
  72. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-3
  73. - rebuild with rpm-4.8.1 for pkg-config file
  74. * Tue Jun 1 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.1-2
  75. - added -DUSE_OPENMP:BOOL=OFF not to use -fopenmp on VineLinux 5
  76. - fixed typo at changelog
  77. * Mon May 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.1-1
  78. - update to 2.0.1
  79. - add patch0: do not install fonts
  80. - add R: TrueType-bitstream-vera
  81. - add patch1: bump soname
  82. - add patch2: disable USE_THREADS
  83. * Sun Sep 14 2008 Shu KONNO <owa@bg.wakwak.com> 0.99-1vl5
  84. - applied new versioning policy
  85. - excluded lib*.la
  86. * Sat Aug 18 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.99-0vl2
  87. - rebuilt with new toolchain
  88. * Thu Feb 08 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.99-0vl1
  89. - initial build for Vine Linux
  90. * Fri Jan 26 2007 Götz Waschk <waschk@mandriva.org> 0.99-2mdv2007.0
  91. + Revision: 113965
  92. - bump
  93. - Import libprojectm
  94. * Fri Jan 26 2007 Götz Waschk <waschk@mandriva.org> 0.99-1mdv2007.1
  95. - initial package