]>
Commit | Line | Data |
---|---|---|
1 | Summary: The FOX C++ GUI Toolkit | |
2 | Name: fox | |
3 | Version: 0.99.164 | |
4 | Release: 1 | |
5 | Copyright: GNU LGPL | |
6 | Group: X11/Libraries | |
7 | Group(de): X11/Libraries | |
8 | Group(es): X11/Bibliotecas | |
9 | Group(pl): X11/Biblioteki | |
10 | URL: http://www.cfdrc.com/FOX/fox.html | |
11 | Source0: ftp://ftp.cfdrc.com/pub/%{name}-%{version}.tar.gz | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | Requires: Mesa | |
14 | ||
15 | %define _prefix /usr/X11R6 | |
16 | ||
17 | %description | |
18 | FOX is a C++-Based Library for Graphical User Interface Development | |
19 | FOX supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab | |
20 | Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers, | |
21 | idle processing, automatic GUI updating, as well as OpenGL/Mesa for 3D | |
22 | graphics. Subclassing of basic FOX widgets allows for easy extension | |
23 | beyond the built-in widgets by application writers. | |
24 | ||
25 | %package example-apps | |
26 | Summary: FOX example applications | |
27 | Group: X11/Applications | |
28 | Group(de): X11/Applikationen | |
29 | Group(pl): X11/Aplikacje | |
30 | Requires: %{name} = %{version} | |
31 | ||
32 | %description example-apps | |
33 | editor and file browser, written with FOX | |
34 | ||
35 | %package devel | |
36 | Summary: Header files and development documentation for the FOX library | |
37 | Group: X11/Development/Libraries | |
38 | Group(de): X11/Entwicklung/Libraries | |
39 | Group(pl): X11/Programowanie/Biblioteki | |
40 | Requires: %{name} = %{version} | |
41 | ||
42 | %description devel | |
43 | Header files and development documentation for the FOX library | |
44 | ||
45 | %package static | |
46 | Summary: FOX static libraries | |
47 | Group: X11/Development/Libraries | |
48 | Group(de): X11/Entwicklung/Libraries | |
49 | Group(pl): X11/Programowanie/Biblioteki | |
50 | Requires: %{name} = %{version} | |
51 | ||
52 | %description static | |
53 | FOX static libraries | |
54 | ||
55 | %prep | |
56 | %setup -q | |
57 | ||
58 | %build | |
59 | CPPFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g} -frtti" CFLAGS="$RPM_OPT_FLAGS -frtti" \ | |
60 | ./configure --prefix=%{_prefix} --with-opengl=mesa --enable-release | |
61 | %{__make} GL_LIBS="-lGL -lGLU" | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | %{__make} install prefix=$RPM_BUILD_ROOT/%{_prefix} | |
66 | cp -p pathfinder/.libs/PathFinder $RPM_BUILD_ROOT/%{_bindir} | |
67 | mkdir $RPM_BUILD_ROOT/%{_prefix}/share | |
68 | mv $RPM_BUILD_ROOT/%{_prefix}/man $RPM_BUILD_ROOT/%{_prefix}/share | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %attr(755,root,root) /%{_bindir}/reswrap | |
76 | %attr(755,root,root) /%{_libdir}/libFOX-0.99.so.164.0.0 | |
77 | /%{_libdir}/libFOX-0.99.so.164 | |
78 | /%{_mandir}/*/* | |
79 | %doc ADDITIONS AUTHORS BUGS INSTALL LICENSE README TRACING | |
80 | ||
81 | %files example-apps | |
82 | %defattr(644,root,root,755) | |
83 | %attr(755,root,root) /%{_bindir}/textedit | |
84 | %attr(755,root,root) /%{_bindir}/PathFinder | |
85 | ||
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
88 | /%{_includedir}/fox | |
89 | /%{_libdir}/libFOX.so | |
90 | /%{_libdir}/libFOX.la | |
91 | %doc doc | |
92 | ||
93 | %files static | |
94 | %defattr(644,root,root,755) | |
95 | /%{_libdir}/libFOX.a |