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