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