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