]>
Commit | Line | Data |
---|---|---|
f2bd8c0b MK |
1 | Summary: The FOX C++ GUI Toolkit |
2 | Name: fox | |
6e9524a7 | 3 | Version: 0.99.169 |
f2bd8c0b | 4 | Release: 1 |
30dfb622 | 5 | License: LGPL |
f2bd8c0b MK |
6 | Group: X11/Libraries |
7 | Group(de): X11/Libraries | |
8 | Group(es): X11/Bibliotecas | |
9 | Group(pl): X11/Biblioteki | |
6e9524a7 | 10 | Source0: ftp://ftp.cfdrc.com/pub/FOX/%{name}-%{version}.tar.gz |
30dfb622 | 11 | BuildRequires: OpenGL-devel |
12 | URL: http://www.cfdrc.com/FOX/fox.html | |
7fdb9c95 | 13 | Requires: OpenGL |
30dfb622 | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f2bd8c0b | 15 | |
7fdb9c95 | 16 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
30dfb622 | 17 | %define _prefix /usr/X11R6 |
f2bd8c0b MK |
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 | |
30dfb622 | 35 | Editor and file browser, written with FOX. |
f2bd8c0b MK |
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 | |
30dfb622 | 45 | Header files and development documentation for the FOX library. |
f2bd8c0b MK |
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 | |
30dfb622 | 55 | FOX static libraries. |
f2bd8c0b MK |
56 | |
57 | %prep | |
58 | %setup -q | |
59 | ||
60 | %build | |
1665779a JB |
61 | CPPFLAGS="%{rpmcflags} -frtti" \ |
62 | #CFLAGS="%{rpmcflags} -frtti" \ | |
30dfb622 | 63 | %configure \ |
64 | --with-opengl=mesa \ | |
65 | --enable-release | |
f2bd8c0b MK |
66 | %{__make} GL_LIBS="-lGL -lGLU" |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
30dfb622 | 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 | |
f2bd8c0b MK |
80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
30dfb622 | 86 | %attr(755,root,root) %{_bindir}/reswrap |
87 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
88 | %{_mandir}/*/* | |
f2bd8c0b MK |
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) | |
30dfb622 | 97 | %doc *.gz doc |
98 | %attr(755,root,root) %{_libdir}/lib*.so | |
99 | %attr(755,root,root) %{_libdir}/lib*.la | |
100 | %{_includedir}/fox | |
f2bd8c0b MK |
101 | |
102 | %files static | |
103 | %defattr(644,root,root,755) | |
30dfb622 | 104 | %{_libdir}/lib*.a |