]>
Commit | Line | Data |
---|---|---|
e9c08536 TP |
1 | Summary: OpenGL-FreeType Library |
2 | Name: OGLFT | |
3 | Version: 0.9 | |
2d992a39 | 4 | Release: 4 |
e9c08536 TP |
5 | License: LGPL |
6 | Group: Libraries | |
7 | Source0: http://downloads.sourceforge.net/oglft/oglft-%{version}.tar.gz | |
8 | # Source0-md5: c3a8e0993f98edb7611c20f46631d2a6 | |
2d992a39 | 9 | Patch0: link.patch |
e9c08536 TP |
10 | URL: http://oglft.sourceforge.net/ |
11 | BuildRequires: autoconf | |
12 | BuildRequires: automake | |
13 | BuildRequires: freetype-devel | |
14 | BuildRequires: gle-devel | |
15 | BuildRequires: libtool | |
95318917 | 16 | BuildRequires: qt-devel |
e9c08536 TP |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | C++ library that supplies an interface between the fonts on a system | |
21 | and an OpenGL or Mesa application. It uses the excellent FreeType | |
22 | library to read font faces from their files and renders text strings | |
23 | as OpenGL primitives. | |
24 | ||
25 | %package devel | |
26 | Summary: Header files for OGLFT | |
27 | Group: Development/Libraries | |
28 | Requires: %{name} = %{version}-%{release} | |
29 | ||
30 | %description devel | |
31 | Header files for OGLFT. | |
32 | ||
33 | %package static | |
34 | Summary: Static version of OGLFT | |
35 | Group: Development/Libraries | |
36 | Requires: %{name}-devel = %{version}-%{release} | |
37 | ||
38 | %description static | |
39 | Static version of OGLFT. | |
40 | ||
41 | %prep | |
42 | %setup -q -n oglft-%{version} | |
2d992a39 | 43 | %patch0 -p1 |
e9c08536 TP |
44 | |
45 | %build | |
95318917 TP |
46 | QTDIR=/usr |
47 | CPPFLAGS=-I/usr/include/qt | |
48 | export QTDIR CPPFLAGS | |
2d992a39 | 49 | %{__libtoolize} |
e9c08536 | 50 | %{__aclocal} |
2d992a39 | 51 | %{__autoconf} |
e9c08536 | 52 | %{__autoheader} |
2d992a39 | 53 | %{__automake} |
e9c08536 TP |
54 | %configure |
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
95318917 TP |
63 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libOGLFT.la |
64 | ||
e9c08536 TP |
65 | %clean |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc AUTHORS ChangeLog NEWS README | |
71 | %attr(755,root,root) %{_libdir}/libOGLFT.so.1.*.* | |
72 | %attr(755,root,root) %ghost %{_libdir}/libOGLFT.so.1 | |
73 | ||
74 | %files devel | |
75 | %defattr(644,root,root,755) | |
76 | %doc doc/html | |
77 | %{_includedir}/oglft | |
78 | %attr(755,root,root) %{_libdir}/libOGLFT.so | |
e9c08536 TP |
79 | |
80 | %files static | |
81 | %defattr(644,root,root,755) | |
82 | %{_libdir}/libOGLFT.a |