]>
Commit | Line | Data |
---|---|---|
f2bd8c0b MK |
1 | Summary: The FOX C++ GUI Toolkit |
2 | Name: fox | |
7d9c057d | 3 | Version: 0.99.167 |
f2bd8c0b MK |
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 | |
7fdb9c95 | 12 | BuildRequires: OpenGL-devel |
f2bd8c0b | 13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7fdb9c95 | 14 | Requires: OpenGL |
f2bd8c0b | 15 | |
7fdb9c95 | 16 | %define _noautoreqdep libGL.so.1 libGLU.so.1 |
f2bd8c0b MK |
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="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g} -frtti" CFLAGS="$RPM_OPT_FLAGS -frtti" \ | |
62 | ./configure --prefix=%{_prefix} --with-opengl=mesa --enable-release | |
63 | %{__make} GL_LIBS="-lGL -lGLU" | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | %{__make} install prefix=$RPM_BUILD_ROOT/%{_prefix} | |
68 | cp -p pathfinder/.libs/PathFinder $RPM_BUILD_ROOT/%{_bindir} | |
69 | mkdir $RPM_BUILD_ROOT/%{_prefix}/share | |
70 | mv $RPM_BUILD_ROOT/%{_prefix}/man $RPM_BUILD_ROOT/%{_prefix}/share | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %attr(755,root,root) /%{_bindir}/reswrap | |
7d9c057d MK |
78 | %attr(755,root,root) /%{_libdir}/libFOX-0.99.so.167.0.0 |
79 | /%{_libdir}/libFOX-0.99.so.167 | |
f2bd8c0b MK |
80 | /%{_mandir}/*/* |
81 | %doc ADDITIONS AUTHORS BUGS INSTALL LICENSE README TRACING | |
82 | ||
83 | %files example-apps | |
84 | %defattr(644,root,root,755) | |
85 | %attr(755,root,root) /%{_bindir}/textedit | |
86 | %attr(755,root,root) /%{_bindir}/PathFinder | |
87 | ||
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | /%{_includedir}/fox | |
91 | /%{_libdir}/libFOX.so | |
92 | /%{_libdir}/libFOX.la | |
93 | %doc doc | |
94 | ||
95 | %files static | |
96 | %defattr(644,root,root,755) | |
97 | /%{_libdir}/libFOX.a |