2 # NOTE: don't add --with-xft to configure - you will get fonts beautiful like a crap
4 %bcond_without static_libs # don't build static libraries
9 Summary: The FOX C++ GUI Toolkit
10 Summary(pl): FOX - toolkit graficzny w C++
11 Name: %{_oname}%{_suffix}
16 Source0: ftp://ftp.fox-toolkit.com/pub/%{_oname}-%{version}.tar.gz
17 # Source0-md5: 0f2925b1d595a889640b4222ab1c6a15
18 Patch0: %{name}-opt.patch
19 Patch1: %{name}-link.patch
20 Patch2: %{name}-Makefile.patch
21 URL: http://www.fox-toolkit.org/fox.html
22 BuildRequires: OpenGL-devel
23 BuildRequires: autoconf
24 BuildRequires: automake
25 BuildRequires: bzip2-devel
26 BuildRequires: cups-devel
27 BuildRequires: libjpeg-devel
28 BuildRequires: libpng-devel
29 BuildRequires: libstdc++-devel
30 BuildRequires: libtiff-devel
31 BuildRequires: libtool
32 BuildRequires: xcursor-devel
34 Provides: %{_oname} = %{version}-%{release}
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define _noautoreqdep libGL.so.1 libGLU.so.1
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.
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
56 Summary: FOX example applications
57 Summary(pl): Przyk³ady aplikacji w FOX
58 Group: X11/Applications
59 Requires: %{name} = %{version}-%{release}
60 Provides: %{_oname}-progs = %{version}-%{release}
61 Obsoletes: %{name}-example-apps
64 Editor and file browser, written with FOX.
66 %description progs -l pl
67 Edytor i przegl±darka plików napisane z u¿yciem toolkitu FOX.
70 Summary: Header files for FOX library
71 Summary(pl): Pliki nag³ówkowe biblioteki FOX
72 Group: X11/Development/Libraries
73 Requires: %{name} = %{version}-%{release}
74 Requires: OpenGL-devel
76 Requires: libjpeg-devel
77 Requires: libpng-devel
78 Requires: libstdc++-devel
79 Requires: libtiff-devel
80 Requires: xcursor-devel
81 Provides: %{_oname}-devel = %{version}-%{release}
84 Header files for FOX library.
86 %description devel -l pl
87 Pliki nag³ówkowe biblioteki FOX.
90 Summary: FOX static libraries
91 Summary(pl): Biblioteki statyczne FOX
92 Group: X11/Development/Libraries
93 Requires: %{name}-devel = %{version}-%{release}
94 Provides: %{_oname}-static = %{version}-%{release}
99 %description static -l pl
100 Biblioteki statyczne FOX.
103 Summary: Development documentation for FOX library
104 Summary(pl): Dokumentacja programisty do biblioteki FOX
105 Group: X11/Development/Libraries
108 Development documentation for FOX library.
110 %description doc -l pl
111 Dokumentacja programisty do biblioteki FOX.
114 %setup -q -n %{_oname}-%{version}
124 LDFLAGS="%{rpmldflags} -L/usr/X11R6/%{_lib}"
128 --enable-threadsafe \
134 %{?debug:--enable-debug}%{!?_debug:--enable-release} \
135 --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
139 rm -rf $RPM_BUILD_ROOT
140 install -d $RPM_BUILD_ROOT%{_datadir}
143 DESTDIR=$RPM_BUILD_ROOT
145 rm -f doc/Makefile* doc/*/Makefile*
148 rm -rf $RPM_BUILD_ROOT
150 %post -p /sbin/ldconfig
151 %postun -p /sbin/ldconfig
154 %defattr(644,root,root,755)
155 %doc AUTHORS LICENSE_ADDENDUM README
156 %attr(755,root,root) %{_libdir}/lib*.so.*.*
159 %defattr(644,root,root,755)
160 %attr(755,root,root) %{_bindir}/adie
161 %attr(755,root,root) %{_bindir}/calculator
162 %attr(755,root,root) %{_bindir}/PathFinder
163 %attr(755,root,root) %{_bindir}/shutterbug
164 %attr(755,root,root) %{_bindir}/Adie.stx
168 %defattr(644,root,root,755)
169 %doc ADDITIONS TRACING
170 %attr(755,root,root) %{_bindir}/fox-config
171 %attr(755,root,root) %{_bindir}/reswrap
172 %attr(755,root,root) %{_libdir}/lib*.so
174 %{_includedir}/fox-1.4
176 %if %{with static_libs}
178 %defattr(644,root,root,755)
183 %defattr(644,root,root,755)