]> git.pld-linux.org Git - packages/ftgl.git/blame - ftgl.spec
- unconditional noarch subpackages
[packages/ftgl.git] / ftgl.spec
CommitLineData
ece7f33d 1Summary: OpenGL frontend to freetype2
d43b2aa8 2Summary(pl.UTF-8): Nakładka OpenGL na freetype2 - łatwy dostęp do fontów z poziomu OpenGL
d0b3b65f 3Name: ftgl
5b630985
JB
4Version: 2.4.0
5Release: 1
1bfe0355
JB
6License: MIT
7Group: Libraries
5b630985
JB
8#Source0Download: https://github.com/frankheckenbach/ftgl
9Source0: https://github.com/frankheckenbach/ftgl/archive/v%{version}/%{name}-%{version}.tar.gz
10# Source0-md5: fba1e1c548ebe3ab362495e96a7a0670
11URL: https://github.com/frankheckenbach/ftgl
1bfe0355
JB
12BuildRequires: OpenGL-GLU-devel >= 1.2
13BuildRequires: autoconf >= 2.58
14BuildRequires: automake >= 1.6
d0b3b65f 15BuildRequires: doxygen
5b630985 16# pkgconfig(freetype2) >= 9.0.3
215e8a1a
JB
17BuildRequires: freetype-devel >= 2.0.9
18BuildRequires: libstdc++-devel
1bfe0355 19BuildRequires: libtool >= 2:1.5
f4ce5d82 20BuildRequires: pkgconfig
5b630985 21BuildRequires: rpmbuild(macros) >= 1.752
f4ce5d82 22BuildRequires: texlive-pdftex
5b630985
JB
23# for tests
24#BuildRequires: OpenGL-glut-devel
25#BuildRequires: cppunit-devel
26#BuildRequires: fonts-TTF-DejaVu
d0b3b65f
GJ
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
1d1bafcc 30FTGL is a free, open source library to enable developers to use
92d1d294 31arbitrary fonts in their OpenGL (http://www.opengl.org/) applications.
38163398
AG
32Unlike other OpenGL font libraries FTGL uses standard font file
33formats so doesn't need a preprocessing step to convert the high
34quality font data into a lesser quality, proprietary format. FTGL uses
35the Freetype (http://www.freetype.org/) font library to open and
36'decode' the fonts. It then takes that output and stores it in a
37format most efficient for OpenGL rendering.
1d1bafcc 38
fe04ce87
JR
39%description -l pl.UTF-8
40FTPGL to wolnodostępna biblioteka z otwartymi źródłami umożliwiająca
41programistom używanie dowolnych fontów w aplikacjach OpenGL
42(http://www.opengl.org/). W przeciwieństwie do innych bibliotek OpenGL
43FTGL używa standardowych formatów plików z fontami, dzięki czemu nie
44jest wymagany żaden preprocessing, aby przetworzyć dane fontu wysokiej
45jakości na własnościowy format niższej jakości. FTGL do wczytywania i
46dekodowania fontów używa biblioteki obsługi fontów Freetype
47(http://www.freetype.org/), następnie przejmuje wyjście i przechowuje
92d1d294 48je w formacie najbardziej wydajnym przy renderingu OpenGL.
d0b3b65f
GJ
49
50%package devel
388ee0eb 51Summary: OpenGL frontend to freetype2 - development files
d43b2aa8 52Summary(pl.UTF-8): Nakładka OpenGL na freetype2 - pliki dla programistów
1bfe0355 53Group: Development/Libraries
215e8a1a 54Requires: %{name} = %{version}-%{release}
1bfe0355 55Requires: OpenGL-GLU-devel >= 1.2
215e8a1a
JB
56Requires: freetype-devel >= 2.0.9
57Requires: libstdc++-devel
d0b3b65f
GJ
58
59%description devel
92d1d294
JB
60OpenGL frontend to freetype2 - development files.
61
fe04ce87
JR
62%description devel -l pl.UTF-8
63Nakładka OpenGL na freetype2 - pliki dla programistów.
d0b3b65f 64
215e8a1a
JB
65%package static
66Summary: Static FTGL library
d43b2aa8 67Summary(pl.UTF-8): Statyczna biblioteka FTGL
1bfe0355 68Group: Development/Libraries
215e8a1a
JB
69Requires: %{name}-devel = %{version}-%{release}
70
71%description static
72Static FTGL library.
73
fe04ce87 74%description static -l pl.UTF-8
215e8a1a
JB
75Statyczna biblioteka FTGL.
76
5b630985
JB
77%package apidocs
78Summary: API documentation for FTGL library
79Summary(pl.UTF-8): Dokumentacja API biblioteki FTGL
80Group: Documentation
0eeaaf49 81BuildArch: noarch
5b630985
JB
82
83%description apidocs
84API documentation for FTGL library.
85
86%description apidocs -l pl.UTF-8
87Dokumentacja 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
106rm -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
119rm -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/*
This page took 0.073134 seconds and 4 git commands to generate.