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