]>
Commit | Line | Data |
---|---|---|
2a0616cb JB |
1 | # |
2 | # Conditional build: | |
63c2ba9a | 3 | %bcond_without opengl # without OpenGL libraries |
2a97c2d8 | 4 | %bcond_without xft # without Xft support |
2a0616cb | 5 | # |
7fc6d680 | 6 | Summary: Fast Light Tool Kit |
4b6978bf ER |
7 | Summary(pl.UTF-8): FLTK - "lekki" X11 toolkit |
8 | Summary(pt_BR.UTF-8): Interface gráfica em C++ para X, OpenGL e Windows | |
b60fb8ea | 9 | Name: fltk |
2213f907 | 10 | Version: 1.1.8 |
4db6a850 | 11 | Release: 1 |
51899b70 | 12 | License: LGPL with amendments (see COPYING) |
d81eced3 | 13 | Group: X11/Libraries |
2213f907 | 14 | Source0: http://ftp.easysw.com/pub/fltk/%{version}/%{name}-%{version}-source.tar.bz2 |
15 | # Source0-md5: 0f272d7299778e42fcbedf3c01741f4f | |
4db6a850 | 16 | Source1: http://www.fltk.org/doc-1.1/%{name}.pdf |
17 | # Source1-md5: d3a073741c94d532ec7af9d96c138ea3 | |
ade5391e | 18 | Patch0: %{name}-link.patch |
2213f907 | 19 | Patch1: %{name}-desktop.patch |
b60fb8ea | 20 | URL: http://www.fltk.org/ |
63c2ba9a | 21 | %{?with_opengl:BuildRequires: OpenGL-GLU-devel} |
e878e300 JB |
22 | BuildRequires: autoconf |
23 | BuildRequires: libstdc++-devel | |
c50b5a59 | 24 | BuildRequires: rpmbuild(macros) >= 1.315 |
8d54a08e JB |
25 | BuildRequires: xorg-lib-libX11-devel |
26 | BuildRequires: xorg-lib-libXext-devel | |
2a97c2d8 PS |
27 | %{?with_xft:BuildRequires: xorg-lib-libXft-devel} |
28 | BuildRequires: xorg-util-makedepend | |
da10c525 | 29 | Obsoletes: libfltk1.1 |
40ead817 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b60fb8ea | 31 | |
2a0616cb JB |
32 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
33 | ||
2a97c2d8 PS |
34 | # don't propagate strip-flags to fltk-config. |
35 | %define filterout_ld (-Wl,)?-[sS] (-Wl,)?--strip.* | |
36 | ||
b60fb8ea | 37 | %description |
d81eced3 | 38 | The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd |
39 | C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r), and | |
40 | Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally developed | |
41 | by Mr. Bill Spitzak and is currently maintained by a small group of | |
42 | developers across the world with a central repository in the US. | |
b60fb8ea | 43 | |
365a84da | 44 | %description -l pl.UTF-8 |
35d364df | 45 | Fast Light Tool Kit ("FLTK", wymawiane "fultik"), jest rozprowadzanym |
365a84da JR |
46 | na licencji LGPL narzędziem do tworzenia graficznych interfejsów |
47 | użytkownika w C++ dla X (UNIX(r)), OpenGL(r), i Microsoft(r) | |
da10c525 | 48 | Windows(r) NT 4.0, 95, oraz 98. Jego pierwotnym autorem jest pan Bill |
365a84da JR |
49 | Spitzak; obecnie pakiet jest rozwijany przez niewielką grupę |
50 | deweloperów z różnych stron świata (centralne repozytorium znajduje | |
51 | się w USA). | |
da10c525 | 52 | |
365a84da JR |
53 | %description -l pt_BR.UTF-8 |
54 | A Fast Light Tool Kit ("FLTK", pronuncia-se "fulltick") é uma | |
55 | ferramenta e interface gráfica feita em C++ para desenvolver | |
da10c525 | 56 | aplicativos para o X, OpenGL e Windows. |
d08d2885 | 57 | |
9cc982f0 | 58 | %package devel |
59 | Summary: FLTK development files | |
4b6978bf ER |
60 | Summary(pl.UTF-8): Narzędzia programistyczne dla FLTK |
61 | Summary(pt_BR.UTF-8): Arquivos de inclusão para o FLTK | |
d997f6b0 | 62 | Group: X11/Development/Libraries |
1ca19f4f | 63 | Requires: %{name} = %{version}-%{release} |
ca9f2784 | 64 | Requires: libstdc++-devel |
da10c525 | 65 | Obsoletes: libfltk1.1-devel |
b60fb8ea | 66 | |
9cc982f0 | 67 | %description devel |
68 | FLTK development files. | |
b60fb8ea | 69 | |
365a84da JR |
70 | %description devel -l pl.UTF-8 |
71 | Narzędzia programistyczne dla FLTK. | |
d997f6b0 | 72 | |
365a84da JR |
73 | %description devel -l pt_BR.UTF-8 |
74 | Arquivos de inclusão para o FLTK. | |
da10c525 | 75 | |
9cc982f0 | 76 | %package static |
9d5f643f | 77 | Summary: FLTK static library |
4b6978bf ER |
78 | Summary(pl.UTF-8): Biblioteka FLTK konsolidowana statycznie |
79 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para o FLTK | |
d997f6b0 | 80 | Group: X11/Development/Libraries |
1ca19f4f | 81 | Requires: %{name}-devel = %{version}-%{release} |
b60fb8ea | 82 | |
9cc982f0 | 83 | %description static |
84 | FLTK static library. | |
b60fb8ea | 85 | |
365a84da | 86 | %description static -l pl.UTF-8 |
a7506872 | 87 | Biblioteka FLTK konsolidowana statycznie. |
b60fb8ea | 88 | |
365a84da JR |
89 | %description static -l pt_BR.UTF-8 |
90 | Bibliotecas estáticas para o FLTK. | |
da10c525 | 91 | |
e878e300 JB |
92 | %package gl |
93 | Summary: FLTK GL library | |
4b6978bf | 94 | Summary(pl.UTF-8): Biblioteka FLTK GL |
e878e300 | 95 | Group: X11/Libraries |
1ca19f4f | 96 | Requires: %{name} = %{version}-%{release} |
e878e300 JB |
97 | Requires: OpenGL |
98 | ||
99 | %description gl | |
100 | FLTK GL library. | |
101 | ||
365a84da | 102 | %description gl -l pl.UTF-8 |
e878e300 JB |
103 | Biblioteka FLTK GL. |
104 | ||
105 | %package gl-devel | |
106 | Summary: Header files for FLTK GL library | |
4b6978bf | 107 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FLTK GL |
e878e300 | 108 | Group: X11/Development/Libraries |
1ca19f4f JB |
109 | Requires: %{name}-devel = %{version}-%{release} |
110 | Requires: %{name}-gl = %{version}-%{release} | |
e878e300 JB |
111 | |
112 | %description gl-devel | |
113 | Header files for FLTK GL library. | |
114 | ||
365a84da JR |
115 | %description gl-devel -l pl.UTF-8 |
116 | Pliki nagłówkowe biblioteki FLTK GL. | |
e878e300 JB |
117 | |
118 | %package gl-static | |
119 | Summary: FLTK GL static library | |
4b6978bf | 120 | Summary(pl.UTF-8): Statyczna biblioteka FLTK GL |
e878e300 | 121 | Group: X11/Development/Libraries |
1ca19f4f JB |
122 | Requires: %{name}-gl-devel = %{version}-%{release} |
123 | Requires: %{name}-static = %{version}-%{release} | |
e878e300 JB |
124 | |
125 | %description gl-static | |
126 | FLTK GL static library. | |
127 | ||
365a84da | 128 | %description gl-static -l pl.UTF-8 |
e878e300 JB |
129 | Statyczna biblioteka FLTK GL. |
130 | ||
2213f907 | 131 | %package games |
132 | Summary: FLTK Games | |
133 | Summary: Gry FLTK | |
134 | Group: X11/Applications/Games | |
135 | Requires: %{name} = %{version}-%{release} | |
136 | ||
137 | %description games | |
138 | FLTK games: Block Attack!, Checkers, or Sudoku on your computer. | |
139 | ||
140 | %description -l pl.UTF-8 | |
141 | Gry FLTK: Atak Klocków!, Warcaby, Sudoku. | |
142 | ||
b60fb8ea | 143 | %prep |
144 | %setup -q | |
2a97c2d8 PS |
145 | %patch0 -p1 |
146 | %patch1 -p1 | |
b60fb8ea | 147 | |
0d2876ad | 148 | install %{SOURCE1} . |
9cc982f0 | 149 | |
b60fb8ea | 150 | %build |
e878e300 | 151 | %{__autoconf} |
ade5391e | 152 | %configure \ |
9cc982f0 | 153 | --enable-shared \ |
2a0616cb | 154 | --with-x \ |
63c2ba9a | 155 | %{!?with_opengl:--disable-gl} \ |
40ead817 | 156 | %{?with_xft:--enable-xft} |
d997f6b0 | 157 | |
6d2b733d | 158 | %{__make} |
b60fb8ea | 159 | |
b60fb8ea | 160 | %install |
161 | rm -rf $RPM_BUILD_ROOT | |
911d5d7f | 162 | |
ade5391e | 163 | %{__make} install \ |
2213f907 | 164 | install-desktop \ |
165 | DESTDIR=$RPM_BUILD_ROOT | |
d997f6b0 | 166 | |
2213f907 | 167 | # less generic games' names |
168 | for f in blocks checkers sudoku ; do | |
169 | mv -f $RPM_BUILD_ROOT%{_bindir}/{,fltk-}${f} | |
170 | mv -f $RPM_BUILD_ROOT%{_mandir}/man6/{,fltk-}${f}.6 | |
171 | done | |
b60fb8ea | 172 | |
173 | %clean | |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
51899b70 JB |
176 | %post -p /sbin/ldconfig |
177 | %postun -p /sbin/ldconfig | |
178 | ||
b60fb8ea | 179 | %files |
180 | %defattr(644,root,root,755) | |
ddfacda5 | 181 | # note: COPYING contains amendments to LGPL, so don't remove! |
ade5391e | 182 | %doc CHANGES COPYING CREDITS README |
e878e300 JB |
183 | %attr(755,root,root) %{_libdir}/libfltk.so.*.* |
184 | %attr(755,root,root) %{_libdir}/libfltk_forms.so.*.* | |
185 | %attr(755,root,root) %{_libdir}/libfltk_images.so.*.* | |
b60fb8ea | 186 | |
187 | %files devel | |
188 | %defattr(644,root,root,755) | |
4db6a850 | 189 | %doc documentation/*.{html,gif,jpg} fltk.pdf |
ade5391e | 190 | %attr(755,root,root) %{_bindir}/fltk-config |
d997f6b0 | 191 | %attr(755,root,root) %{_bindir}/fluid |
2213f907 | 192 | %{_iconsdir}/*/*/*/fluid.png |
193 | %{_desktopdir}/fluid.desktop | |
194 | %{_datadir}/mimelnk/application/x-fluid.desktop | |
ade5391e | 195 | %attr(755,root,root) %{_libdir}/libfltk.so |
e878e300 JB |
196 | %attr(755,root,root) %{_libdir}/libfltk_forms.so |
197 | %attr(755,root,root) %{_libdir}/libfltk_images.so | |
9cc982f0 | 198 | %{_includedir}/FL |
e878e300 JB |
199 | %exclude %{_includedir}/FL/Fl_Gl_Window.* |
200 | %exclude %{_includedir}/FL/gl* | |
ade5391e | 201 | %{_mandir}/man[13]/* |
9cc982f0 | 202 | |
203 | %files static | |
204 | %defattr(644,root,root,755) | |
1ca19f4f JB |
205 | %{_libdir}/libfltk.a |
206 | %{_libdir}/libfltk_forms.a | |
207 | %{_libdir}/libfltk_images.a | |
e878e300 | 208 | |
63c2ba9a | 209 | %if %{with opengl} |
e878e300 JB |
210 | %files gl |
211 | %defattr(644,root,root,755) | |
212 | %attr(755,root,root) %{_libdir}/libfltk_gl.so.*.* | |
213 | ||
214 | %files gl-devel | |
215 | %defattr(644,root,root,755) | |
216 | %attr(755,root,root) %{_libdir}/libfltk_gl.so | |
217 | %{_includedir}/FL/Fl_Gl_Window.* | |
218 | %{_includedir}/FL/gl* | |
219 | ||
220 | %files gl-static | |
221 | %defattr(644,root,root,755) | |
1ca19f4f | 222 | %{_libdir}/libfltk_gl.a |
e878e300 | 223 | %endif |
2213f907 | 224 | |
225 | %files games | |
226 | %attr(755,root,root) %{_bindir}/%{name}-blocks | |
227 | %attr(755,root,root) %{_bindir}/%{name}-checkers | |
228 | %attr(755,root,root) %{_bindir}/%{name}-sudoku | |
229 | %{_iconsdir}/*/*/*/blocks.png | |
230 | %{_iconsdir}/*/*/*/checkers.png | |
231 | %{_iconsdir}/*/*/*/sudoku.png | |
232 | %{_desktopdir}/blocks.desktop | |
233 | %{_desktopdir}/checkers.desktop | |
234 | %{_desktopdir}/sudoku.desktop | |
235 | %{_mandir}/man6/%{name}-blocks.6* | |
236 | %{_mandir}/man6/%{name}-checkers.6* | |
237 | %{_mandir}/man6/%{name}-sudoku.6* |