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