forked from jengelh/wxWidgets-3_2
Accepting request 559506 from X11:wxWidgets
- Add a recommends from the wx base library to the language package. OBS-URL: https://build.opensuse.org/request/show/559506 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wxWidgets-3_2?expand=0&rev=2
This commit is contained in:
commit
9b8329e8aa
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 15 18:26:37 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Add a recommends from the wx base library to the language package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 21 10:39:27 UTC 2017 - martin.koegler@chello.at
|
Sat Oct 21 10:39:27 UTC 2017 - martin.koegler@chello.at
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: wxGTK3-3_2
|
Name: wxGTK3-3_2
|
||||||
%define base_name wxWidgets
|
%define base_name wxWidgets-3_2
|
||||||
%define tarball_name wxWidgets
|
%define tarball_name wxWidgets
|
||||||
%define variant suse
|
%define variant suse
|
||||||
%define sonum 4
|
%define sonum 4
|
||||||
@ -25,12 +25,6 @@ Version: 3.1.1~2244
|
|||||||
Release: 0
|
Release: 0
|
||||||
%define wx_minor 3.1
|
%define wx_minor 3.1
|
||||||
%define wx_micro 3.1.1
|
%define wx_micro 3.1.1
|
||||||
# lang packages are exactly equal for all variants. Build it only once:
|
|
||||||
%if "%name" == "%base_name"
|
|
||||||
%define BUILD_LANG 1
|
|
||||||
%else
|
|
||||||
%define BUILD_LANG 0
|
|
||||||
%endif
|
|
||||||
# build non-UI toolkit related packages
|
# build non-UI toolkit related packages
|
||||||
%define base_packages 0
|
%define base_packages 0
|
||||||
Summary: C++ Library for Cross-Platform Development
|
Summary: C++ Library for Cross-Platform Development
|
||||||
@ -45,7 +39,7 @@ Source5: wxWidgets-3_2-rpmlintrc
|
|||||||
Source6: wxpython-mkdiff.sh
|
Source6: wxpython-mkdiff.sh
|
||||||
Patch1: soversion.diff
|
Patch1: soversion.diff
|
||||||
Patch2: wxqt-compile.diff
|
Patch2: wxqt-compile.diff
|
||||||
BuildRoot: %_tmppath/%name-%version-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: SDL-devel
|
BuildRequires: SDL-devel
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: cppunit-devel
|
BuildRequires: cppunit-devel
|
||||||
@ -79,14 +73,13 @@ Motif, MS Windows, MacOS X, Windows CE, GPE) from the same source code.
|
|||||||
%if %base_packages
|
%if %base_packages
|
||||||
%package -n libwx_baseu-%variant%sonum
|
%package -n libwx_baseu-%variant%sonum
|
||||||
Summary: wxWidgets Library
|
Summary: wxWidgets Library
|
||||||
Group: System/Libraries
|
|
||||||
# Name up to openSUSE 11.3 and up to wxGTK-2.8:
|
# Name up to openSUSE 11.3 and up to wxGTK-2.8:
|
||||||
|
Group: System/Libraries
|
||||||
Obsoletes: wxGTK <= %version.0
|
Obsoletes: wxGTK <= %version.0
|
||||||
# Third party base package name:
|
# Third party base package name:
|
||||||
Obsoletes: wxWidgets < %version
|
Obsoletes: wxWidgets < %version
|
||||||
# wxWidgets-lang requires wxWidgets. Provide them to fix dependencies:
|
|
||||||
Provides: wxWidgets = %version
|
Provides: wxWidgets = %version
|
||||||
Recommends: %base_name-lang >= %version
|
Recommends: wxWidgets-lang >= 3.0
|
||||||
|
|
||||||
%description -n libwx_baseu-%variant%sonum
|
%description -n libwx_baseu-%variant%sonum
|
||||||
Library for the wxWidgets cross-platform GUI.
|
Library for the wxWidgets cross-platform GUI.
|
||||||
@ -205,9 +198,6 @@ SDL Plugin for the wxWidgets cross-platform GUI.
|
|||||||
Summary: Everything needed for development with wxWidgets
|
Summary: Everything needed for development with wxWidgets
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: gtk%gtk_version-devel
|
Requires: gtk%gtk_version-devel
|
||||||
Requires: libwx_baseu-%variant%sonum = %version
|
|
||||||
Requires: libwx_baseu_net-%variant%sonum = %version
|
|
||||||
Requires: libwx_baseu_xml-%variant%sonum = %version
|
|
||||||
Requires: libwx_%{toolkit}u_adv-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_adv-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_aui-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_aui-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_core-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_core-%variant%sonum = %version
|
||||||
@ -219,11 +209,14 @@ Requires: libwx_%{toolkit}u_qa-%variant%sonum = %version
|
|||||||
Requires: libwx_%{toolkit}u_ribbon-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_ribbon-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_richtext-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_richtext-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_stc-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_stc-%variant%sonum = %version
|
||||||
Requires: pkgconfig(gl)
|
|
||||||
Requires: libwx_%{toolkit}u_xrc-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_xrc-%variant%sonum = %version
|
||||||
|
Requires: libwx_baseu-%variant%sonum = %version
|
||||||
|
Requires: libwx_baseu_net-%variant%sonum = %version
|
||||||
|
Requires: libwx_baseu_xml-%variant%sonum = %version
|
||||||
|
Requires: pkgconfig(gl)
|
||||||
Requires: pkgconfig(glu)
|
Requires: pkgconfig(glu)
|
||||||
Provides: wxWidgets-experimental-devel = %version-%release
|
|
||||||
Provides: wxGTK3-devel = %version-%release
|
Provides: wxGTK3-devel = %version-%release
|
||||||
|
Provides: wxWidgets-experimental-devel = %version-%release
|
||||||
Conflicts: wxWidgets-devel
|
Conflicts: wxWidgets-devel
|
||||||
Conflicts: otherproviders(wxWidgets-experimental-devel)
|
Conflicts: otherproviders(wxWidgets-experimental-devel)
|
||||||
|
|
||||||
@ -237,10 +230,6 @@ This package contains all files needed for developing with wxGTK%gtk_version.
|
|||||||
Note: wxWidgets variant devel packages are mutually exclusive. Please
|
Note: wxWidgets variant devel packages are mutually exclusive. Please
|
||||||
read %_docdir/%name/README.SUSE to pick a correct variant.
|
read %_docdir/%name/README.SUSE to pick a correct variant.
|
||||||
|
|
||||||
%if %BUILD_LANG
|
|
||||||
%lang_package -n %base_name
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
echo "=== RPM build flags: WX_DEBUG=0%{?WX_DEBUG}"
|
echo "=== RPM build flags: WX_DEBUG=0%{?WX_DEBUG}"
|
||||||
%setup -q -n %tarball_name-%version
|
%setup -q -n %tarball_name-%version
|
||||||
@ -274,11 +263,6 @@ autoconf -f -i
|
|||||||
--enable-stl\
|
--enable-stl\
|
||||||
--enable-plugins
|
--enable-plugins
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
%if %BUILD_LANG
|
|
||||||
cd locale
|
|
||||||
make allmo
|
|
||||||
cd ..
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
:
|
:
|
||||||
@ -291,13 +275,7 @@ make install DESTDIR="%buildroot"
|
|||||||
rm -f "%buildroot/%_libdir"/libwx_baseu{,_net,_xml}-%variant.so.%{sonum}* \
|
rm -f "%buildroot/%_libdir"/libwx_baseu{,_net,_xml}-%variant.so.%{sonum}* \
|
||||||
"%buildroot/%_libdir/wx/%wx_micro"/sound_sdlu-*.so
|
"%buildroot/%_libdir/wx/%wx_micro"/sound_sdlu-*.so
|
||||||
%endif
|
%endif
|
||||||
%if %BUILD_LANG
|
|
||||||
# Locales for MS Windows:
|
|
||||||
rm -Rf %buildroot/%_datadir/locale/*/LC_MESSAGES/wxmsw.mo
|
|
||||||
%find_lang wxstd
|
|
||||||
%else
|
|
||||||
rm -Rf %buildroot/%_datadir/locale
|
rm -Rf %buildroot/%_datadir/locale
|
||||||
%endif
|
|
||||||
|
|
||||||
# HACK: Fix wx-config symlink (bug introduced in 2.9.4).
|
# HACK: Fix wx-config symlink (bug introduced in 2.9.4).
|
||||||
ln -sf $(echo %buildroot/%_libdir/wx/config/* | sed "s%%%buildroot%%%%") %buildroot/%_bindir/wx-config
|
ln -sf $(echo %buildroot/%_libdir/wx/config/* | sed "s%%%buildroot%%%%") %buildroot/%_bindir/wx-config
|
||||||
@ -335,11 +313,6 @@ ln -sf $(echo %buildroot/%_libdir/wx/config/* | sed "s%%%buildroot%%%%") %buildr
|
|||||||
%post -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
%post -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
||||||
%postun -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
%postun -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
||||||
|
|
||||||
%if %BUILD_LANG
|
|
||||||
|
|
||||||
%files lang -f wxstd.lang
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %base_packages
|
%if %base_packages
|
||||||
%files -n libwx_baseu-%variant%sonum
|
%files -n libwx_baseu-%variant%sonum
|
||||||
%defattr (-,root,root)
|
%defattr (-,root,root)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 15 18:26:37 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Add a recommends from the wx base library to the language package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 21 10:39:27 UTC 2017 - martin.koegler@chello.at
|
Sat Oct 21 10:39:27 UTC 2017 - martin.koegler@chello.at
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: wxQt-3_2
|
Name: wxQt-3_2
|
||||||
%define base_name wxWidgets
|
%define base_name wxWidgets-3_2
|
||||||
%define tarball_name wxWidgets
|
%define tarball_name wxWidgets
|
||||||
%define variant suse
|
%define variant suse
|
||||||
%define sonum 4
|
%define sonum 4
|
||||||
@ -25,12 +25,6 @@ Version: 3.1.1~2244
|
|||||||
Release: 0
|
Release: 0
|
||||||
%define wx_minor 3.1
|
%define wx_minor 3.1
|
||||||
%define wx_micro 3.1.1
|
%define wx_micro 3.1.1
|
||||||
# lang packages are exactly equal for all variants. Build it only once:
|
|
||||||
%if "%name" == "%base_name"
|
|
||||||
%define BUILD_LANG 1
|
|
||||||
%else
|
|
||||||
%define BUILD_LANG 0
|
|
||||||
%endif
|
|
||||||
# build non-UI toolkit related packages
|
# build non-UI toolkit related packages
|
||||||
%define base_packages 0
|
%define base_packages 0
|
||||||
Summary: C++ Library for Cross-Platform Development
|
Summary: C++ Library for Cross-Platform Development
|
||||||
@ -45,7 +39,7 @@ Source5: wxWidgets-3_2-rpmlintrc
|
|||||||
Source6: wxpython-mkdiff.sh
|
Source6: wxpython-mkdiff.sh
|
||||||
Patch1: soversion.diff
|
Patch1: soversion.diff
|
||||||
Patch2: wxqt-compile.diff
|
Patch2: wxqt-compile.diff
|
||||||
BuildRoot: %_tmppath/%name-%version-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: SDL-devel
|
BuildRequires: SDL-devel
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: cppunit-devel
|
BuildRequires: cppunit-devel
|
||||||
@ -72,8 +66,8 @@ BuildRequires: pkgconfig(Qt5Gui) >= 5.2.1
|
|||||||
BuildRequires: pkgconfig(Qt5OpenGL) >= 5.2.1
|
BuildRequires: pkgconfig(Qt5OpenGL) >= 5.2.1
|
||||||
BuildRequires: pkgconfig(Qt5Test) >= 5.2.1
|
BuildRequires: pkgconfig(Qt5Test) >= 5.2.1
|
||||||
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.1
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.1
|
||||||
BuildRequires: pkgconfig(glu)
|
|
||||||
BuildRequires: pkgconfig(cairo)
|
BuildRequires: pkgconfig(cairo)
|
||||||
|
BuildRequires: pkgconfig(glu)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
wxWidgets is a free C++ library for cross-platform GUI.
|
wxWidgets is a free C++ library for cross-platform GUI.
|
||||||
@ -83,14 +77,13 @@ Motif, MS Windows, MacOS X, Windows CE, GPE) from the same source code.
|
|||||||
%if %base_packages
|
%if %base_packages
|
||||||
%package -n libwx_baseu-%variant%sonum
|
%package -n libwx_baseu-%variant%sonum
|
||||||
Summary: wxWidgets Library
|
Summary: wxWidgets Library
|
||||||
Group: System/Libraries
|
|
||||||
# Name up to openSUSE 11.3 and up to wxGTK-2.8:
|
# Name up to openSUSE 11.3 and up to wxGTK-2.8:
|
||||||
|
Group: System/Libraries
|
||||||
Obsoletes: wxGTK <= %version.0
|
Obsoletes: wxGTK <= %version.0
|
||||||
# Third party base package name:
|
# Third party base package name:
|
||||||
Obsoletes: wxWidgets < %version
|
Obsoletes: wxWidgets < %version
|
||||||
# wxWidgets-lang requires wxWidgets. Provide them to fix dependencies:
|
|
||||||
Provides: wxWidgets = %version
|
Provides: wxWidgets = %version
|
||||||
Recommends: %base_name-lang >= %version
|
Recommends: wxWidgets-lang >= 3.0
|
||||||
|
|
||||||
%description -n libwx_baseu-%variant%sonum
|
%description -n libwx_baseu-%variant%sonum
|
||||||
Library for the wxWidgets cross-platform GUI.
|
Library for the wxWidgets cross-platform GUI.
|
||||||
@ -208,9 +201,6 @@ SDL Plugin for the wxWidgets cross-platform GUI.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Everything needed for development with wxWidgets
|
Summary: Everything needed for development with wxWidgets
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libwx_baseu-%variant%sonum = %version
|
|
||||||
Requires: libwx_baseu_net-%variant%sonum = %version
|
|
||||||
Requires: libwx_baseu_xml-%variant%sonum = %version
|
|
||||||
Requires: libwx_%{toolkit}u_adv-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_adv-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_aui-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_aui-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_core-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_core-%variant%sonum = %version
|
||||||
@ -223,8 +213,11 @@ Requires: libwx_%{toolkit}u_ribbon-%variant%sonum = %version
|
|||||||
Requires: libwx_%{toolkit}u_richtext-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_richtext-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_stc-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_stc-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_xrc-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_xrc-%variant%sonum = %version
|
||||||
Provides: wxWidgets-experimental-devel = %version-%release
|
Requires: libwx_baseu-%variant%sonum = %version
|
||||||
|
Requires: libwx_baseu_net-%variant%sonum = %version
|
||||||
|
Requires: libwx_baseu_xml-%variant%sonum = %version
|
||||||
Provides: wxQt-devel = %version-%release
|
Provides: wxQt-devel = %version-%release
|
||||||
|
Provides: wxWidgets-experimental-devel = %version-%release
|
||||||
Conflicts: wxWidgets-devel
|
Conflicts: wxWidgets-devel
|
||||||
Conflicts: otherproviders(wxWidgets-experimental-devel)
|
Conflicts: otherproviders(wxWidgets-experimental-devel)
|
||||||
|
|
||||||
@ -238,10 +231,6 @@ This package contains all files needed for developing with wxQt.
|
|||||||
Note: wxWidgets variant devel packages are mutually exclusive. Please
|
Note: wxWidgets variant devel packages are mutually exclusive. Please
|
||||||
read %_docdir/%name/README.SUSE to pick a correct variant.
|
read %_docdir/%name/README.SUSE to pick a correct variant.
|
||||||
|
|
||||||
%if %BUILD_LANG
|
|
||||||
%lang_package -n %base_name
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
echo "=== RPM build flags: WX_DEBUG=0%{?WX_DEBUG}"
|
echo "=== RPM build flags: WX_DEBUG=0%{?WX_DEBUG}"
|
||||||
%setup -q -n %tarball_name-%version
|
%setup -q -n %tarball_name-%version
|
||||||
@ -257,8 +246,6 @@ autoconf -f -i
|
|||||||
# --enable-accessibility is currently supported only in msw
|
# --enable-accessibility is currently supported only in msw
|
||||||
# --enable-extended_rtti does not compile
|
# --enable-extended_rtti does not compile
|
||||||
|
|
||||||
export CXXFLAGS="-O0 -ggdb3"
|
|
||||||
export CFLAGS="-O0 -ggdb3"
|
|
||||||
%configure\
|
%configure\
|
||||||
--enable-vendor=%variant \
|
--enable-vendor=%variant \
|
||||||
--with-qt \
|
--with-qt \
|
||||||
@ -277,11 +264,6 @@ export CFLAGS="-O0 -ggdb3"
|
|||||||
--enable-stl\
|
--enable-stl\
|
||||||
--enable-plugins
|
--enable-plugins
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
%if %BUILD_LANG
|
|
||||||
cd locale
|
|
||||||
make allmo
|
|
||||||
cd ..
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
:
|
:
|
||||||
@ -294,13 +276,7 @@ make install DESTDIR="%buildroot"
|
|||||||
rm -f "%buildroot/%_libdir"/libwx_baseu{,_net,_xml}-%variant.so.%{sonum}* \
|
rm -f "%buildroot/%_libdir"/libwx_baseu{,_net,_xml}-%variant.so.%{sonum}* \
|
||||||
"%buildroot/%_libdir/wx/%wx_micro"/sound_sdlu-*.so
|
"%buildroot/%_libdir/wx/%wx_micro"/sound_sdlu-*.so
|
||||||
%endif
|
%endif
|
||||||
%if %BUILD_LANG
|
|
||||||
# Locales for MS Windows:
|
|
||||||
rm -Rf %buildroot/%_datadir/locale/*/LC_MESSAGES/wxmsw.mo
|
|
||||||
%find_lang wxstd
|
|
||||||
%else
|
|
||||||
rm -Rf %buildroot/%_datadir/locale
|
rm -Rf %buildroot/%_datadir/locale
|
||||||
%endif
|
|
||||||
|
|
||||||
# HACK: Fix wx-config symlink (bug introduced in 2.9.4).
|
# HACK: Fix wx-config symlink (bug introduced in 2.9.4).
|
||||||
ln -sf $(echo %buildroot/%_libdir/wx/config/* | sed "s%%%buildroot%%%%") %buildroot/%_bindir/wx-config
|
ln -sf $(echo %buildroot/%_libdir/wx/config/* | sed "s%%%buildroot%%%%") %buildroot/%_bindir/wx-config
|
||||||
@ -338,11 +314,6 @@ ln -sf $(echo %buildroot/%_libdir/wx/config/* | sed "s%%%buildroot%%%%") %buildr
|
|||||||
%post -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
%post -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
||||||
%postun -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
%postun -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
||||||
|
|
||||||
%if %BUILD_LANG
|
|
||||||
|
|
||||||
%files lang -f wxstd.lang
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %base_packages
|
%if %base_packages
|
||||||
%files -n libwx_baseu-%variant%sonum
|
%files -n libwx_baseu-%variant%sonum
|
||||||
%defattr (-,root,root)
|
%defattr (-,root,root)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 15 18:26:37 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Add a recommends from the wx base library to the language package.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 21 10:39:27 UTC 2017 - martin.koegler@chello.at
|
Sat Oct 21 10:39:27 UTC 2017 - martin.koegler@chello.at
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: wxWidgets-3_2
|
Name: wxWidgets-3_2
|
||||||
%define base_name wxWidgets
|
%define base_name wxWidgets-3_2
|
||||||
%define tarball_name wxWidgets
|
%define tarball_name wxWidgets
|
||||||
%define variant suse
|
%define variant suse
|
||||||
%define sonum 4
|
%define sonum 4
|
||||||
@ -25,12 +25,6 @@ Version: 3.1.1~2244
|
|||||||
Release: 0
|
Release: 0
|
||||||
%define wx_minor 3.1
|
%define wx_minor 3.1
|
||||||
%define wx_micro 3.1.1
|
%define wx_micro 3.1.1
|
||||||
# lang packages are exactly equal for all variants. Build it only once:
|
|
||||||
%if "%name" == "%base_name"
|
|
||||||
%define BUILD_LANG 1
|
|
||||||
%else
|
|
||||||
%define BUILD_LANG 0
|
|
||||||
%endif
|
|
||||||
# build non-UI toolkit related packages
|
# build non-UI toolkit related packages
|
||||||
%define base_packages 1
|
%define base_packages 1
|
||||||
Summary: C++ Library for Cross-Platform Development
|
Summary: C++ Library for Cross-Platform Development
|
||||||
@ -45,7 +39,7 @@ Source5: wxWidgets-3_2-rpmlintrc
|
|||||||
Source6: wxpython-mkdiff.sh
|
Source6: wxpython-mkdiff.sh
|
||||||
Patch1: soversion.diff
|
Patch1: soversion.diff
|
||||||
Patch2: wxqt-compile.diff
|
Patch2: wxqt-compile.diff
|
||||||
BuildRoot: %_tmppath/%name-%version-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: SDL-devel
|
BuildRequires: SDL-devel
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: cppunit-devel
|
BuildRequires: cppunit-devel
|
||||||
@ -80,14 +74,13 @@ Motif, MS Windows, MacOS X, Windows CE, GPE) from the same source code.
|
|||||||
%if %base_packages
|
%if %base_packages
|
||||||
%package -n libwx_baseu-%variant%sonum
|
%package -n libwx_baseu-%variant%sonum
|
||||||
Summary: wxWidgets Library
|
Summary: wxWidgets Library
|
||||||
Group: System/Libraries
|
|
||||||
# Name up to openSUSE 11.3 and up to wxGTK-2.8:
|
# Name up to openSUSE 11.3 and up to wxGTK-2.8:
|
||||||
|
Group: System/Libraries
|
||||||
Obsoletes: wxGTK <= %version.0
|
Obsoletes: wxGTK <= %version.0
|
||||||
# Third party base package name:
|
# Third party base package name:
|
||||||
Obsoletes: wxWidgets < %version
|
Obsoletes: wxWidgets < %version
|
||||||
# wxWidgets-lang requires wxWidgets. Provide them to fix dependencies:
|
|
||||||
Provides: wxWidgets = %version
|
Provides: wxWidgets = %version
|
||||||
Recommends: %base_name-lang >= %version
|
Recommends: wxWidgets-lang >= 3.0
|
||||||
|
|
||||||
%description -n libwx_baseu-%variant%sonum
|
%description -n libwx_baseu-%variant%sonum
|
||||||
Library for the wxWidgets cross-platform GUI.
|
Library for the wxWidgets cross-platform GUI.
|
||||||
@ -206,9 +199,6 @@ SDL Plugin for the wxWidgets cross-platform GUI.
|
|||||||
Summary: Everything needed for development with wxWidgets
|
Summary: Everything needed for development with wxWidgets
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: gtk%gtk_version-devel
|
Requires: gtk%gtk_version-devel
|
||||||
Requires: libwx_baseu-%variant%sonum = %version
|
|
||||||
Requires: libwx_baseu_net-%variant%sonum = %version
|
|
||||||
Requires: libwx_baseu_xml-%variant%sonum = %version
|
|
||||||
Requires: libwx_%{toolkit}u_adv-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_adv-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_aui-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_aui-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_core-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_core-%variant%sonum = %version
|
||||||
@ -220,11 +210,14 @@ Requires: libwx_%{toolkit}u_qa-%variant%sonum = %version
|
|||||||
Requires: libwx_%{toolkit}u_ribbon-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_ribbon-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_richtext-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_richtext-%variant%sonum = %version
|
||||||
Requires: libwx_%{toolkit}u_stc-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_stc-%variant%sonum = %version
|
||||||
Requires: pkgconfig(gl)
|
|
||||||
Requires: libwx_%{toolkit}u_xrc-%variant%sonum = %version
|
Requires: libwx_%{toolkit}u_xrc-%variant%sonum = %version
|
||||||
|
Requires: libwx_baseu-%variant%sonum = %version
|
||||||
|
Requires: libwx_baseu_net-%variant%sonum = %version
|
||||||
|
Requires: libwx_baseu_xml-%variant%sonum = %version
|
||||||
|
Requires: pkgconfig(gl)
|
||||||
Requires: pkgconfig(glu)
|
Requires: pkgconfig(glu)
|
||||||
Provides: wxWidgets-devel = %version-%release
|
|
||||||
Provides: wxGTK2-devel = %version-%release
|
Provides: wxGTK2-devel = %version-%release
|
||||||
|
Provides: wxWidgets-devel = %version-%release
|
||||||
Conflicts: otherproviders(wxWidgets-devel)
|
Conflicts: otherproviders(wxWidgets-devel)
|
||||||
Conflicts: wxWidgets-experimental-devel
|
Conflicts: wxWidgets-experimental-devel
|
||||||
# Name up to openSUSE 11.3 and up to wxGTK-2.8.x:
|
# Name up to openSUSE 11.3 and up to wxGTK-2.8.x:
|
||||||
@ -241,10 +234,6 @@ This package contains all files needed for developing with wxGTK%gtk_version.
|
|||||||
Note: wxWidgets variant devel packages are mutually exclusive. Please
|
Note: wxWidgets variant devel packages are mutually exclusive. Please
|
||||||
read %_docdir/%name/README.SUSE to pick a correct variant.
|
read %_docdir/%name/README.SUSE to pick a correct variant.
|
||||||
|
|
||||||
%if %BUILD_LANG
|
|
||||||
%lang_package -n %base_name
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
echo "=== RPM build flags: WX_DEBUG=0%{?WX_DEBUG}"
|
echo "=== RPM build flags: WX_DEBUG=0%{?WX_DEBUG}"
|
||||||
%setup -q -n %tarball_name-%version
|
%setup -q -n %tarball_name-%version
|
||||||
@ -277,11 +266,6 @@ autoconf -f -i
|
|||||||
--enable-stl\
|
--enable-stl\
|
||||||
--enable-plugins
|
--enable-plugins
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
%if %BUILD_LANG
|
|
||||||
cd locale
|
|
||||||
make allmo
|
|
||||||
cd ..
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
:
|
:
|
||||||
@ -294,13 +278,7 @@ make install DESTDIR="%buildroot"
|
|||||||
rm -f "%buildroot/%_libdir"/libwx_baseu{,_net,_xml}-%variant.so.%{sonum}* \
|
rm -f "%buildroot/%_libdir"/libwx_baseu{,_net,_xml}-%variant.so.%{sonum}* \
|
||||||
"%buildroot/%_libdir/wx/%wx_micro"/sound_sdlu-*.so
|
"%buildroot/%_libdir/wx/%wx_micro"/sound_sdlu-*.so
|
||||||
%endif
|
%endif
|
||||||
%if %BUILD_LANG
|
|
||||||
# Locales for MS Windows:
|
|
||||||
rm -Rf %buildroot/%_datadir/locale/*/LC_MESSAGES/wxmsw.mo
|
|
||||||
%find_lang wxstd
|
|
||||||
%else
|
|
||||||
rm -Rf %buildroot/%_datadir/locale
|
rm -Rf %buildroot/%_datadir/locale
|
||||||
%endif
|
|
||||||
|
|
||||||
# HACK: Fix wx-config symlink (bug introduced in 2.9.4).
|
# HACK: Fix wx-config symlink (bug introduced in 2.9.4).
|
||||||
ln -sf $(echo %buildroot/%_libdir/wx/config/* | sed "s%%%buildroot%%%%") %buildroot/%_bindir/wx-config
|
ln -sf $(echo %buildroot/%_libdir/wx/config/* | sed "s%%%buildroot%%%%") %buildroot/%_bindir/wx-config
|
||||||
@ -338,11 +316,6 @@ ln -sf $(echo %buildroot/%_libdir/wx/config/* | sed "s%%%buildroot%%%%") %buildr
|
|||||||
%post -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
%post -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
||||||
%postun -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
%postun -n libwx_%{toolkit}u_xrc-%variant%sonum -p /sbin/ldconfig
|
||||||
|
|
||||||
%if %BUILD_LANG
|
|
||||||
|
|
||||||
%files lang -f wxstd.lang
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %base_packages
|
%if %base_packages
|
||||||
%files -n libwx_baseu-%variant%sonum
|
%files -n libwx_baseu-%variant%sonum
|
||||||
%defattr (-,root,root)
|
%defattr (-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user