]> git.saurik.com Git - wxWidgets.git/blame - wxGTK.spec
ignore CodeWarrior build directory and files produced during compilation
[wxWidgets.git] / wxGTK.spec
CommitLineData
e5ea3f7a 1%define pref /usr
147a1f7e 2%define ver 2.3.0
d5a07b9e 3%define rel 0
e5ea3f7a
RR
4
5Summary: The GTK+ 1.2 port of the wxWindows library
f14a5b55 6Name: wxGTK
e5ea3f7a
RR
7Version: %{ver}
8Release: %{rel}
2a29700e 9Copyright: wxWindows Licence
f14a5b55 10Group: X11/Libraries
31fe72b6 11Source: wxGTK-%{ver}.tar.gz
f6bcfd97 12URL: http://wxwindows.org
31fe72b6
VZ
13Packager: Vadim Zeitlin <vadim@wxwindows.org>
14Prefix: %{pref}
15BuildRoot: /var/tmp/%{name}-root
f14a5b55 16
212d0bb3
VZ
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
31fe72b6
VZ
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.2.so
26
f14a5b55 27%description
212d0bb3
VZ
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.
f14a5b55 31
641d87d8
RR
32%package devel
33Summary: The GTK+ 1.2 port of the wxWindows library
34Group: X11/Libraries
35Requires: wxGTK
36
37%description devel
c661ecca
RR
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
40903af7 46OpenGl add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library.
641d87d8 47
f14a5b55 48%prep
31fe72b6 49%setup -n wxGTK-%{ver}
40903af7 50./configure --prefix=%{pref} --enable-burnt_name --with-odbc --with-opengl
f14a5b55
RR
51
52%build
103aab26
RR
53if [ "$SMP" != "" ]; then
54 export MAKE="make -j$SMP"
55else
56 export MAKE="make"
57fi
58$MAKE
f14a5b55
RR
59
60%install
31fe72b6
VZ
61rm -rf $RPM_BUILD_ROOT
62make prefix=$RPM_BUILD_ROOT%{pref} install
f14a5b55
RR
63
64%post
65/sbin/ldconfig
66
67%postun
68/sbin/ldconfig
69
70%files
e5ea3f7a 71%defattr (644, root, root, 755)
2a29700e 72%doc COPYING.LIB INSTALL.txt LICENCE.txt README.txt SYMBOLS.txt TODO.txt
641d87d8
RR
73%dir %{pref}/share/wx
74%{pref}/share/wx/*
ea1f75db 75%attr(755, -, -) %{pref}/lib/libwx_gtk.*
f6bcfd97 76%attr(755, -, -) %{pref}/lib/libwx_gtk-2.2.*
641d87d8
RR
77
78%files devel
79%defattr (644, root, root, 755)
e5ea3f7a
RR
80%dir %{pref}/include/wx
81%{pref}/include/wx/*
82%dir %{pref}/lib/wx
83%{pref}/lib/wx/*
b0e282b3 84%attr(755, -, -) %{pref}/bin/wxgtk-config
e5ea3f7a 85%attr(755, -, -) %{pref}/bin/wx-config
2a29700e 86
c661ecca
RR
87%files gl
88%attr(755, -, -) %{pref}/lib/libwx_gtk_gl*