]>
Commit | Line | Data |
---|---|---|
ece7f33d | 1 | Summary: OpenGL frontend to freetype2 |
d43b2aa8 | 2 | Summary(pl.UTF-8): Nakładka OpenGL na freetype2 - łatwy dostęp do fontów z poziomu OpenGL |
d0b3b65f | 3 | Name: ftgl |
5b630985 JB |
4 | Version: 2.4.0 |
5 | Release: 1 | |
1bfe0355 JB |
6 | License: MIT |
7 | Group: Libraries | |
5b630985 JB |
8 | #Source0Download: https://github.com/frankheckenbach/ftgl |
9 | Source0: https://github.com/frankheckenbach/ftgl/archive/v%{version}/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: fba1e1c548ebe3ab362495e96a7a0670 | |
11 | URL: https://github.com/frankheckenbach/ftgl | |
1bfe0355 JB |
12 | BuildRequires: OpenGL-GLU-devel >= 1.2 |
13 | BuildRequires: autoconf >= 2.58 | |
14 | BuildRequires: automake >= 1.6 | |
d0b3b65f | 15 | BuildRequires: doxygen |
5b630985 | 16 | # pkgconfig(freetype2) >= 9.0.3 |
215e8a1a JB |
17 | BuildRequires: freetype-devel >= 2.0.9 |
18 | BuildRequires: libstdc++-devel | |
1bfe0355 | 19 | BuildRequires: libtool >= 2:1.5 |
f4ce5d82 | 20 | BuildRequires: pkgconfig |
5b630985 | 21 | BuildRequires: rpmbuild(macros) >= 1.752 |
f4ce5d82 | 22 | BuildRequires: texlive-pdftex |
5b630985 JB |
23 | # for tests |
24 | #BuildRequires: OpenGL-glut-devel | |
25 | #BuildRequires: cppunit-devel | |
26 | #BuildRequires: fonts-TTF-DejaVu | |
d0b3b65f GJ |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
1d1bafcc | 30 | FTGL is a free, open source library to enable developers to use |
92d1d294 | 31 | arbitrary fonts in their OpenGL (http://www.opengl.org/) applications. |
38163398 AG |
32 | Unlike other OpenGL font libraries FTGL uses standard font file |
33 | formats so doesn't need a preprocessing step to convert the high | |
34 | quality font data into a lesser quality, proprietary format. FTGL uses | |
35 | the Freetype (http://www.freetype.org/) font library to open and | |
36 | 'decode' the fonts. It then takes that output and stores it in a | |
37 | format most efficient for OpenGL rendering. | |
1d1bafcc | 38 | |
fe04ce87 JR |
39 | %description -l pl.UTF-8 |
40 | FTPGL to wolnodostępna biblioteka z otwartymi źródłami umożliwiająca | |
41 | programistom używanie dowolnych fontów w aplikacjach OpenGL | |
42 | (http://www.opengl.org/). W przeciwieństwie do innych bibliotek OpenGL | |
43 | FTGL używa standardowych formatów plików z fontami, dzięki czemu nie | |
44 | jest wymagany żaden preprocessing, aby przetworzyć dane fontu wysokiej | |
45 | jakości na własnościowy format niższej jakości. FTGL do wczytywania i | |
46 | dekodowania fontów używa biblioteki obsługi fontów Freetype | |
47 | (http://www.freetype.org/), następnie przejmuje wyjście i przechowuje | |
92d1d294 | 48 | je w formacie najbardziej wydajnym przy renderingu OpenGL. |
d0b3b65f GJ |
49 | |
50 | %package devel | |
388ee0eb | 51 | Summary: OpenGL frontend to freetype2 - development files |
d43b2aa8 | 52 | Summary(pl.UTF-8): Nakładka OpenGL na freetype2 - pliki dla programistów |
1bfe0355 | 53 | Group: Development/Libraries |
215e8a1a | 54 | Requires: %{name} = %{version}-%{release} |
1bfe0355 | 55 | Requires: OpenGL-GLU-devel >= 1.2 |
215e8a1a JB |
56 | Requires: freetype-devel >= 2.0.9 |
57 | Requires: libstdc++-devel | |
d0b3b65f GJ |
58 | |
59 | %description devel | |
92d1d294 JB |
60 | OpenGL frontend to freetype2 - development files. |
61 | ||
fe04ce87 JR |
62 | %description devel -l pl.UTF-8 |
63 | Nakładka OpenGL na freetype2 - pliki dla programistów. | |
d0b3b65f | 64 | |
215e8a1a JB |
65 | %package static |
66 | Summary: Static FTGL library | |
d43b2aa8 | 67 | Summary(pl.UTF-8): Statyczna biblioteka FTGL |
1bfe0355 | 68 | Group: Development/Libraries |
215e8a1a JB |
69 | Requires: %{name}-devel = %{version}-%{release} |
70 | ||
71 | %description static | |
72 | Static FTGL library. | |
73 | ||
fe04ce87 | 74 | %description static -l pl.UTF-8 |
215e8a1a JB |
75 | Statyczna biblioteka FTGL. |
76 | ||
5b630985 JB |
77 | %package apidocs |
78 | Summary: API documentation for FTGL library | |
79 | Summary(pl.UTF-8): Dokumentacja API biblioteki FTGL | |
80 | Group: Documentation | |
0eeaaf49 | 81 | BuildArch: noarch |
5b630985 JB |
82 | |
83 | %description apidocs | |
84 | API documentation for FTGL library. | |
85 | ||
86 | %description apidocs -l pl.UTF-8 | |
87 | Dokumentacja API biblioteki FTGL. | |
88 | ||
d0b3b65f | 89 | %prep |
5b630985 | 90 | %setup -q |
d0b3b65f GJ |
91 | |
92 | %build | |
38163398 AG |
93 | %{__libtoolize} |
94 | %{__aclocal} -I m4 | |
95 | %{__autoconf} | |
96 | %{__autoheader} | |
97 | %{__automake} | |
215e8a1a | 98 | %configure \ |
5b630985 JB |
99 | ac_cv_path_LATEX=no |
100 | # --enable-shared | |
101 | ||
38163398 AG |
102 | %{__make} \ |
103 | ECHO=/bin/echo | |
d0b3b65f GJ |
104 | |
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
5b630985 | 107 | |
38163398 AG |
108 | %{__make} install \ |
109 | DESTDIR=$RPM_BUILD_ROOT \ | |
110 | ECHO=/bin/echo | |
d0b3b65f | 111 | |
5b630985 JB |
112 | # obsolted by pkg-config |
113 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libftgl.la | |
114 | ||
115 | # packaged as %doc | |
116 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
215e8a1a | 117 | |
d0b3b65f GJ |
118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
215e8a1a JB |
121 | %post -p /sbin/ldconfig |
122 | %postun -p /sbin/ldconfig | |
123 | ||
124 | %files | |
125 | %defattr(644,root,root,755) | |
38163398 | 126 | %doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO |
215e8a1a | 127 | %attr(755,root,root) %{_libdir}/libftgl.so.*.*.* |
fb4bc3b5 | 128 | %attr(755,root,root) %ghost %{_libdir}/libftgl.so.2 |
215e8a1a | 129 | |
d0b3b65f GJ |
130 | %files devel |
131 | %defattr(644,root,root,755) | |
fb4bc3b5 | 132 | %doc docs/html |
215e8a1a | 133 | %attr(755,root,root) %{_libdir}/libftgl.so |
1d1bafcc | 134 | %{_includedir}/FTGL |
1bfe0355 | 135 | %{_pkgconfigdir}/ftgl.pc |
215e8a1a JB |
136 | |
137 | %files static | |
138 | %defattr(644,root,root,755) | |
139 | %{_libdir}/libftgl.a | |
5b630985 JB |
140 | |
141 | %files apidocs | |
142 | %defattr(644,root,root,755) | |
143 | %doc docs/html/* |