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