]>
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 |
52a2847b | 9 | Release: 6 |
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 |
25 | BuildRequires: graphviz | |
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 | |
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 | |
85 | Requires: xorg-lib-libXrandr-devel | |
86 | Requires: zlib-devel >= 1.1.4 | |
f2bd8c0b MK |
87 | |
88 | %description devel | |
f2611d81 | 89 | Header files for FOX library. |
f2bd8c0b | 90 | |
3fadbc84 JR |
91 | %description devel -l pl.UTF-8 |
92 | Pliki nagłówkowe biblioteki FOX. | |
e6b16e7b | 93 | |
f2bd8c0b MK |
94 | %package static |
95 | Summary: FOX static libraries | |
4d6e0c36 | 96 | Summary(pl.UTF-8): Biblioteki statyczne FOX |
f2bd8c0b | 97 | Group: X11/Development/Libraries |
f2611d81 | 98 | Requires: %{name}-devel = %{version}-%{release} |
f2bd8c0b MK |
99 | |
100 | %description static | |
30dfb622 | 101 | FOX static libraries. |
f2bd8c0b | 102 | |
3fadbc84 | 103 | %description static -l pl.UTF-8 |
e6b16e7b JB |
104 | Biblioteki statyczne FOX. |
105 | ||
f2611d81 JB |
106 | %package doc |
107 | Summary: Development documentation for FOX library | |
4d6e0c36 | 108 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki FOX |
f2611d81 JB |
109 | Group: X11/Development/Libraries |
110 | ||
111 | %description doc | |
112 | Development documentation for FOX library. | |
113 | ||
3fadbc84 | 114 | %description doc -l pl.UTF-8 |
f2611d81 JB |
115 | Dokumentacja programisty do biblioteki FOX. |
116 | ||
3445f6f0 | 117 | %package examples |
118 | Summary: FOX - example programs | |
4d6e0c36 | 119 | Summary(pl.UTF-8): FOX - programy przykładowe |
3445f6f0 | 120 | Group: X11/Development/Libraries |
121 | Requires: %{name}-devel = %{version}-%{release} | |
122 | ||
123 | %description examples | |
124 | FOX - example programs. | |
125 | ||
3fadbc84 JR |
126 | %description examples -l pl.UTF-8 |
127 | FOX - przykładowe programy. | |
3445f6f0 | 128 | |
f2bd8c0b MK |
129 | %prep |
130 | %setup -q | |
e54cb892 JB |
131 | %patch0 -p1 |
132 | %patch1 -p1 | |
1b2184da | 133 | %patch2 -p1 |
52a2847b | 134 | %patch3 -p1 |
f2bd8c0b MK |
135 | |
136 | %build | |
c9aea078 | 137 | %{__libtoolize} |
21a9ad7b | 138 | %{__aclocal} |
50741594 | 139 | %{__autoconf} |
140 | %{__automake} | |
e54cb892 | 141 | %configure \ |
d15781b3 | 142 | --enable-cups \ |
297423d5 | 143 | %{?debug:--enable-debug}%{!?debug:--enable-release} \ |
4fe15025 JB |
144 | --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no} \ |
145 | --with-opengl \ | |
d15781b3 | 146 | --with-xft \ |
147 | --with-shape \ | |
148 | --with-xshm \ | |
149 | --with-xcursor \ | |
150 | --with-xrandr \ | |
151 | --with-xim | |
152 | ||
49ccf524 | 153 | %{__make} |
f2bd8c0b | 154 | |
5c3e9b3d | 155 | %{__make} -C doc docs |
156 | ||
f2bd8c0b MK |
157 | %install |
158 | rm -rf $RPM_BUILD_ROOT | |
3445f6f0 | 159 | install -d $RPM_BUILD_ROOT{%{_datadir},%{_examplesdir}/%{name}-%{version}} |
30dfb622 | 160 | |
3f3d05ff | 161 | %{__make} install \ |
51798621 | 162 | DESTDIR=$RPM_BUILD_ROOT |
30dfb622 | 163 | |
bd1ea9b9 | 164 | ln -sf libFOX-1.7.so $RPM_BUILD_ROOT%{_libdir}/libFOX.so |
30dfb622 | 165 | |
c9aea078 JB |
166 | rm -f doc/Makefile* doc/*/Makefile* |
167 | ||
3445f6f0 | 168 | %{__make} -C tests clean |
169 | cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
170 | ||
f2bd8c0b MK |
171 | %clean |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
e6b16e7b JB |
174 | %post -p /sbin/ldconfig |
175 | %postun -p /sbin/ldconfig | |
176 | ||
f2bd8c0b MK |
177 | %files |
178 | %defattr(644,root,root,755) | |
e54cb892 | 179 | %doc AUTHORS LICENSE_ADDENDUM README |
bd1ea9b9 | 180 | %attr(755,root,root) %{_libdir}/libCHART-1.7.so.*.*.* |
181 | %attr(755,root,root) %ghost %{_libdir}/libCHART-1.7.so.0 | |
182 | %attr(755,root,root) %{_libdir}/libFOX-1.7.so.*.*.* | |
183 | %attr(755,root,root) %ghost %{_libdir}/libFOX-1.7.so.0 | |
184 | %attr(755,root,root) %{_bindir}/ControlPanel | |
f2bd8c0b | 185 | |
75abd9d7 | 186 | %files progs |
f2bd8c0b | 187 | %defattr(644,root,root,755) |
c9aea078 JB |
188 | %attr(755,root,root) %{_bindir}/adie |
189 | %attr(755,root,root) %{_bindir}/calculator | |
190 | %attr(755,root,root) %{_bindir}/PathFinder | |
f7030fdb | 191 | %attr(755,root,root) %{_bindir}/shutterbug |
1b2184da | 192 | %attr(755,root,root) %{_bindir}/Adie.stx |
ad16612d | 193 | %{_mandir}/man1/* |
f2bd8c0b MK |
194 | |
195 | %files devel | |
196 | %defattr(644,root,root,755) | |
f2611d81 | 197 | %doc ADDITIONS TRACING |
a22b2395 | 198 | %attr(755,root,root) %{_bindir}/fox-config |
1135f2a6 | 199 | %attr(755,root,root) %{_bindir}/reswrap |
bd1ea9b9 | 200 | %attr(755,root,root) %{_libdir}/libCHART-1.7.so |
201 | %attr(755,root,root) %{_libdir}/libFOX-1.7.so | |
055143d7 | 202 | %attr(755,root,root) %{_libdir}/libFOX.so |
bd1ea9b9 | 203 | %{_libdir}/libCHART-1.7.la |
204 | %{_libdir}/libFOX-1.7.la | |
205 | %{_includedir}/fox-1.7 | |
f85563e3 | 206 | %{_pkgconfigdir}/fox.pc |
f2bd8c0b | 207 | |
297423d5 | 208 | %if %{with static_libs} |
f2bd8c0b MK |
209 | %files static |
210 | %defattr(644,root,root,755) | |
bd1ea9b9 | 211 | %{_libdir}/libCHART-1.7.a |
212 | %{_libdir}/libFOX-1.7.a | |
297423d5 | 213 | %endif |
f2611d81 JB |
214 | |
215 | %files doc | |
216 | %defattr(644,root,root,755) | |
217 | %doc doc/* | |
3445f6f0 | 218 | |
219 | %files examples | |
220 | %defattr(644,root,root,755) | |
221 | %{_examplesdir}/%{name}-%{version} |