[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 |
---|
[10581] | 6 | Release: 6%{?_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: |
---|
[9767] | 13 | Patch0: libprojectM-fonts.patch |
---|
[1072] | 14 | #Bump soname |
---|
[9767] | 15 | Patch1: libprojectM-soname.patch |
---|
[1072] | 16 | #Turn off USE_THREADS until the bug is fixed upstream |
---|
[9767] | 17 | Patch2: libprojectM-USE_THREADS.patch |
---|
[1072] | 18 | |
---|
[9767] | 19 | Patch3: libprojectM-freetype25.patch |
---|
| 20 | |
---|
[521] | 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[1072] | 22 | BuildRequires: ftgl-devel >= %{_ftgl_ver}, cmake, glew-devel, pkgconfig |
---|
| 23 | Requires: TrueType-bitstream-vera |
---|
[521] | 24 | |
---|
| 25 | Vendor: Project Vine |
---|
| 26 | Distribution: Vine Linux |
---|
[1072] | 27 | Packager: daisuke |
---|
[521] | 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 |
---|
[1072] | 50 | %setup -q -n libprojectM-%{version} |
---|
| 51 | %patch0 -p1 |
---|
| 52 | %patch1 -p1 |
---|
| 53 | %patch2 -p1 |
---|
[9767] | 54 | %patch3 -p1 |
---|
[1072] | 55 | sed -i 's/\r//' ChangeLog |
---|
[521] | 56 | |
---|
| 57 | %build |
---|
[1223] | 58 | %cmake \ |
---|
| 59 | %if %{?_dist_release} == "vl5" || %{_dist_release} == "vl4" |
---|
| 60 | -DUSE_OPENMP:BOOL=OFF \ |
---|
| 61 | %endif |
---|
| 62 | -DCMAKE_INSTALL_PREFIX=%{_prefix} |
---|
[1072] | 63 | make %{?_smp_mflags} VERBOSE=1 |
---|
[521] | 64 | |
---|
| 65 | %install |
---|
[1072] | 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 |
---|
[521] | 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) |
---|
[1072] | 85 | %{_includedir}/libprojectM |
---|
[521] | 86 | %{_libdir}/lib*.so |
---|
| 87 | %{_libdir}/pkgconfig/*.pc |
---|
| 88 | |
---|
| 89 | %changelog |
---|
[10581] | 90 | * Sun Jul 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-6 |
---|
| 91 | - rebuild with gcc-5.4.0 |
---|
| 92 | |
---|
[9767] | 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 | |
---|
[5390] | 97 | * Tue Jan 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-4 |
---|
| 98 | - rebuild with glew-1.7.0 |
---|
| 99 | |
---|
[1901] | 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 | |
---|
[1223] | 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 |
---|
[1072] | 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 | |
---|
[521] | 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 | |
---|
[1223] | 124 | * Fri Jan 26 2007 Götz Waschk <waschk@mandriva.org> 0.99-2mdv2007.0 |
---|
[521] | 125 | + Revision: 113965 |
---|
| 126 | - bump |
---|
| 127 | - Import libprojectm |
---|
| 128 | |
---|
[1223] | 129 | * Fri Jan 26 2007 Götz Waschk <waschk@mandriva.org> 0.99-1mdv2007.1 |
---|
[521] | 130 | - initial package |
---|