]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxBase.spec
removed small as otherwise the code was apparently unreadable in HTML docs
[wxWidgets.git] / wxBase.spec
... / ...
CommitLineData
1%define pref /usr
2%define ver 2.3.2
3%define ver2 2.3
4%define rel 1
5
6Summary: wxBase library - non-GUI support classes of wxWindows toolkit
7Name: wxBase
8Version: %{ver}
9Release: %{rel}
10Copyright: wxWindows Licence
11Group: Development/Libraries
12Source: wxBase-%{ver}.tar.bz2
13URL: http://www.wxwindows.org
14Packager: Vadim Zeitlin <vadim@wxwindows.org>
15Prefix: %{pref}
16BuildRoot: /var/tmp/%{name}-root
17
18%description
19wxBase is a collection of C++ classes providing basic data structures (strings,
20lists, arrays), powerful wxDateTime class for date manipulations, portable
21wrappers around many OS-specific functions allowing to build the same program
22under all supported folders, wxThread class for writing multithreaded programs
23using either Win32 or POSIX threads and much more. wxBase currently supports
24the following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris, HP-UX,
25...) and BeOS.
26
27%package devel
28Summary: wxBase headers needed for developping with wxBase
29Group: Development/Libraries
30Requires: wxBase = %{ver}
31
32%description devel
33Header files for wxBase. You need them to develop programs using wxBase.
34
35%package static
36Summary: wxBase static libraries
37Group: Development/Libraries
38
39%description static
40Static libraries for wxBase. You need them if you want to link statically against wxBase.
41
42%prep
43%setup -n wxBase-%{ver}
44
45%build
46if [ "$SMP" != "" ]; then
47 export MAKE="make -j$SMP"
48else
49 export MAKE="make"
50fi
51
52(cd locale; make allmo)
53
54mkdir obj-shared
55cd obj-shared
56../configure --prefix=%{pref} --enable-soname --disable-gui --disable-std_iostreams
57$MAKE
58cd ..
59
60mkdir obj-static
61cd obj-static
62../configure --prefix=%{pref} --disable-shared --disable-gui --disable-std_iostreams
63$MAKE
64cd ..
65
66%install
67rm -rf $RPM_BUILD_ROOT
68(cd obj-static ; make prefix=$RPM_BUILD_ROOT%{pref} install)
69(cd obj-shared ; make prefix=$RPM_BUILD_ROOT%{pref} install)
70
71%find_lang wxstd
72
73%clean
74rm -rf $RPM_BUILD_ROOT
75
76%post
77/sbin/ldconfig
78
79%postun
80/sbin/ldconfig
81
82%post devel
83# Install wx-config if there isn't any
84if test ! -f %{_bindir}/wx-config ; then
85 ln -sf wxbase-%{ver2}-config %{_bindir}/wx-config
86fi
87
88%preun devel
89# Remove wx-config if it points to this package
90if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
91 SUM1=`md5sum %{_bindir}/wxbase-%{ver2}-config | cut -c 0-32`
92 SUM2=`md5sum %{_bindir}/wx-config | cut -c 0-32`
93 if test "x$SUM1" = "x$SUM2" ; then
94 rm -f %{_bindir}/wx-config
95 fi
96fi
97
98%files -f wxstd.lang
99%defattr (-,root,root)
100%doc COPYING.LIB *.txt
101%{_libdir}/libwx_base*so.*
102
103%files devel
104%defattr (-,root,root)
105%dir %{_includedir}/wx
106%{_includedir}/wx/*
107%{_libdir}/libwx_base*.so
108%dir %{_libdir}/wx
109%{_libdir}/wx/*
110%{_bindir}/wxbase-%{ver2}-config
111%{_datadir}/aclocal/*.m4
112
113%files static
114%defattr (-,root,root)
115%{_libdir}/lib*.a