]> git.saurik.com Git - wxWidgets.git/blame - wxGTK.spec
fix for focus handling in generic wxListCtrl
[wxWidgets.git] / wxGTK.spec
CommitLineData
e5ea3f7a 1%define pref /usr
8c8fb2f6
VZ
2%define ver 2.3.2
3%define ver2 2.3
acea2a0b 4%define rel 1
e5ea3f7a
RR
5
6Summary: The GTK+ 1.2 port of the wxWindows library
f14a5b55 7Name: wxGTK
e5ea3f7a
RR
8Version: %{ver}
9Release: %{rel}
2a29700e 10Copyright: wxWindows Licence
f14a5b55 11Group: X11/Libraries
b5fa0a3e
VZ
12Source: wxGTK-%{ver}.tar.bz2
13URL: http://www.wxwindows.org
31fe72b6
VZ
14Packager: Vadim Zeitlin <vadim@wxwindows.org>
15Prefix: %{pref}
16BuildRoot: /var/tmp/%{name}-root
f14a5b55 17
212d0bb3
VZ
18# all packages providing an implementation of wxWindows library (regardless of
19# the toolkit used) should provide the (virtual) wxwin package, this makes it
6e711d5c 20# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
212d0bb3
VZ
21Provides: wxwin
22
31fe72b6
VZ
23# in addition, we should provide libwx_gtk as automatic generator only notices
24# libwx_gtk-%{ver}-%{rel}
25Provides: libwx_gtk.so
8c8fb2f6 26Provides: libwx_gtk-%{ver2}.so
31fe72b6 27
f14a5b55 28%description
212d0bb3
VZ
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.
f14a5b55 32
641d87d8
RR
33%package devel
34Summary: The GTK+ 1.2 port of the wxWindows library
35Group: X11/Libraries
5dcf9614 36Requires: wxGTK = %{ver}
641d87d8
RR
37
38%description devel
c661ecca
RR
39Header files for wxGTK, the GTK+ 1.2 port of the wxWindows library.
40
41%package gl
5dcf9614 42Summary: The GTK+ 1.2 port of the wxWindows library, OpenGL add-on.
c661ecca 43Group: X11/Libraries
5dcf9614 44Requires: wxGTK = %{ver}
c661ecca
RR
45
46%description gl
5dcf9614
VS
47OpenGL add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library.
48
49%package static
50Summary: wxGTK static libraries
51Group: Development/Libraries
52
53%description static
54Static libraries for wxGTK. You need them if you want to link statically against wxGTK.
641d87d8 55
f14a5b55 56%prep
31fe72b6 57%setup -n wxGTK-%{ver}
f14a5b55
RR
58
59%build
103aab26
RR
60if [ "$SMP" != "" ]; then
61 export MAKE="make -j$SMP"
62else
63 export MAKE="make"
64fi
5dcf9614 65
5dcf9614
VS
66mkdir obj-shared
67cd obj-shared
68../configure --prefix=%{pref} --enable-soname --with-odbc --with-opengl
69$MAKE
70cd ..
71
72mkdir obj-static
73cd obj-static
74../configure --prefix=%{pref} --disable-shared --with-odbc --with-opengl
103aab26 75$MAKE
5dcf9614 76cd ..
f14a5b55
RR
77
78%install
31fe72b6 79rm -rf $RPM_BUILD_ROOT
5dcf9614
VS
80(cd obj-static; make prefix=$RPM_BUILD_ROOT%{pref} install)
81(cd obj-shared; make prefix=$RPM_BUILD_ROOT%{pref} install)
f14a5b55 82
acea2a0b
VS
83%find_lang wxstd
84
c16d2763
VS
85%clean
86rm -rf $RPM_BUILD_ROOT
87
f14a5b55
RR
88%post
89/sbin/ldconfig
90
91%postun
92/sbin/ldconfig
93
81edbb3f
VS
94%post gl
95/sbin/ldconfig
96
97%postun gl
98/sbin/ldconfig
99
100%post devel
101# Install wx-config if there isn't any
102if test ! -f %{_bindir}/wx-config ; then
103 ln -sf wxgtk-%{ver2}-config %{_bindir}/wx-config
104fi
105
106%preun devel
107# Remove wx-config if it points to this package
108if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
109 SUM1=`md5sum %{_bindir}/wxgtk-%{ver2}-config | cut -c 0-32`
110 SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32`
111 if test "x$SUM1" = "x$SUM2" ; then
112 rm -f %{_bindir}/wx-config
113 fi
114fi
115
116
acea2a0b 117%files -f wxstd.lang
81edbb3f
VS
118%defattr(-,root,root)
119%doc COPYING.LIB *.txt
120%dir %{_datadir}/wx
121%{_datadir}/wx/*
81edbb3f 122%{_libdir}/libwx_gtk-%{ver2}*.so.*
641d87d8
RR
123
124%files devel
0f7deca9 125%defattr(-,root,root)
81edbb3f
VS
126%{_libdir}/libwx_gtk-%{ver2}*.so
127%dir %{_includedir}/wx
128%{_includedir}/wx/*
129%dir %{_libdir}/wx
130%{_libdir}/wx/*
131%{_bindir}/wxgtk-%{ver2}-config
debc175a 132%{_datadir}/aclocal/*.m4
2a29700e 133
c661ecca 134%files gl
81edbb3f
VS
135%defattr(-,root,root)
136%{_libdir}/libwx_gtk_gl*
0f7deca9 137
5dcf9614
VS
138%files static
139%defattr (-,root,root)
140%{_libdir}/lib*.a