]>
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 |
bd1ea9b9 | 9 | Version: 1.7.19 |
254babe7 | 10 | Release: 7 |
30dfb622 | 11 | License: LGPL |
f2bd8c0b | 12 | Group: X11/Libraries |
fb6844cd | 13 | Source0: ftp://ftp.fox-toolkit.com/pub/%{name}-%{version}.tar.gz |
bd1ea9b9 | 14 | # Source0-md5: fb4d0934be26c27c7e76fcbefe2b5d30 |
c9aea078 | 15 | Patch0: %{name}-opt.patch |
e9810980 | 16 | Patch1: %{name}-link.patch |
1b2184da | 17 | Patch2: %{name}-Makefile.patch |
52a2847b | 18 | Patch3: pkgconfig.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} \ |
4fe15025 JB |
146 | --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no} \ |
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 | 156 | |
5c3e9b3d | 157 | %{__make} -C doc docs |
158 | ||
f2bd8c0b MK |
159 | %install |
160 | rm -rf $RPM_BUILD_ROOT | |
3445f6f0 | 161 | install -d $RPM_BUILD_ROOT{%{_datadir},%{_examplesdir}/%{name}-%{version}} |
30dfb622 | 162 | |
3f3d05ff | 163 | %{__make} install \ |
51798621 | 164 | DESTDIR=$RPM_BUILD_ROOT |
30dfb622 | 165 | |
bd1ea9b9 | 166 | ln -sf libFOX-1.7.so $RPM_BUILD_ROOT%{_libdir}/libFOX.so |
30dfb622 | 167 | |
3445f6f0 | 168 | %{__make} -C tests clean |
169 | cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
170 | ||
0f9d7d23 JB |
171 | %{__rm} doc/Makefile* doc/*/Makefile* |
172 | ||
f2bd8c0b MK |
173 | %clean |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
e6b16e7b JB |
176 | %post -p /sbin/ldconfig |
177 | %postun -p /sbin/ldconfig | |
178 | ||
f2bd8c0b MK |
179 | %files |
180 | %defattr(644,root,root,755) | |
e54cb892 | 181 | %doc AUTHORS LICENSE_ADDENDUM README |
0f9d7d23 | 182 | %attr(755,root,root) %{_bindir}/ControlPanel |
bd1ea9b9 | 183 | %attr(755,root,root) %{_libdir}/libCHART-1.7.so.*.*.* |
184 | %attr(755,root,root) %ghost %{_libdir}/libCHART-1.7.so.0 | |
185 | %attr(755,root,root) %{_libdir}/libFOX-1.7.so.*.*.* | |
186 | %attr(755,root,root) %ghost %{_libdir}/libFOX-1.7.so.0 | |
0f9d7d23 | 187 | %{_mandir}/man1/ControlPanel.1* |
f2bd8c0b | 188 | |
75abd9d7 | 189 | %files progs |
f2bd8c0b | 190 | %defattr(644,root,root,755) |
0f9d7d23 JB |
191 | %attr(755,root,root) %{_bindir}/Adie.stx |
192 | %attr(755,root,root) %{_bindir}/PathFinder | |
c9aea078 JB |
193 | %attr(755,root,root) %{_bindir}/adie |
194 | %attr(755,root,root) %{_bindir}/calculator | |
f7030fdb | 195 | %attr(755,root,root) %{_bindir}/shutterbug |
0f9d7d23 JB |
196 | %{_mandir}/man1/PathFinder.1* |
197 | %{_mandir}/man1/adie.1* | |
198 | %{_mandir}/man1/calculator.1* | |
199 | %{_mandir}/man1/shutterbug.1* | |
f2bd8c0b MK |
200 | |
201 | %files devel | |
202 | %defattr(644,root,root,755) | |
f2611d81 | 203 | %doc ADDITIONS TRACING |
a22b2395 | 204 | %attr(755,root,root) %{_bindir}/fox-config |
1135f2a6 | 205 | %attr(755,root,root) %{_bindir}/reswrap |
bd1ea9b9 | 206 | %attr(755,root,root) %{_libdir}/libCHART-1.7.so |
207 | %attr(755,root,root) %{_libdir}/libFOX-1.7.so | |
055143d7 | 208 | %attr(755,root,root) %{_libdir}/libFOX.so |
bd1ea9b9 | 209 | %{_libdir}/libCHART-1.7.la |
210 | %{_libdir}/libFOX-1.7.la | |
211 | %{_includedir}/fox-1.7 | |
f85563e3 | 212 | %{_pkgconfigdir}/fox.pc |
0f9d7d23 | 213 | %{_mandir}/man1/reswrap.1* |
f2bd8c0b | 214 | |
297423d5 | 215 | %if %{with static_libs} |
f2bd8c0b MK |
216 | %files static |
217 | %defattr(644,root,root,755) | |
bd1ea9b9 | 218 | %{_libdir}/libCHART-1.7.a |
219 | %{_libdir}/libFOX-1.7.a | |
297423d5 | 220 | %endif |
f2611d81 JB |
221 | |
222 | %files doc | |
223 | %defattr(644,root,root,755) | |
224 | %doc doc/* | |
3445f6f0 | 225 | |
226 | %files examples | |
227 | %defattr(644,root,root,755) | |
228 | %{_examplesdir}/%{name}-%{version} |