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