libprojectm-vl.spec 3.4 KB

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