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