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