%package devel
Summary: wxBase headers needed for developping with wxBase
Group: Development/Libraries
-Requires: wxBase
+Requires: wxBase = %{ver}
%description devel
Header files for wxBase. You need them to develop programs using wxBase.
+%package static
+Summary: wxBase static libraries
+Group: Development/Libraries
+
+%description static
+Static libraries for wxBase. You need them if you want to link statically against wxBase.
+
%prep
%setup -n wxBase-%{ver}
-./configure --prefix=%{pref} --enable-soname --disable-gui --disable-std_iostreams
%build
if [ "$SMP" != "" ]; then
else
export MAKE="make"
fi
-$MAKE
+
(cd locale; make allmo)
+mkdir obj-shared
+cd obj-shared
+../configure --prefix=%{pref} --enable-soname --disable-gui --disable-std_iostreams
+$MAKE
+cd ..
+
+mkdir obj-static
+cd obj-static
+../configure --prefix=%{pref} --disable-shared --disable-gui --disable-std_iostreams
+$MAKE
+cd ..
+
%install
rm -rf $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT%{pref} install
+(cd obj-static ; make prefix=$RPM_BUILD_ROOT%{pref} install)
+(cd obj-shared ; make prefix=$RPM_BUILD_ROOT%{pref} install)
+
+%find_lang wxstd
%clean
rm -rf $RPM_BUILD_ROOT
fi
fi
-%files
+%files -f wxstd.lang
%defattr (-,root,root)
%doc COPYING.LIB *.txt
%{_libdir}/libwx_base*so.*
-%{_datadir}/locale/*/*/*.mo
%files devel
%defattr (-,root,root)
%dir %{_libdir}/wx
%{_libdir}/wx/*
%{_bindir}/wxbase-%{ver2}-config
+%{_datadir}/aclocal/*.m4
+%files static
+%defattr (-,root,root)
+%{_libdir}/lib*.a