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