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