[packman] [PM] wxWidgets 2.8.4 (openSUSE 10.2/i586)

Martin Trautmann martintrautmann at gmx.de
Sat Aug 4 09:28:41 CEST 2007


Hi Toni,

I downloaded your wxWidgets packages from packman.links2linux.org and
they work great. I just wanted also to have the static versions. I had
some trouble to create them which finally turned out to be a problem in
wx-config scripts. The parameters $ldlibs_adv were not merged into
$ldlibs_core even though adv is in 2.8 part of the core library (-lSDL
was missing). I am not so good in creating patch files and packages for
several platforms so I tell it to you just in case you like to add
versions including the static libraries on packman.links2linux.org. I
added the spec I used and the original version from you for comparison.

Martin
-------------- next part --------------
# Copyright (c) 2007 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni at links2linux.de

# Packmangroup: Libraries
# Packmanpackagename: wxWidgets
# Packman: Toni Graffy
# Packmandepends: gstreamer010 gstreamer010-base

# norootforbuild

%define _with_gst	0
%define _with_sdl	1

Name:			wxWidgets
Version:		2.8.4
Release:		0.pm.2
Group:			X11/Libraries
Summary:		C++ framework for cross-platform development
License:		wxWidgets
URL:			http://wxwidgets.org/
Source:			%{name}-%{version}.tar.bz2
Source1:		%{name}-%{version}-HTML.tar.bz2
Source2:		README.unicode
Patch:			%{name}-2.7.0-no-double-wxyield.diff
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
BuildRequires:	expat
BuildRequires:	gcc-c++
BuildRequires:	gtk2-devel
BuildRequires:	libjpeg-devel
#BuildRequires:	libmspack-devel
BuildRequires:	libtiff-devel
BuildRequires:	gnome-vfs2-devel
BuildRequires:	libgnomeprintui-devel
%if %suse_version >= 1010
BuildRequires:	mDNSResponder-lib
%endif

%if "%{_with_gst}" == "1"
BuildRequires:	gstreamer010-devel
BuildRequires:	gstreamer010-plugins-base-devel
Requires:		gstreamer010
Requires:		gstreamer010-plugins-base
%endif

%if "%{_with_sdl}" == "1"
BuildRequires:	SDL-devel
Requires:		SDL
%endif
#Provides:		wxGTK
#Obsoletes:		wxGTK

%description
wxWidgets is a free C++ library for cross-platform GUI development.

With wxWidgets, you can create applications for different GUIs
(GTK+, Motif, MS Windows, MacOS X, Windows CE, GPE) from the same
source code.

This package contains the thread- and unicode enabled libraries.

%package devel
Summary:	Include files and libraries for wxWidgets development
Group:		Development/X11/Libraries
Requires:	%{name} = %{version}
%if "%{_with_sdl}" == "1"
Requires:	SDL-devel
%endif
#Provides:	wxGTK-devel
#Obsoletes:	wxGTK-devel
# Packmandepends: wxWidgets

%description devel
Development package for wxWidgets.

%package compat
Summary:	wxWidgets Compatibility Package
Group:		System/Libraries
Requires:	%{name} = %{version}
# Packmandepends: wxWidgets

%description compat
wxWidgets is a free C++ library for cross-platform GUI development.

With wxWidgets, you can create applications for different GUIs
(GTK+, Motif, MS Windows, MacOS X, Windows CE, GPE) from the same
source code.

This package contains a library compiled without Unicode support,
which is needed for some improperly written applications.

%package docs
Summary:	wxWidgets html documentations
Group:		Documentation/HTML
Requires:	%{name} = %{version}
# Packmandepends: wxWidgets

%description docs
wxWidgets is a free C++ library for cross-platform GUI development.

With wxWidgets, you can create applications for different GUIs
(GTK+, Motif, MS Windows, MacOS X, Windows CE, GPE) from the same
source code.

This package contains the html documentation.

%package gl
Summary:	OpenGL add-on for wxWidgets
Group:		X11/Libraries
Requires:	%{name} = %{version}
# Packmandepends: wxWidgets

%description gl
OpenGL add-on library for wxGTK, the GTK+ port of the wxWidgets
library.

%package gl-compat
Summary:	OpenGL add-on for wxWidgets
Group:		X11/Libraries
Requires:	%{name} = %{version}
# Packmandepends: wxWidgets

%description gl-compat
OpenGL add-on library for wxGTK, the GTK+ port of the wxWidgets
library compiled without Unicode support.

%debug_package

%prep
%setup -q -a 1
%patch -p1

%__install -m 644 %{SOURCE2} .

%build
# non-unicode version:
%__install -dm 755 build-normal
pushd build-normal
../configure \
	--prefix=%{_prefix} \
	--datadir=%{_datadir} \
	--libdir='${prefix}/%{_lib}' \
	--enable-rpath='${prefix}/%{_lib}' \
	--disable-backtrace \
	--disable-catch_segvs \
	--disable-debug \
	--disable-dialupman \
	--disable-gpe \
	--disable-profile \
	--enable-arcstream \
%ifnarch x86_64
	--enable-dataviewctrl \
%endif
	--enable-graphics_ctx \
	--enable-icocur \
%if "%{_with_gst}" == "1"
	--enable-mediactrl \
%endif
	--enable-monolithic \
	--enable-optimise \
	--enable-shared \
	--enable-tabdialog \
	--enable-threads \
%if "%{_with_sdl}" == "1"
	--with-sdl \
%endif
	--with-gnomevfs \
	--with-opengl

%__make
%__make %{?_smp_mflags} -C contrib
popd

# unicode version:
%__install -dm 755 build-unicode
pushd build-unicode
../configure \
	--prefix=%{_prefix} \
	--datadir=%{_datadir} \
	--libdir='${prefix}/%{_lib}' \
	--enable-rpath='${prefix}/%{_lib}' \
	--disable-backtrace \
	--disable-catch_segvs \
	--disable-debug \
	--disable-dialupman \
	--disable-gpe \
	--disable-profile \
	--enable-arcstream \
%ifnarch x86_64
	--enable-dataviewctrl \
%endif
	--enable-graphics_ctx \
	--enable-icocur \
%if "%{_with_gst}" == "1"
	--enable-mediactrl \
%endif
	--enable-monolithic \
	--enable-optimise \
	--enable-shared \
	--enable-tabdialog \
	--enable-threads \
	--enable-unicode \
%if "%{_with_sdl}" == "1"
	--with-sdl \
%endif
	--with-gnomevfs \
	--with-opengl

%__make
%__make %{?_smp_mflags} -C contrib
popd

# non-unicode, static version:
%__install -dm 755 build-normal-static
pushd build-normal-static
../configure \
	--prefix=%{_prefix} \
	--datadir=%{_datadir} \
	--libdir='${prefix}/%{_lib}' \
	--enable-rpath='${prefix}/%{_lib}' \
	--disable-backtrace \
	--disable-catch_segvs \
	--disable-debug \
	--disable-dialupman \
	--disable-gpe \
	--disable-profile \
	--enable-arcstream \
%ifnarch x86_64
	--enable-dataviewctrl \
%endif
	--enable-graphics_ctx \
	--enable-icocur \
%if "%{_with_gst}" == "1"
	--enable-mediactrl \
%endif
	--enable-monolithic \
	--enable-optimise \
	--disable-shared \
	--enable-tabdialog \
	--enable-threads \
%if "%{_with_sdl}" == "1"
	--with-sdl \
%endif
	--with-gnomevfs \
	--with-opengl

%__make
%__make %{?_smp_mflags} -C contrib
popd

# unicode, static version:
%__install -dm 755 build-unicode-static
pushd build-unicode-static
../configure \
	--prefix=%{_prefix} \
	--datadir=%{_datadir} \
	--libdir='${prefix}/%{_lib}' \
	--enable-rpath='${prefix}/%{_lib}' \
	--disable-backtrace \
	--disable-catch_segvs \
	--disable-debug \
	--disable-dialupman \
	--disable-gpe \
	--disable-profile \
	--enable-arcstream \
%ifnarch x86_64
	--enable-dataviewctrl \
%endif
	--enable-graphics_ctx \
	--enable-icocur \
%if "%{_with_gst}" == "1"
	--enable-mediactrl \
%endif
	--enable-monolithic \
	--enable-optimise \
	--disable-shared \
	--enable-tabdialog \
	--enable-threads \
	--enable-unicode \
%if "%{_with_sdl}" == "1"
	--with-sdl \
%endif
	--with-gnomevfs \
	--with-opengl

%__make
%__make %{?_smp_mflags} -C contrib
popd

%__make -C locale allmo

%install
# non-unicode version:
pushd build-normal
%makeinstall
( cd contrib && %makeinstall )
popd

# unicode version:
pushd build-unicode
%makeinstall
( cd contrib && %makeinstall )
popd

# non-unicode, static version:
pushd build-normal-static
%makeinstall
( cd contrib && %makeinstall )
popd

# unicode, static version:
pushd build-unicode-static
%makeinstall
( cd contrib && %makeinstall )
popd

# generate library lists
#(cd %{buildroot}; ls ./%{_libdir}/libwx_*.so.*) | sed 's/^\.//' > FILELIST
#grep    'u[-_]' FILELIST > FILELIST.unicode
#grep -v 'u[-_]' FILELIST > FILELIST.compat

# rename/delete some files to avoid problems with wxGTK(-devel)
%__mv %{buildroot}%{_bindir}/wx-config \
	%{buildroot}%{_bindir}/wx-config-2.8
%__mv %{buildroot}%{_datadir}/aclocal/wxwin.m4 \
	%{buildroot}%{_datadir}/aclocal/wxwin-2.8.m4
%__rm %{buildroot}%{_bindir}/wxrc

%find_lang wxstd

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}

%files -f wxstd.lang
%defattr(-,root,root)
%doc docs/*.txt
%exclude %{_libdir}/libwx_gtk2u_gl-*
%{_libdir}/libwx_gtk2u[-_]*.so.*
%{_libdir}/libwx_gtk2u[-_]*.a
%{_datadir}/locale/*/LC_MESSAGES/wxmsw.mo

%files compat
%defattr(-, root, root)
%exclude %{_libdir}/libwx_gtk2_gl-*
%exclude %{_libdir}/libwx_gtk2u[-_]*
%{_libdir}/libwx_gtk2*.so.*
%{_libdir}/libwx_gtk2*.a

%files devel
%defattr(-,root,root)
%doc README.unicode
%doc docs/html/*
%{_bindir}/*
%dir %{_includedir}/wx-2.8
%{_includedir}/wx-2.8/*
%{_libdir}/libwx_gtk2*.so
%{_libdir}/libwx_gtk2*.a
%{_libdir}/libwxregexu-*.a
%dir %{_libdir}/wx
%{_libdir}/wx/*
%{_datadir}/aclocal/*
%{_datadir}/bakefile/presets/*.bkl

%files docs
%defattr(-, root, root)
%doc html/*

%files gl
%defattr(-,root,root)
%{_libdir}/libwx_gtk2u_gl-*.so.*
%{_libdir}/libwx_gtk2u_gl-*.a

%files gl-compat
%defattr(-,root,root)
%{_libdir}/libwx_gtk2_gl-*.so.*
%{_libdir}/libwx_gtk2_gl-*.a

%changelog -n wxWidgets
* Fri Aug 03 2007 Martin Trautmann
- build static versions too
* Sun Jun 24 2007 Toni Graffy <toni at links2linux.de> - 2.8.4-0.pm.2
- added wxWigets-gl and wxWidgets-gl-compat subpackage
* Fri May 18 2007 Toni Graffy <toni at links2linux.de> - 2.8.4-0.pm.1
- update to 2.8.4
- added non-unicode compat package
- added docs subpackage
* Fri Apr 13 2007 Toni Graffy <toni at links2linux.de> - 2.8.3-0.pm.2
- compile and install contrib
* Sun Mar 25 2007 Toni Graffy <toni at links2linux.de> - 2.8.3-0.pm.1
- update to 2.8.3
* Tue Mar 13 2007 Toni Graffy <toni at links2linux.de> - 2.8.2-0.pm.1
- update to 2.8.2
* Sun Jan 14 2007 Detlef Reichelt <detlef at links2linux.de> - 2.8.0-0.pm.1
- disable dataviewctrl for x86_64
* Thu Jan 04 2007 Toni Graffy <toni at links2linux.de> - 2.8.0-0.pm.1
- initial build 2.8.0
- wx-config and wxrc are renamed to wx-config-2.8 and wxcr-2.8 to avoid
  conflicts with SuSE-wxGTK-package
-------------- next part --------------
# Copyright (c) 2007 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni at links2linux.de

# Packmangroup: Libraries
# Packmanpackagename: wxWidgets
# Packman: Toni Graffy
# Packmandepends: gstreamer010 gstreamer010-base

# norootforbuild

%define _with_gst	0
%define _with_sdl	1

Name:			wxWidgets
Version:		2.8.4
Release:		0.pm.2
Group:			X11/Libraries
Summary:		C++ framework for cross-platform development
License:		wxWidgets
URL:			http://wxwidgets.org/
Source:			%{name}-%{version}.tar.bz2
Source1:		%{name}-%{version}-HTML.tar.bz2
Source2:		README.unicode
Patch:			%{name}-2.7.0-no-double-wxyield.diff
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
BuildRequires:	expat
BuildRequires:	gcc-c++
BuildRequires:	gtk2-devel
BuildRequires:	libjpeg-devel
#BuildRequires:	libmspack-devel
BuildRequires:	libtiff-devel
BuildRequires:	gnome-vfs2-devel
BuildRequires:	libgnomeprintui-devel
%if %suse_version >= 1010
BuildRequires:	mDNSResponder-lib
%endif

%if "%{_with_gst}" == "1"
BuildRequires:	gstreamer010-devel
BuildRequires:	gstreamer010-plugins-base-devel
Requires:		gstreamer010
Requires:		gstreamer010-plugins-base
%endif

%if "%{_with_sdl}" == "1"
BuildRequires:	SDL-devel
Requires:		SDL
%endif
#Provides:		wxGTK
#Obsoletes:		wxGTK

%description
wxWidgets is a free C++ library for cross-platform GUI development.

With wxWidgets, you can create applications for different GUIs
(GTK+, Motif, MS Windows, MacOS X, Windows CE, GPE) from the same
source code.

This package contains the thread- and unicode enabled libraries.

%package devel
Summary:	Include files and libraries for wxWidgets development
Group:		Development/X11/Libraries
Requires:	%{name} = %{version}
%if "%{_with_sdl}" == "1"
Requires:	SDL-devel
%endif
#Provides:	wxGTK-devel
#Obsoletes:	wxGTK-devel
# Packmandepends: wxWidgets

%description devel
Development package for wxWidgets.

%package compat
Summary:	wxWidgets Compatibility Package
Group:		System/Libraries
Requires:	%{name} = %{version}
# Packmandepends: wxWidgets

%description compat
wxWidgets is a free C++ library for cross-platform GUI development.

With wxWidgets, you can create applications for different GUIs
(GTK+, Motif, MS Windows, MacOS X, Windows CE, GPE) from the same
source code.

This package contains a library compiled without Unicode support,
which is needed for some improperly written applications.

%package docs
Summary:	wxWidgets html documentations
Group:		Documentation/HTML
Requires:	%{name} = %{version}
# Packmandepends: wxWidgets

%description docs
wxWidgets is a free C++ library for cross-platform GUI development.

With wxWidgets, you can create applications for different GUIs
(GTK+, Motif, MS Windows, MacOS X, Windows CE, GPE) from the same
source code.

This package contains the html documentation.

%package gl
Summary:	OpenGL add-on for wxWidgets
Group:		X11/Libraries
Requires:	%{name} = %{version}
# Packmandepends: wxWidgets

%description gl
OpenGL add-on library for wxGTK, the GTK+ port of the wxWidgets
library.

%package gl-compat
Summary:	OpenGL add-on for wxWidgets
Group:		X11/Libraries
Requires:	%{name} = %{version}
# Packmandepends: wxWidgets

%description gl-compat
OpenGL add-on library for wxGTK, the GTK+ port of the wxWidgets
library compiled without Unicode support.

%debug_package

%prep
%setup -q -a 1
%patch -p1

%__install -m 644 %{SOURCE2} .

%build
# non-unicode version:
%__install -dm 755 build-normal
pushd build-normal
../configure \
	--prefix=%{_prefix} \
	--datadir=%{_datadir} \
	--libdir='${prefix}/%{_lib}' \
	--enable-rpath='${prefix}/%{_lib}' \
	--disable-backtrace \
	--disable-catch_segvs \
	--disable-debug \
	--disable-dialupman \
	--disable-gpe \
	--disable-profile \
	--enable-arcstream \
%ifnarch x86_64
	--enable-dataviewctrl \
%endif
	--enable-graphics_ctx \
	--enable-icocur \
%if "%{_with_gst}" == "1"
	--enable-mediactrl \
%endif
	--enable-monolithic \
	--enable-optimise \
	--enable-shared \
	--enable-tabdialog \
	--enable-threads \
%if "%{_with_sdl}" == "1"
	--with-sdl \
%endif
	--with-gnomevfs \
	--with-opengl

%__make
%__make %{?_smp_mflags} -C contrib
popd

# unicode version:
%__install -dm 755 build-unicode
pushd build-unicode
../configure \
	--prefix=%{_prefix} \
	--datadir=%{_datadir} \
	--libdir='${prefix}/%{_lib}' \
	--enable-rpath='${prefix}/%{_lib}' \
	--disable-backtrace \
	--disable-catch_segvs \
	--disable-debug \
	--disable-dialupman \
	--disable-gpe \
	--disable-profile \
	--enable-arcstream \
%ifnarch x86_64
	--enable-dataviewctrl \
%endif
	--enable-graphics_ctx \
	--enable-icocur \
%if "%{_with_gst}" == "1"
	--enable-mediactrl \
%endif
	--enable-monolithic \
	--enable-optimise \
	--enable-shared \
	--enable-tabdialog \
	--enable-threads \
	--enable-unicode \
%if "%{_with_sdl}" == "1"
	--with-sdl \
%endif
	--with-gnomevfs \
	--with-opengl

%__make
%__make %{?_smp_mflags} -C contrib
popd

%__make -C locale allmo

%install
# non-unicode version:
pushd build-normal
%makeinstall
( cd contrib && %makeinstall )
popd

# unicode version:
pushd build-unicode
%makeinstall
( cd contrib && %makeinstall )
popd

# generate library lists
#(cd %{buildroot}; ls ./%{_libdir}/libwx_*.so.*) | sed 's/^\.//' > FILELIST
#grep    'u[-_]' FILELIST > FILELIST.unicode
#grep -v 'u[-_]' FILELIST > FILELIST.compat

# rename/delete some files to avoid problems with wxGTK(-devel)
%__mv %{buildroot}%{_bindir}/wx-config \
	%{buildroot}%{_bindir}/wx-config-2.8
%__mv %{buildroot}%{_datadir}/aclocal/wxwin.m4 \
	%{buildroot}%{_datadir}/aclocal/wxwin-2.8.m4
%__rm %{buildroot}%{_bindir}/wxrc

%find_lang wxstd

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}

%files -f wxstd.lang
%defattr(-,root,root)
%doc docs/*.txt
%exclude %{_libdir}/libwx_gtk2u_gl-*
%{_libdir}/libwx_gtk2u[-_]*.so.*
%{_datadir}/locale/*/LC_MESSAGES/wxmsw.mo

%files compat
%defattr(-, root, root)
%exclude %{_libdir}/libwx_gtk2_gl-*
%exclude %{_libdir}/libwx_gtk2u[-_]*
%{_libdir}/libwx_gtk2*.so.*

%files devel
%defattr(-,root,root)
%doc README.unicode
%doc docs/html/*
%{_bindir}/*
%dir %{_includedir}/wx-2.8
%{_includedir}/wx-2.8/*
%{_libdir}/libwx_gtk2*.so
%dir %{_libdir}/wx
%{_libdir}/wx/*
%{_datadir}/aclocal/*
%{_datadir}/bakefile/presets/*.bkl

%files docs
%defattr(-, root, root)
%doc html/*

%files gl
%defattr(-,root,root)
%{_libdir}/libwx_gtk2u_gl-*.so.*

%files gl-compat
%defattr(-,root,root)
%{_libdir}/libwx_gtk2_gl-*.so.*

%changelog -n wxWidgets
* Sun Jun 24 2007 Toni Graffy <toni at links2linux.de> - 2.8.4-0.pm.2
- added wxWigets-gl and wxWidgets-gl-compat subpackage
* Fri May 18 2007 Toni Graffy <toni at links2linux.de> - 2.8.4-0.pm.1
- update to 2.8.4
- added non-unicode compat package
- added docs subpackage
* Fri Apr 13 2007 Toni Graffy <toni at links2linux.de> - 2.8.3-0.pm.2
- compile and install contrib
* Sun Mar 25 2007 Toni Graffy <toni at links2linux.de> - 2.8.3-0.pm.1
- update to 2.8.3
* Tue Mar 13 2007 Toni Graffy <toni at links2linux.de> - 2.8.2-0.pm.1
- update to 2.8.2
* Sun Jan 14 2007 Detlef Reichelt <detlef at links2linux.de> - 2.8.0-0.pm.1
- disable dataviewctrl for x86_64
* Thu Jan 04 2007 Toni Graffy <toni at links2linux.de> - 2.8.0-0.pm.1
- initial build 2.8.0
- wx-config and wxrc are renamed to wx-config-2.8 and wxcr-2.8 to avoid
  conflicts with SuSE-wxGTK-package


More information about the Packman mailing list