]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: The FOX C++ GUI Toolkit | |
6 | Summary(pl.UTF-8): FOX - toolkit graficzny w C++ | |
7 | Name: fox | |
8 | Version: 1.6.34 | |
9 | Release: 2 | |
10 | License: LGPL | |
11 | Group: X11/Libraries | |
12 | Source0: ftp://ftp.fox-toolkit.com/pub/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 920124025d6495bbd008be635ff759ad | |
14 | Patch0: %{name}-opt.patch | |
15 | Patch1: %{name}-link.patch | |
16 | Patch2: %{name}-Makefile.patch | |
17 | URL: http://www.fox-toolkit.org/ | |
18 | BuildRequires: OpenGL-GLU-devel | |
19 | BuildRequires: autoconf >= 2.59-9 | |
20 | BuildRequires: automake | |
21 | BuildRequires: bzip2-devel >= 1.0.2 | |
22 | BuildRequires: cups-devel | |
23 | BuildRequires: doxygen | |
24 | BuildRequires: graphviz | |
25 | BuildRequires: libjpeg-devel >= 6b | |
26 | BuildRequires: libpng-devel >= 1.2.5 | |
27 | BuildRequires: libstdc++-devel | |
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 | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
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 | ||
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 | |
50 | GUI: Drag-and-Drop, listy, ikony, interfejsy wielodokumentowe (MDI), | |
51 | liczniki, przetwarzanie w tle, automatyczne uaktualnianie GUI, obsługę | |
52 | grafiki OpenGL. Bazowe klasy widgetów FOX pozwalają na łatwe | |
53 | rozszerzanie. | |
54 | ||
55 | %package progs | |
56 | Summary: FOX example applications | |
57 | Summary(pl.UTF-8): Przykłady aplikacji w FOX | |
58 | Group: X11/Applications | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | Obsoletes: fox-example-apps | |
61 | ||
62 | %description progs | |
63 | Editor and file browser, written with FOX. | |
64 | ||
65 | %description progs -l pl.UTF-8 | |
66 | Edytor i przeglądarka plików napisane z użyciem toolkitu FOX. | |
67 | ||
68 | %package devel | |
69 | Summary: Header files for FOX library | |
70 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FOX | |
71 | Group: X11/Development/Libraries | |
72 | Requires: %{name} = %{version}-%{release} | |
73 | Requires: OpenGL-GLU-devel | |
74 | Requires: bzip2-devel >= 1.0.2 | |
75 | Requires: libjpeg-devel >= 6b | |
76 | Requires: libpng-devel >= 1.2.5 | |
77 | Requires: libstdc++-devel | |
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 | |
84 | ||
85 | %description devel | |
86 | Header files for FOX library. | |
87 | ||
88 | %description devel -l pl.UTF-8 | |
89 | Pliki nagłówkowe biblioteki FOX. | |
90 | ||
91 | %package static | |
92 | Summary: FOX static libraries | |
93 | Summary(pl.UTF-8): Biblioteki statyczne FOX | |
94 | Group: X11/Development/Libraries | |
95 | Requires: %{name}-devel = %{version}-%{release} | |
96 | ||
97 | %description static | |
98 | FOX static libraries. | |
99 | ||
100 | %description static -l pl.UTF-8 | |
101 | Biblioteki statyczne FOX. | |
102 | ||
103 | %package doc | |
104 | Summary: Development documentation for FOX library | |
105 | Summary(pl.UTF-8): Dokumentacja programisty do biblioteki FOX | |
106 | Group: X11/Development/Libraries | |
107 | ||
108 | %description doc | |
109 | Development documentation for FOX library. | |
110 | ||
111 | %description doc -l pl.UTF-8 | |
112 | Dokumentacja programisty do biblioteki FOX. | |
113 | ||
114 | %package examples | |
115 | Summary: FOX - example programs | |
116 | Summary(pl.UTF-8): FOX - programy przykładowe | |
117 | Group: X11/Development/Libraries | |
118 | Requires: %{name}-devel = %{version}-%{release} | |
119 | ||
120 | %description examples | |
121 | FOX - example programs. | |
122 | ||
123 | %description examples -l pl.UTF-8 | |
124 | FOX - przykładowe programy. | |
125 | ||
126 | %prep | |
127 | %setup -q | |
128 | %patch0 -p1 | |
129 | %patch1 -p1 | |
130 | %patch2 -p1 | |
131 | ||
132 | %build | |
133 | %{__libtoolize} | |
134 | %{__aclocal} | |
135 | %{__autoconf} | |
136 | %{__automake} | |
137 | %configure \ | |
138 | --enable-cups \ | |
139 | %{?debug:--enable-debug}%{!?debug:--enable-release} \ | |
140 | --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no} \ | |
141 | --with-opengl \ | |
142 | --with-xft \ | |
143 | --with-shape \ | |
144 | --with-xshm \ | |
145 | --with-xcursor \ | |
146 | --with-xrandr \ | |
147 | --with-xim | |
148 | ||
149 | %{__make} | |
150 | ||
151 | %{__make} -C doc docs | |
152 | ||
153 | %install | |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | install -d $RPM_BUILD_ROOT{%{_datadir},%{_examplesdir}/%{name}-%{version}} | |
156 | ||
157 | %{__make} install \ | |
158 | DESTDIR=$RPM_BUILD_ROOT | |
159 | ||
160 | ln -sf libFOX-1.6.so $RPM_BUILD_ROOT%{_libdir}/libFOX.so | |
161 | ||
162 | rm -f doc/Makefile* doc/*/Makefile* | |
163 | ||
164 | %{__make} -C tests clean | |
165 | cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
166 | ||
167 | %clean | |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
170 | %post -p /sbin/ldconfig | |
171 | %postun -p /sbin/ldconfig | |
172 | ||
173 | %files | |
174 | %defattr(644,root,root,755) | |
175 | %doc AUTHORS LICENSE_ADDENDUM README | |
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 | |
180 | ||
181 | %files progs | |
182 | %defattr(644,root,root,755) | |
183 | %attr(755,root,root) %{_bindir}/adie | |
184 | %attr(755,root,root) %{_bindir}/calculator | |
185 | %attr(755,root,root) %{_bindir}/PathFinder | |
186 | %attr(755,root,root) %{_bindir}/shutterbug | |
187 | %attr(755,root,root) %{_bindir}/Adie.stx | |
188 | %{_mandir}/man1/* | |
189 | ||
190 | %files devel | |
191 | %defattr(644,root,root,755) | |
192 | %doc ADDITIONS TRACING | |
193 | %attr(755,root,root) %{_bindir}/fox-config | |
194 | %attr(755,root,root) %{_bindir}/reswrap | |
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 | |
200 | %{_includedir}/fox-1.6 | |
201 | %{_pkgconfigdir}/fox.pc | |
202 | ||
203 | %if %{with static_libs} | |
204 | %files static | |
205 | %defattr(644,root,root,755) | |
206 | %{_libdir}/libCHART-1.6.a | |
207 | %{_libdir}/libFOX-1.6.a | |
208 | %endif | |
209 | ||
210 | %files doc | |
211 | %defattr(644,root,root,755) | |
212 | %doc doc/* | |
213 | ||
214 | %files examples | |
215 | %defattr(644,root,root,755) | |
216 | %{_examplesdir}/%{name}-%{version} |