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