added -static packages to specfiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
30
wxBase.spec
30
wxBase.spec
@@ -27,14 +27,20 @@ the following platforms: Win32, generic Unix (Linux, FreeBSD, Solaris, HP-UX,
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: wxBase headers needed for developping with wxBase
|
Summary: wxBase headers needed for developping with wxBase
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: wxBase
|
Requires: wxBase = %{ver}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Header files for wxBase. You need them to develop programs using wxBase.
|
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
|
%prep
|
||||||
%setup -n wxBase-%{ver}
|
%setup -n wxBase-%{ver}
|
||||||
./configure --prefix=%{pref} --enable-soname --disable-gui --disable-std_iostreams
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
if [ "$SMP" != "" ]; then
|
if [ "$SMP" != "" ]; then
|
||||||
@@ -42,12 +48,25 @@ if [ "$SMP" != "" ]; then
|
|||||||
else
|
else
|
||||||
export MAKE="make"
|
export MAKE="make"
|
||||||
fi
|
fi
|
||||||
$MAKE
|
|
||||||
(cd locale; make allmo)
|
(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
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
@@ -89,3 +108,6 @@ fi
|
|||||||
%{_libdir}/wx/*
|
%{_libdir}/wx/*
|
||||||
%{_bindir}/wxbase-%{ver2}-config
|
%{_bindir}/wxbase-%{ver2}-config
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%defattr (-,root,root)
|
||||||
|
%{_libdir}/lib*.a
|
||||||
|
36
wxGTK.spec
36
wxGTK.spec
@@ -33,22 +33,28 @@ Motif/LessTif, MS Windows, Mac) from the same source code.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: The GTK+ 1.2 port of the wxWindows library
|
Summary: The GTK+ 1.2 port of the wxWindows library
|
||||||
Group: X11/Libraries
|
Group: X11/Libraries
|
||||||
Requires: wxGTK
|
Requires: wxGTK = %{ver}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Header files for wxGTK, the GTK+ 1.2 port of the wxWindows library.
|
Header files for wxGTK, the GTK+ 1.2 port of the wxWindows library.
|
||||||
|
|
||||||
%package gl
|
%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
|
Group: X11/Libraries
|
||||||
Requires: wxGTK
|
Requires: wxGTK = %{ver}
|
||||||
|
|
||||||
%description gl
|
%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
|
%prep
|
||||||
%setup -n wxGTK-%{ver}
|
%setup -n wxGTK-%{ver}
|
||||||
./configure --prefix=%{pref} --enable-soname --with-odbc --with-opengl
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
if [ "$SMP" != "" ]; then
|
if [ "$SMP" != "" ]; then
|
||||||
@@ -56,12 +62,25 @@ if [ "$SMP" != "" ]; then
|
|||||||
else
|
else
|
||||||
export MAKE="make"
|
export MAKE="make"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
(cd locale; make allmo)
|
||||||
|
|
||||||
|
mkdir obj-shared
|
||||||
|
cd obj-shared
|
||||||
|
../configure --prefix=%{pref} --enable-soname --with-odbc --with-opengl
|
||||||
$MAKE
|
$MAKE
|
||||||
(cd locale ; make allmo)
|
cd ..
|
||||||
|
|
||||||
|
mkdir obj-static
|
||||||
|
cd obj-static
|
||||||
|
../configure --prefix=%{pref} --disable-shared --with-odbc --with-opengl
|
||||||
|
$MAKE
|
||||||
|
cd ..
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
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
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@@ -113,3 +132,6 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libwx_gtk_gl*
|
%{_libdir}/libwx_gtk_gl*
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%defattr (-,root,root)
|
||||||
|
%{_libdir}/lib*.a
|
||||||
|
Reference in New Issue
Block a user