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