Browse Source

- update to 2.1.3-rc5
- add BR: libXi-devel, libXmu-devel, cppunit-devel



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

daisuke 14 years ago
parent
commit
fde3771795
1 changed files with 35 additions and 27 deletions
  1. 35 27
      f/ftgl/ftgl-vl.spec

+ 35 - 27
f/ftgl/ftgl-vl.spec

@@ -1,22 +1,25 @@
 Summary:	A font rendering library for OpenGL
 Summary(ja):	OpenGL 用のフォントレンダリングライブラリ
 Name:		ftgl
-Version:	2.1.2
-Release:	1%{?_dist_release}
+Version:	2.1.3
+Release:	1.rc5%{?_dist_release}
 License:	LGPL
 Group:		System Environment/Libraries
-URL:		http://homepages.paradise.net.nz/henryj/code/index.html#FTGL
-Source:		http://opengl.geek.nz/ftgl/ftgl-%{version}.tar.bz2
-Patch0:		ftgl-2.0.11-pkgconfig.patch
-Patch1:		ftgl-2.1.2-gcc4.patch
+URL:		http://ftgl.wiki.sourceforge.net/
+
+Source0:	http://downloads.sourceforge.net/ftgl/ftgl-%{version}-rc5.tar.bz2
+Patch0:         ftgl-2.1.3-rc5-ttf_font.patch
+Patch1:         ftgl-2.1.3-rc5-ldflags.patch
+
 Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
 BuildRequires:	freetype2-devel, mesa-libGL-devel, freeglut-devel
+BuildRequires:  libXi-devel, libXmu-devel, cppunit-devel
 BuildRequires:	pkgconfig
 BuildRequires:	doxygen
-Requires:	freetype2, mesa-libGL
 
 Vendor:		Project Vine
 Distribution:	Vine Linux
+Packager:	daisuke
 
 %description
 FTGL is a free, open source library to enable developers to use arbitrary
@@ -56,29 +59,31 @@ This package contains the libraries and header files necessary to develop
 applications with FTGL.
 
 %prep
-%setup -q -n FTGL
-
-%patch0 -p1 -b .pkgconfig
-%patch1 -p1 -b .gcc
-
-%{_bindir}/find . -type f -name "*.txt" -exec %__chmod 0644 "{}" \;
+%setup -q -n ftgl-2.1.3~rc5
+%patch0 -p1 -b .destdir
+%patch1 -p1 -b .ldflags
 
 %build
-pushd unix
-%configure --enable-shared --disable-static
-%__make
-popd
+%configure \
+  --enable-shared \
+  --disable-static \
+  --with-gl-inc=%{_includedir} \
+  --with-gl-lib=%{_libdir} \
+  --with-glut-inc=%{_includedir} \
+  --with-glut-lib=%{_libdir} \
+  --with-x
+
+%__make all %{?_smp_mflags}
 
 %install
 %__rm -rf %{buildroot}
+make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
 
-pushd unix
-%makeinstall
-popd
-
-# remove unneeded files
-%__rm -f %{buildroot}%{_bindir}/FTGLDemo
-%__rm -rf %{buildroot}%{_docdir}
+# Doc fixes
+mkdir -p __doc/html
+install -pm 0644 $RPM_BUILD_ROOT%{_datadir}/doc/ftgl/html/* __doc/html
+rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
 
 %post
 /sbin/ldconfig
@@ -91,18 +96,21 @@ popd
 
 %files
 %defattr(-,root,root)
-%doc COPYING.txt HISTORY.txt README.txt license.txt
+%doc AUTHORS BUGS ChangeLog COPYING NEWS README TODO
 %{_libdir}/lib*.so.*
 
 %files devel
-%doc unix/README.txt unix/docs/html
 %defattr(-,root,root)
+%doc __doc/*
 %{_includedir}/FTGL
 %{_libdir}/lib*.so
-%exclude %{_libdir}/lib*.la
 %{_libdir}/pkgconfig/*.pc
 
 %changelog
+* Mon May 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.3-1.rc5
+- update to 2.1.3-rc5
+- add BR: libXi-devel, libXmu-devel, cppunit-devel
+
 * Sun Sep 14 2008 Shu KONNO <owa@bg.wakwak.com> 2.1.2-1vl5
 - applied new versioning policy, spec in utf-8
 - excluded lib*.la