]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxGTK.spec
added wxWindows shared library to link of OpenGL wxWindows shared library
[wxWidgets.git] / wxGTK.spec
... / ...
CommitLineData
1%define pref /usr
2%define ver 2.3.1
3%define rel 1
4
5Summary: The GTK+ 1.2 port of the wxWindows library
6Name: wxGTK
7Version: %{ver}
8Release: %{rel}
9Copyright: wxWindows Licence
10Group: X11/Libraries
11Source: wxGTK-%{ver}.tar.bz2
12URL: http://www.wxwindows.org
13Packager: Vadim Zeitlin <vadim@wxwindows.org>
14Prefix: %{pref}
15BuildRoot: /var/tmp/%{name}-root
16
17# all packages providing an implementation of wxWindows library (regardless of
18# the toolkit used) should provide the (virtual) wxwin package, this makes it
19# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxqt..."
20Provides: wxwin
21
22# in addition, we should provide libwx_gtk as automatic generator only notices
23# libwx_gtk-%{ver}-%{rel}
24Provides: libwx_gtk.so
25Provides: libwx_gtk-2.3.so
26
27%description
28wxWindows is a free C++ library for cross-platform GUI development.
29With wxWindows, you can create applications for different GUIs (GTK+,
30Motif/LessTif, MS Windows, Mac) from the same source code.
31
32%package devel
33Summary: The GTK+ 1.2 port of the wxWindows library
34Group: X11/Libraries
35Requires: wxGTK
36
37%description devel
38Header files for wxGTK, the GTK+ 1.2 port of the wxWindows library.
39
40%package gl
41Summary: The GTK+ 1.2 port of the wxWindows library, OpenGl add-on.
42Group: X11/Libraries
43Requires: wxGTK
44
45%description gl
46OpenGl add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library.
47
48%prep
49%setup -n wxGTK-%{ver}
50./configure --prefix=%{pref} --enable-burnt_name --with-odbc --with-opengl
51
52%build
53if [ "$SMP" != "" ]; then
54 export MAKE="make -j$SMP"
55else
56 export MAKE="make"
57fi
58$MAKE
59
60%install
61rm -rf $RPM_BUILD_ROOT
62make prefix=$RPM_BUILD_ROOT%{pref} install
63
64%post
65/sbin/ldconfig
66
67%postun
68/sbin/ldconfig
69
70%files
71%defattr(-, root, root)
72%doc COPYING.LIB INSTALL.txt LICENCE.txt README.txt SYMBOLS.txt TODO.txt
73%dir %{pref}/share/wx
74%{pref}/share/wx/*
75%attr(755, root, root) %{pref}/lib/libwx_gtk.*
76%attr(755, root, root) %{pref}/lib/libwx_gtk-2.3.*
77
78%files devel
79%defattr(-,root,root)
80%dir %{pref}/include/wx
81%{pref}/include/wx/*
82%dir %{pref}/lib/wx
83%{pref}/lib/wx/*
84%attr(755, root, root) %{pref}/bin/wxgtk-config
85%attr(755, root, root) %{pref}/bin/wx-config
86
87%files gl
88%attr(755, root, root) %{pref}/lib/libwx_gtk_gl*
89
90