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