]> git.saurik.com Git - wxWidgets.git/blame - wxGTK.spec
fixes to wxGTK specfile
[wxWidgets.git] / wxGTK.spec
CommitLineData
e5ea3f7a 1%define pref /usr
8c8fb2f6
VZ
2%define ver 2.3.2
3%define ver2 2.3
4%define rel 0
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
36Requires: wxGTK
37
38%description devel
c661ecca
RR
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
40903af7 47OpenGl add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library.
641d87d8 48
f14a5b55 49%prep
31fe72b6 50%setup -n wxGTK-%{ver}
3a922bb4 51./configure --prefix=%{pref} --enable-soname --with-odbc --with-opengl
f14a5b55
RR
52
53%build
103aab26
RR
54if [ "$SMP" != "" ]; then
55 export MAKE="make -j$SMP"
56else
57 export MAKE="make"
58fi
59$MAKE
81edbb3f 60(cd locale ; make allmo)
f14a5b55
RR
61
62%install
31fe72b6
VZ
63rm -rf $RPM_BUILD_ROOT
64make prefix=$RPM_BUILD_ROOT%{pref} install
f14a5b55
RR
65
66%post
67/sbin/ldconfig
68
69%postun
70/sbin/ldconfig
71
81edbb3f
VS
72%post gl
73/sbin/ldconfig
74
75%postun gl
76/sbin/ldconfig
77
78%post devel
79# Install wx-config if there isn't any
80if test ! -f %{_bindir}/wx-config ; then
81 ln -sf wxgtk-%{ver2}-config %{_bindir}/wx-config
82fi
83
84%preun devel
85# Remove wx-config if it points to this package
86if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
87 SUM1=`md5sum %{_bindir}/wxgtk-%{ver2}-config | cut -c 0-32`
88 SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32`
89 if test "x$SUM1" = "x$SUM2" ; then
90 rm -f %{_bindir}/wx-config
91 fi
92fi
93
94
f14a5b55 95%files
81edbb3f
VS
96%defattr(-,root,root)
97%doc COPYING.LIB *.txt
98%dir %{_datadir}/wx
99%{_datadir}/wx/*
100%{_datadir}/locale/*/*/*.mo
101%{_libdir}/libwx_gtk-%{ver2}*.so.*
641d87d8
RR
102
103%files devel
0f7deca9 104%defattr(-,root,root)
81edbb3f
VS
105%{_libdir}/libwx_gtk-%{ver2}*.so
106%dir %{_includedir}/wx
107%{_includedir}/wx/*
108%dir %{_libdir}/wx
109%{_libdir}/wx/*
110%{_bindir}/wxgtk-%{ver2}-config
2a29700e 111
c661ecca 112%files gl
81edbb3f
VS
113%defattr(-,root,root)
114%{_libdir}/libwx_gtk_gl*
0f7deca9 115