From 5dcf9614cf02cdafabf081f74ac2439e170ea84b Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 22 Nov 2001 00:33:18 +0000 Subject: [PATCH] added -static packages to specfiles git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxBase.spec | 30 ++++++++++++++++++++++++++---- wxGTK.spec | 36 +++++++++++++++++++++++++++++------- 2 files changed, 55 insertions(+), 11 deletions(-) diff --git a/wxBase.spec b/wxBase.spec index 938201a416..25e9234dd4 100644 --- a/wxBase.spec +++ b/wxBase.spec @@ -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 -$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) %clean rm -rf $RPM_BUILD_ROOT @@ -89,3 +108,6 @@ fi %{_libdir}/wx/* %{_bindir}/wxbase-%{ver2}-config +%files static +%defattr (-,root,root) +%{_libdir}/lib*.a diff --git a/wxGTK.spec b/wxGTK.spec index f8fc676fca..90fc4568b1 100644 --- a/wxGTK.spec +++ b/wxGTK.spec @@ -33,22 +33,28 @@ Motif/LessTif, MS Windows, Mac) from the same source code. %package devel Summary: The GTK+ 1.2 port of the wxWindows library Group: X11/Libraries -Requires: wxGTK +Requires: wxGTK = %{ver} %description devel Header files for wxGTK, the GTK+ 1.2 port of the wxWindows library. %package gl -Summary: The GTK+ 1.2 port of the wxWindows library, OpenGl add-on. +Summary: The GTK+ 1.2 port of the wxWindows library, OpenGL add-on. Group: X11/Libraries -Requires: wxGTK +Requires: wxGTK = %{ver} %description gl -OpenGl add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library. +OpenGL add-on library for wxGTK, the GTK+ 1.2 port of the wxWindows library. + +%package static +Summary: wxGTK static libraries +Group: Development/Libraries + +%description static +Static libraries for wxGTK. You need them if you want to link statically against wxGTK. %prep %setup -n wxGTK-%{ver} -./configure --prefix=%{pref} --enable-soname --with-odbc --with-opengl %build if [ "$SMP" != "" ]; then @@ -56,12 +62,25 @@ if [ "$SMP" != "" ]; then else export MAKE="make" fi + +(cd locale; make allmo) + +mkdir obj-shared +cd obj-shared +../configure --prefix=%{pref} --enable-soname --with-odbc --with-opengl +$MAKE +cd .. + +mkdir obj-static +cd obj-static +../configure --prefix=%{pref} --disable-shared --with-odbc --with-opengl $MAKE -(cd locale ; make allmo) +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) %post /sbin/ldconfig @@ -113,3 +132,6 @@ fi %defattr(-,root,root) %{_libdir}/libwx_gtk_gl* +%files static +%defattr (-,root,root) +%{_libdir}/lib*.a -- 2.45.2