]>
Commit | Line | Data |
---|---|---|
297423d5 | 1 | # |
4bdc51e2 | 2 | # Conditional build: |
0f9d7d23 | 3 | %bcond_without cups # CUPS support |
424f87e7 | 4 | %bcond_without openjpeg # JPEG2000 support |
4bdc51e2 | 5 | %bcond_without static_libs # don't build static libraries |
297423d5 | 6 | # |
f2bd8c0b | 7 | Summary: The FOX C++ GUI Toolkit |
4d6e0c36 | 8 | Summary(pl.UTF-8): FOX - toolkit graficzny w C++ |
f2bd8c0b | 9 | Name: fox |
926e5a1f | 10 | # NOTE: after switching to 1.8.x keep stable (1.8.x) on HEAD and devel (1.9.x) on DEVEL |
910698a6 | 11 | Version: 1.7.57 |
b250e6e3 | 12 | Release: 1 |
926e5a1f | 13 | License: LGPL v3+ with relinking exemption |
f2bd8c0b | 14 | Group: X11/Libraries |
1a63b197 | 15 | Source0: http://ftp.fox-toolkit.org/pub/%{name}-%{version}.tar.gz |
910698a6 | 16 | # Source0-md5: caeed36d43b5d4f18193657bf236200d |
c9aea078 | 17 | Patch0: %{name}-opt.patch |
e9810980 | 18 | Patch1: %{name}-link.patch |
1b2184da | 19 | Patch2: %{name}-Makefile.patch |
71c8b69b | 20 | Patch3: x32.patch |
f1e19a23 | 21 | URL: http://www.fox-toolkit.org/ |
4fe15025 JB |
22 | BuildRequires: OpenGL-GLU-devel |
23 | BuildRequires: autoconf >= 2.59-9 | |
e6b16e7b | 24 | BuildRequires: automake |
4fe15025 | 25 | BuildRequires: bzip2-devel >= 1.0.2 |
0f9d7d23 | 26 | %{?with_cups:BuildRequires: cups-devel} |
5c3e9b3d | 27 | BuildRequires: doxygen |
4fe15025 JB |
28 | BuildRequires: libjpeg-devel >= 6b |
29 | BuildRequires: libpng-devel >= 1.2.5 | |
e6b16e7b | 30 | BuildRequires: libstdc++-devel |
4fe15025 JB |
31 | BuildRequires: libtiff-devel >= 3.5.7 |
32 | BuildRequires: libtool >= 2:1.5 | |
926e5a1f JB |
33 | BuildRequires: libwebp-devel |
34 | %{?with_openjpeg:BuildRequires: openjpeg-devel} | |
f3aa813e | 35 | BuildRequires: pkgconfig |
4fe15025 JB |
36 | BuildRequires: xorg-lib-libXcursor-devel |
37 | BuildRequires: xorg-lib-libXext-devel | |
38 | BuildRequires: xorg-lib-libXft-devel | |
254babe7 | 39 | BuildRequires: xorg-lib-libXi-devel |
4fe15025 JB |
40 | BuildRequires: xorg-lib-libXrandr-devel |
41 | BuildRequires: zlib-devel >= 1.1.4 | |
30dfb622 | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f2bd8c0b | 43 | |
71c8b69b | 44 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
f2bd8c0b MK |
45 | |
46 | %description | |
47 | FOX is a C++-Based Library for Graphical User Interface Development | |
48 | FOX supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab | |
49 | Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers, | |
50 | idle processing, automatic GUI updating, as well as OpenGL/Mesa for 3D | |
51 | graphics. Subclassing of basic FOX widgets allows for easy extension | |
52 | beyond the built-in widgets by application writers. | |
53 | ||
3fadbc84 JR |
54 | %description -l pl.UTF-8 |
55 | FOX jest biblioteką bazującą na C++ do projektowania graficznych | |
56 | interfejsów użytkownika. Obsługuje wiele właściwości współczesnych | |
e6b16e7b | 57 | GUI: Drag-and-Drop, listy, ikony, interfejsy wielodokumentowe (MDI), |
3fadbc84 JR |
58 | liczniki, przetwarzanie w tle, automatyczne uaktualnianie GUI, obsługę |
59 | grafiki OpenGL. Bazowe klasy widgetów FOX pozwalają na łatwe | |
e6b16e7b JB |
60 | rozszerzanie. |
61 | ||
75abd9d7 | 62 | %package progs |
f2bd8c0b | 63 | Summary: FOX example applications |
4d6e0c36 | 64 | Summary(pl.UTF-8): Przykłady aplikacji w FOX |
f2bd8c0b | 65 | Group: X11/Applications |
f2611d81 | 66 | Requires: %{name} = %{version}-%{release} |
4fe15025 | 67 | Obsoletes: fox-example-apps |
f2bd8c0b | 68 | |
75abd9d7 | 69 | %description progs |
30dfb622 | 70 | Editor and file browser, written with FOX. |
f2bd8c0b | 71 | |
3fadbc84 JR |
72 | %description progs -l pl.UTF-8 |
73 | Edytor i przeglądarka plików napisane z użyciem toolkitu FOX. | |
e6b16e7b | 74 | |
f2bd8c0b | 75 | %package devel |
f2611d81 | 76 | Summary: Header files for FOX library |
4d6e0c36 | 77 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FOX |
f2bd8c0b | 78 | Group: X11/Development/Libraries |
a22b2395 | 79 | Requires: %{name} = %{version}-%{release} |
4fe15025 JB |
80 | Requires: OpenGL-GLU-devel |
81 | Requires: bzip2-devel >= 1.0.2 | |
71e6d619 | 82 | Requires: cups-devel |
4fe15025 JB |
83 | Requires: libjpeg-devel >= 6b |
84 | Requires: libpng-devel >= 1.2.5 | |
80b9d83d | 85 | Requires: libstdc++-devel |
4fe15025 | 86 | Requires: libtiff-devel >= 3.5.7 |
926e5a1f JB |
87 | Requires: libwebp-devel |
88 | %{?with_openjpeg:Requires: openjpeg-devel} | |
4fe15025 JB |
89 | Requires: xorg-lib-libXcursor-devel |
90 | Requires: xorg-lib-libXext-devel | |
91 | Requires: xorg-lib-libXft-devel | |
254babe7 | 92 | Requires: xorg-lib-libXi-devel |
4fe15025 JB |
93 | Requires: xorg-lib-libXrandr-devel |
94 | Requires: zlib-devel >= 1.1.4 | |
f2bd8c0b MK |
95 | |
96 | %description devel | |
f2611d81 | 97 | Header files for FOX library. |
f2bd8c0b | 98 | |
3fadbc84 JR |
99 | %description devel -l pl.UTF-8 |
100 | Pliki nagłówkowe biblioteki FOX. | |
e6b16e7b | 101 | |
f2bd8c0b MK |
102 | %package static |
103 | Summary: FOX static libraries | |
4d6e0c36 | 104 | Summary(pl.UTF-8): Biblioteki statyczne FOX |
f2bd8c0b | 105 | Group: X11/Development/Libraries |
f2611d81 | 106 | Requires: %{name}-devel = %{version}-%{release} |
f2bd8c0b MK |
107 | |
108 | %description static | |
30dfb622 | 109 | FOX static libraries. |
f2bd8c0b | 110 | |
3fadbc84 | 111 | %description static -l pl.UTF-8 |
e6b16e7b JB |
112 | Biblioteki statyczne FOX. |
113 | ||
f2611d81 JB |
114 | %package doc |
115 | Summary: Development documentation for FOX library | |
4d6e0c36 | 116 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki FOX |
f2611d81 JB |
117 | Group: X11/Development/Libraries |
118 | ||
119 | %description doc | |
120 | Development documentation for FOX library. | |
121 | ||
3fadbc84 | 122 | %description doc -l pl.UTF-8 |
f2611d81 JB |
123 | Dokumentacja programisty do biblioteki FOX. |
124 | ||
3445f6f0 | 125 | %package examples |
126 | Summary: FOX - example programs | |
4d6e0c36 | 127 | Summary(pl.UTF-8): FOX - programy przykładowe |
3445f6f0 | 128 | Group: X11/Development/Libraries |
129 | Requires: %{name}-devel = %{version}-%{release} | |
130 | ||
131 | %description examples | |
132 | FOX - example programs. | |
133 | ||
3fadbc84 JR |
134 | %description examples -l pl.UTF-8 |
135 | FOX - przykładowe programy. | |
3445f6f0 | 136 | |
f2bd8c0b MK |
137 | %prep |
138 | %setup -q | |
e54cb892 JB |
139 | %patch0 -p1 |
140 | %patch1 -p1 | |
1b2184da | 141 | %patch2 -p1 |
71c8b69b | 142 | %patch3 -p1 |
f2bd8c0b MK |
143 | |
144 | %build | |
c9aea078 | 145 | %{__libtoolize} |
21a9ad7b | 146 | %{__aclocal} |
50741594 | 147 | %{__autoconf} |
148 | %{__automake} | |
e54cb892 | 149 | %configure \ |
0f9d7d23 | 150 | %{?with_cups:--enable-cups} \ |
297423d5 | 151 | %{?debug:--enable-debug}%{!?debug:--enable-release} \ |
926e5a1f | 152 | %{?with_openjpeg:--enable-jp2} \ |
f60a1960 | 153 | --enable-static%{!?with_static_libs:=no} \ |
154e1c3e | 154 | --enable-webp \ |
4fe15025 | 155 | --with-opengl \ |
d15781b3 | 156 | --with-shape \ |
d15781b3 | 157 | --with-xcursor \ |
154e1c3e JB |
158 | --with-xft \ |
159 | --with-xim \ | |
d15781b3 | 160 | --with-xrandr \ |
154e1c3e | 161 | --with-xshm |
d15781b3 | 162 | |
49ccf524 | 163 | %{__make} |
f2bd8c0b MK |
164 | |
165 | %install | |
166 | rm -rf $RPM_BUILD_ROOT | |
3445f6f0 | 167 | install -d $RPM_BUILD_ROOT{%{_datadir},%{_examplesdir}/%{name}-%{version}} |
30dfb622 | 168 | |
3f3d05ff | 169 | %{__make} install \ |
51798621 | 170 | DESTDIR=$RPM_BUILD_ROOT |
30dfb622 | 171 | |
bd1ea9b9 | 172 | ln -sf libFOX-1.7.so $RPM_BUILD_ROOT%{_libdir}/libFOX.so |
30dfb622 | 173 | |
3445f6f0 | 174 | %{__make} -C tests clean |
175 | cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
176 | ||
0f9d7d23 JB |
177 | %{__rm} doc/Makefile* doc/*/Makefile* |
178 | ||
f2bd8c0b MK |
179 | %clean |
180 | rm -rf $RPM_BUILD_ROOT | |
181 | ||
e6b16e7b JB |
182 | %post -p /sbin/ldconfig |
183 | %postun -p /sbin/ldconfig | |
184 | ||
f2bd8c0b MK |
185 | %files |
186 | %defattr(644,root,root,755) | |
e54cb892 | 187 | %doc AUTHORS LICENSE_ADDENDUM README |
0f9d7d23 | 188 | %attr(755,root,root) %{_bindir}/ControlPanel |
bd1ea9b9 | 189 | %attr(755,root,root) %{_libdir}/libCHART-1.7.so.*.*.* |
190 | %attr(755,root,root) %ghost %{_libdir}/libCHART-1.7.so.0 | |
191 | %attr(755,root,root) %{_libdir}/libFOX-1.7.so.*.*.* | |
192 | %attr(755,root,root) %ghost %{_libdir}/libFOX-1.7.so.0 | |
0f9d7d23 | 193 | %{_mandir}/man1/ControlPanel.1* |
f2bd8c0b | 194 | |
75abd9d7 | 195 | %files progs |
f2bd8c0b | 196 | %defattr(644,root,root,755) |
0f9d7d23 JB |
197 | %attr(755,root,root) %{_bindir}/Adie.stx |
198 | %attr(755,root,root) %{_bindir}/PathFinder | |
c9aea078 JB |
199 | %attr(755,root,root) %{_bindir}/adie |
200 | %attr(755,root,root) %{_bindir}/calculator | |
f7030fdb | 201 | %attr(755,root,root) %{_bindir}/shutterbug |
0f9d7d23 JB |
202 | %{_mandir}/man1/PathFinder.1* |
203 | %{_mandir}/man1/adie.1* | |
204 | %{_mandir}/man1/calculator.1* | |
205 | %{_mandir}/man1/shutterbug.1* | |
f2bd8c0b MK |
206 | |
207 | %files devel | |
208 | %defattr(644,root,root,755) | |
f2611d81 | 209 | %doc ADDITIONS TRACING |
195bd3af | 210 | %attr(755,root,root) %{_bindir}/fox-config |
1135f2a6 | 211 | %attr(755,root,root) %{_bindir}/reswrap |
bd1ea9b9 | 212 | %attr(755,root,root) %{_libdir}/libCHART-1.7.so |
213 | %attr(755,root,root) %{_libdir}/libFOX-1.7.so | |
055143d7 | 214 | %attr(755,root,root) %{_libdir}/libFOX.so |
bd1ea9b9 | 215 | %{_libdir}/libCHART-1.7.la |
216 | %{_libdir}/libFOX-1.7.la | |
217 | %{_includedir}/fox-1.7 | |
2f26eac1 | 218 | %{_pkgconfigdir}/fox17.pc |
0f9d7d23 | 219 | %{_mandir}/man1/reswrap.1* |
f2bd8c0b | 220 | |
297423d5 | 221 | %if %{with static_libs} |
f2bd8c0b MK |
222 | %files static |
223 | %defattr(644,root,root,755) | |
bd1ea9b9 | 224 | %{_libdir}/libCHART-1.7.a |
225 | %{_libdir}/libFOX-1.7.a | |
297423d5 | 226 | %endif |
f2611d81 JB |
227 | |
228 | %files doc | |
229 | %defattr(644,root,root,755) | |
230 | %doc doc/* | |
3445f6f0 | 231 | |
232 | %files examples | |
233 | %defattr(644,root,root,755) | |
234 | %{_examplesdir}/%{name}-%{version} |