Browse Source

libprojectm:
- update to 2.0.1
- add patch0: do not install fonts
- add R: TrueType-bitstream-vera
- add patch1: bump soname
- add patch2: disable USE_THREADS



git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1072 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 14 years ago
parent
commit
0012b8d00d
1 changed files with 32 additions and 15 deletions
  1. 32 15
      lib/libp/libprojectm/libprojectm-vl.spec

+ 32 - 15
lib/libp/libprojectm/libprojectm-vl.spec

@@ -1,19 +1,28 @@
-%define _ftgl_ver	2.0.0
+%define _ftgl_ver	2.1.3
 
 Summary:	projectM music visualization library
 Name:		libprojectm
-Version:	0.99
+Version:	2.0.1
 Release:	1%{?_dist_release}
 License:	LGPL
 Group:		System Environment/Libraries
 URL:		http://xmms-projectm.sourceforge.net/
+
 Source0:	http://prdownloads.sourceforge.net/xmms-projectm/libprojectM-%{version}.tar.bz2
+#Remove fonts from package:
+Patch0:         libprojectM-fonts.patch
+#Bump soname
+Patch1:         libprojectM-soname.patch
+#Turn off USE_THREADS until the bug is fixed upstream
+Patch2:         libprojectM-USE_THREADS.patch
+
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
-BuildRequires:	ftgl-devel >= %{_ftgl_ver}, pkgconfig
-Requires:	ftgl >= %{_ftgl_ver}
+BuildRequires:	ftgl-devel >= %{_ftgl_ver}, cmake, glew-devel, pkgconfig
+Requires:	TrueType-bitstream-vera
 
 Vendor:		Project Vine
 Distribution:	Vine Linux
+Packager:	daisuke
 
 %description
 projectM is a music visualization library that allows applications
@@ -36,19 +45,21 @@ This package contains the libraries and header files necessary to
 develop applications with projectM.
 
 %prep
-%setup -q -n libprojectM
-
-#__aclocal -I m4
-#__autoconf
-#__automake
+%setup -q -n libprojectM-%{version}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+sed -i 's/\r//' ChangeLog
 
 %build
-%configure --enable-shared --disable-static
-%__make
+%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} 
+make %{?_smp_mflags} VERBOSE=1
 
 %install
-%__rm -rf %{buildroot}
-%makeinstall
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+mkdir $RPM_BUILD_ROOT/%{_datadir}/projectM/fonts
 
 %post -p /sbin/ldconfig
 
@@ -64,12 +75,18 @@ develop applications with projectM.
 
 %files devel
 %defattr(-,root,root)
-%{_includedir}/projectM
+%{_includedir}/libprojectM
 %{_libdir}/lib*.so
-%exclude %{_libdir}/lib*.la
 %{_libdir}/pkgconfig/*.pc
 
 %changelog
+* Mon May 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.41.1-1
+- update to 2.0.1
+- add patch0: do not install fonts
+  - add R: TrueType-bitstream-vera
+- add patch1: bump soname
+- add patch2: disable USE_THREADS
+
 * Sun Sep 14 2008 Shu KONNO <owa@bg.wakwak.com> 0.99-1vl5
 - applied new versioning policy
 - excluded lib*.la