]> git.saurik.com Git - wxWidgets.git/blobdiff - wxBase.spec
Applied patch #514037 from Paul Gammans to remove unneeded code in wxDbGridTableBase...
[wxWidgets.git] / wxBase.spec
index 938201a416f445a555e0f80cd5131eecf20ebf2f..5b38f95a9b180581060b55ae8a20923395344918 100644 (file)
@@ -27,14 +27,20 @@ the following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris, HP-UX,
 %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
@@ -42,12 +48,25 @@ if [ "$SMP" != "" ]; then
 else
   export MAKE="make"
 fi
+
+mkdir obj-shared
+cd obj-shared
+../configure --prefix=%{pref} --enable-soname --disable-gui --disable-std_iostreams
 $MAKE
-(cd locale; make allmo)
+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
@@ -74,11 +93,10 @@ if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
   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)
@@ -88,4 +106,8 @@ fi
 %dir %{_libdir}/wx
 %{_libdir}/wx/*
 %{_bindir}/wxbase-%{ver2}-config
+%{_datadir}/aclocal/*.m4
 
+%files static
+%defattr (-,root,root)
+%{_libdir}/lib*.a