]> git.saurik.com Git - wxWidgets.git/blame - wxBase.spec
fixed ambiguous call to wxMacCarbonEvent::SetParameter
[wxWidgets.git] / wxBase.spec
CommitLineData
2224580a 1%define pref /usr
c4839ccf 2%define ver 2.5.2
c31752da 3%define ver2 2.5
014e19de 4%define rel 1
2224580a 5
4eba1840
VS
6# Configurable settings (use --with(out) unicode on rpmbuild command line):
7%define unicode 0
8%{?_with_unicode: %{expand: %%define unicode 1}}
9%{?_without_unicode: %{expand: %%define unicode 0}}
10
11%if %{unicode}
12%define wxconfigname wxbaseu-%{ver2}-config
13%else
14%define wxconfigname wxbase-%{ver2}-config
15%endif
16
17%if %{unicode}
18%define name wx-base-unicode
19%else
20%define name wx-base
21%endif
22
2224580a 23Summary: wxBase library - non-GUI support classes of wxWindows toolkit
4eba1840 24Name: %{name}
2224580a
VZ
25Version: %{ver}
26Release: %{rel}
4eba1840 27License: wxWindows Licence
2224580a 28Group: Development/Libraries
b5fa0a3e
VZ
29Source: wxBase-%{ver}.tar.bz2
30URL: http://www.wxwindows.org
2224580a 31Packager: Vadim Zeitlin <vadim@wxwindows.org>
31fe72b6
VZ
32Prefix: %{pref}
33BuildRoot: /var/tmp/%{name}-root
4eba1840 34Provides: wxBase
2224580a
VZ
35
36%description
37wxBase is a collection of C++ classes providing basic data structures (strings,
38lists, arrays), powerful wxDateTime class for date manipulations, portable
39wrappers around many OS-specific functions allowing to build the same program
40under all supported folders, wxThread class for writing multithreaded programs
41using either Win32 or POSIX threads and much more. wxBase currently supports
42the following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris, HP-UX,
43...) and BeOS.
44
45%package devel
46Summary: wxBase headers needed for developping with wxBase
47Group: Development/Libraries
4eba1840
VS
48Requires: %{name} = %{ver}
49Provides: wxBase-devel
2224580a
VZ
50
51%description devel
52Header files for wxBase. You need them to develop programs using wxBase.
53
5dcf9614
VS
54%package static
55Summary: wxBase static libraries
56Group: Development/Libraries
57
58%description static
59Static libraries for wxBase. You need them if you want to link statically against wxBase.
60
2224580a 61%prep
4eba1840 62%setup -q -n wxBase-%{ver}
2224580a
VZ
63
64%build
65if [ "$SMP" != "" ]; then
66 export MAKE="make -j$SMP"
67else
68 export MAKE="make"
69fi
5dcf9614 70
5dcf9614
VS
71mkdir obj-shared
72cd obj-shared
4eba1840
VS
73../configure --prefix=%{pref} --disable-gui \
74%if %{unicode}
49462b9b 75 --enable-unicode
4eba1840 76%else
49462b9b 77 --with-odbc
4eba1840 78%endif
5dcf9614
VS
79$MAKE
80cd ..
81
82mkdir obj-static
83cd obj-static
4eba1840
VS
84../configure --prefix=%{pref} --disable-shared --disable-gui \
85%if %{unicode}
49462b9b 86 --enable-unicode
4eba1840 87%else
49462b9b 88 --with-odbc
4eba1840 89%endif
5dcf9614
VS
90$MAKE
91cd ..
92
2224580a
VZ
93%install
94rm -rf $RPM_BUILD_ROOT
5dcf9614
VS
95(cd obj-static ; make prefix=$RPM_BUILD_ROOT%{pref} install)
96(cd obj-shared ; make prefix=$RPM_BUILD_ROOT%{pref} install)
2224580a 97
acea2a0b
VS
98%find_lang wxstd
99
2224580a
VZ
100%clean
101rm -rf $RPM_BUILD_ROOT
102
103%post
104/sbin/ldconfig
105
106%postun
107/sbin/ldconfig
108
32037c4e
VS
109%post devel
110# Install wx-config if there isn't any
111if test ! -f %{_bindir}/wx-config ; then
112 ln -sf wxbase-%{ver2}-config %{_bindir}/wx-config
113fi
114
115%preun devel
116# Remove wx-config if it points to this package
117if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
118 SUM1=`md5sum %{_bindir}/wxbase-%{ver2}-config | cut -c 0-32`
119 SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32`
120 if test "x$SUM1" = "x$SUM2" ; then
121 rm -f %{_bindir}/wx-config
122 fi
123fi
124
acea2a0b 125%files -f wxstd.lang
32037c4e
VS
126%defattr (-,root,root)
127%doc COPYING.LIB *.txt
128%{_libdir}/libwx_base*so.*
156da3a9 129
32037c4e
VS
130%files devel
131%defattr (-,root,root)
132%dir %{_includedir}/wx
133%{_includedir}/wx/*
134%{_libdir}/libwx_base*.so
135%dir %{_libdir}/wx
136%{_libdir}/wx/*
4eba1840 137%{_bindir}/wxbase*-%{ver2}-config
debc175a 138%{_datadir}/aclocal/*.m4
2224580a 139
5dcf9614
VS
140%files static
141%defattr (-,root,root)
142%{_libdir}/lib*.a