2006-08-05 13:05:52 +00:00
|
|
|
%define _prefix /usr
|
2012-07-10 23:51:44 +00:00
|
|
|
%define ver 2.9.5
|
2007-02-06 19:58:27 +00:00
|
|
|
%define ver2 2.9
|
2005-04-11 19:37:51 +00:00
|
|
|
%define rel 1
|
2012-09-19 07:53:13 +00:00
|
|
|
# version for package name according to OpenSuse policy:
|
|
|
|
# http://en.opensuse.org/openSUSE:Shared_library_packaging_policy
|
|
|
|
%define sver 2_9-5
|
1999-04-26 20:48:39 +00:00
|
|
|
|
2003-08-20 15:14:12 +00:00
|
|
|
# Configurable settings (use --with(out) {unicode,gtk2} on rpmbuild cmd line):
|
2005-04-17 12:33:54 +00:00
|
|
|
%define unicode 1
|
2003-08-20 15:14:12 +00:00
|
|
|
%{?_with_unicode: %{expand: %%define unicode 1}}
|
|
|
|
%{?_without_unicode: %{expand: %%define unicode 0}}
|
|
|
|
|
2005-02-19 18:17:58 +00:00
|
|
|
%define gtk2 1
|
2003-08-20 15:14:12 +00:00
|
|
|
%{?_with_gtk2: %{expand: %%define gtk2 1}}
|
|
|
|
%{?_without_gtk2: %{expand: %%define gtk2 0}}
|
|
|
|
|
2005-04-17 12:33:54 +00:00
|
|
|
# "buildname" needs to be e.g. gtk2ud for debug builds
|
2005-04-02 22:26:04 +00:00
|
|
|
%if %{gtk2}
|
|
|
|
%define gtkver 2
|
2005-04-17 12:33:54 +00:00
|
|
|
%define portname gtk2
|
|
|
|
%if %{unicode}
|
|
|
|
%define buildname gtk2u
|
|
|
|
%else
|
|
|
|
%define buildname gtk2
|
|
|
|
%endif
|
2005-03-21 22:46:37 +00:00
|
|
|
%else
|
2005-04-02 22:26:04 +00:00
|
|
|
%define gtkver 1.2
|
2005-04-17 12:33:54 +00:00
|
|
|
%define portname gtk
|
|
|
|
%define buildname gtk
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{unicode}
|
|
|
|
%define name wx-%{portname}-unicode
|
2010-10-23 14:09:27 +00:00
|
|
|
%define wxconfig %{portname}-unicode-%{ver2}
|
|
|
|
%define wxconfigstatic %{portname}-unicode-static-%{ver2}
|
2005-04-17 12:33:54 +00:00
|
|
|
%define wxconfiglink wx%{portname}u-%{ver2}-config
|
|
|
|
%else
|
|
|
|
%define name wx-%{portname}-ansi
|
2010-10-23 14:09:27 +00:00
|
|
|
%define wxconfig %{portname}-ansi-%{ver2}
|
|
|
|
%define wxconfigstatic %{portname}-ansi-static-%{ver2}
|
2005-04-17 12:33:54 +00:00
|
|
|
%define wxconfiglink wx%{portname}-%{ver2}-config
|
2003-08-20 15:14:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{unicode}
|
2005-04-17 12:33:54 +00:00
|
|
|
%define wxbasename wx-base-unicode
|
2010-10-23 14:09:27 +00:00
|
|
|
%define wxbaseconfig base-unicode-%{ver2}
|
2005-04-17 12:33:54 +00:00
|
|
|
%define wxbaseconfiglink wxbaseu-%{ver2}-config
|
2003-08-20 15:14:12 +00:00
|
|
|
%else
|
2005-04-17 12:33:54 +00:00
|
|
|
%define wxbasename wx-base-ansi
|
2010-10-23 14:09:27 +00:00
|
|
|
%define wxbaseconfig base-ansi-%{ver2}
|
2005-04-17 12:33:54 +00:00
|
|
|
%define wxbaseconfiglink wxbase-%{ver2}-config
|
2003-08-20 15:14:12 +00:00
|
|
|
%endif
|
|
|
|
|
2012-09-19 07:53:13 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
# avoiding shlib-policy-name-error: Your package contains a single shared
|
|
|
|
# library but is not named after its SONAME.
|
|
|
|
%define glname libwx_%{buildname}_gl-%{sver}
|
|
|
|
%else
|
|
|
|
%define glname %{name}-gl
|
|
|
|
%endif
|
|
|
|
|
2005-04-02 22:26:04 +00:00
|
|
|
Summary: The GTK+ %{gtkver} port of the wxWidgets library
|
|
|
|
Name: %{name}
|
1999-04-26 20:48:39 +00:00
|
|
|
Version: %{ver}
|
|
|
|
Release: %{rel}
|
2003-08-20 15:14:12 +00:00
|
|
|
License: wxWindows Licence
|
2012-09-19 07:53:13 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
Source: wxWidgets-%{ver}.tar.bz2
|
2005-04-02 22:26:04 +00:00
|
|
|
URL: http://www.wxwidgets.org
|
2005-04-17 12:33:54 +00:00
|
|
|
Prefix: %{_prefix}
|
2005-04-02 22:26:04 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
|
|
Requires: %{wxbasename} = %{ver}
|
2006-08-05 14:57:18 +00:00
|
|
|
%if %{portname} == gtk2
|
2010-10-15 23:46:04 +00:00
|
|
|
BuildRequires: gtk2-devel
|
2006-08-05 14:57:18 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: gtk+-devel >= 1.2.0
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: zlib-devel, libjpeg-devel, libpng-devel, libtiff-devel
|
2012-09-19 07:53:13 +00:00
|
|
|
# on RedHat 5 default GCC 4.1.2 crashes during compilation
|
|
|
|
%if 0%{?rhel} == 5
|
|
|
|
BuildRequires: gcc44-c++
|
|
|
|
%else
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: libexpat-devel, Mesa-devel, xorg-x11-libSM-devel
|
|
|
|
BuildRequires: gstreamer-0_10-devel, gstreamer-0_10-plugins-base-devel
|
|
|
|
%else
|
|
|
|
%if 0%{?mandriva_version}
|
|
|
|
BuildRequires: libexpat-devel, libmesaglu-devel, libsm-devel
|
|
|
|
# For now disabling mediactrl
|
|
|
|
# FIXME: How to resolve OBS Mandriva dependecies for these?
|
|
|
|
#BuildRequires: libgstreamer-devel, libgstreamer-plugins-base-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: expat-devel, libGLU-devel, libSM-devel
|
|
|
|
BuildRequires: gstreamer-devel, gstreamer-plugins-base-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
1999-01-05 18:46:22 +00:00
|
|
|
|
2005-04-02 22:26:04 +00:00
|
|
|
# all packages providing an implementation of wxWidgets library (regardless of
|
1999-02-27 23:16:54 +00:00
|
|
|
# the toolkit used) should provide the (virtual) wxwin package, this makes it
|
2001-08-25 14:52:26 +00:00
|
|
|
# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
|
2012-09-19 07:53:13 +00:00
|
|
|
Provides: wxwin = %{version}
|
|
|
|
Provides: wxGTK = %{version}
|
1999-02-27 23:16:54 +00:00
|
|
|
|
1999-01-05 18:46:22 +00:00
|
|
|
%description
|
2005-04-02 22:26:04 +00:00
|
|
|
wxWidgets is a free C++ library for cross-platform GUI development.
|
|
|
|
With wxWidgets, you can create applications for different GUIs (GTK+,
|
2005-04-17 12:33:54 +00:00
|
|
|
Motif, MS Windows, MacOS X, Windows CE, GPE) from the same source code.
|
|
|
|
|
2005-04-18 17:47:56 +00:00
|
|
|
%package -n wx-i18n
|
2012-09-19 07:53:13 +00:00
|
|
|
Summary: The translations for the wxWidgets library
|
|
|
|
Group: System/Libraries
|
2005-04-17 12:33:54 +00:00
|
|
|
|
2005-04-18 17:47:56 +00:00
|
|
|
%description -n wx-i18n
|
2005-04-17 12:33:54 +00:00
|
|
|
The translations files for the wxWidgets library.
|
1999-01-05 18:46:22 +00:00
|
|
|
|
1999-08-25 16:39:29 +00:00
|
|
|
%package devel
|
2005-04-02 22:26:04 +00:00
|
|
|
Summary: The GTK+ %{gtkver} port of the wxWidgets library
|
2012-09-19 07:53:13 +00:00
|
|
|
Group: Development/Libraries
|
2003-08-20 15:14:12 +00:00
|
|
|
Requires: %{name} = %{ver}
|
2012-09-19 07:53:13 +00:00
|
|
|
Requires: %{glname} = %{ver}
|
2003-08-20 15:14:12 +00:00
|
|
|
Requires: %{wxbasename}-devel = %{ver}
|
2012-09-19 07:53:13 +00:00
|
|
|
Provides: wxGTK-devel = %{version}
|
1999-08-25 16:39:29 +00:00
|
|
|
|
|
|
|
%description devel
|
2005-04-17 12:33:54 +00:00
|
|
|
The GTK+ %{gtkver} port of the wxWidgets library, header files.
|
2000-03-05 17:49:58 +00:00
|
|
|
|
2012-09-19 07:53:13 +00:00
|
|
|
%package -n %{glname}
|
|
|
|
Summary: The GTK+ %{gtkver} port of the wxWidgets library, OpenGL add-on
|
|
|
|
Group: System/Libraries
|
2003-08-20 15:14:12 +00:00
|
|
|
Requires: %{name} = %{ver}
|
2012-09-19 07:53:13 +00:00
|
|
|
Provides: wxGTK-gl = %{version}
|
2000-03-05 17:49:58 +00:00
|
|
|
|
2012-09-19 07:53:13 +00:00
|
|
|
%description -n %{glname}
|
2005-04-02 22:26:04 +00:00
|
|
|
OpenGL add-on library for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library.
|
2001-11-22 00:33:18 +00:00
|
|
|
|
2005-04-17 12:33:54 +00:00
|
|
|
%package -n %{wxbasename}
|
|
|
|
Summary: wxBase library - non-GUI support classes of the wxWidgets toolkit
|
2001-11-22 00:33:18 +00:00
|
|
|
Group: Development/Libraries
|
2012-09-19 07:53:13 +00:00
|
|
|
Provides: wxBase = %{version}
|
2005-04-17 12:33:54 +00:00
|
|
|
|
|
|
|
%description -n %{wxbasename}
|
|
|
|
wxBase is a collection of C++ classes providing basic data structures (strings,
|
|
|
|
lists, arrays), portable wrappers around many OS-specific funstions (file
|
|
|
|
operations, time/date manipulations, threads, processes, sockets, shared
|
|
|
|
library loading) as well as other utility classes (streams, archive and
|
2010-10-15 23:46:13 +00:00
|
|
|
compression). wxBase currently supports Win32, most Unix variants (Linux,
|
2005-04-17 12:33:54 +00:00
|
|
|
FreeBSD, Solaris, HP-UX) and MacOS X (Carbon and Mach-0).
|
|
|
|
|
|
|
|
%package -n %{wxbasename}-devel
|
2012-09-19 07:53:13 +00:00
|
|
|
Summary: wxBase library, header files
|
2005-04-17 12:33:54 +00:00
|
|
|
Group: Development/Libraries
|
2012-09-19 07:53:13 +00:00
|
|
|
Provides: wxBase-devel = %{version}
|
2001-11-22 00:33:18 +00:00
|
|
|
|
2005-04-17 12:33:54 +00:00
|
|
|
%description -n %{wxbasename}-devel
|
|
|
|
wxBase library - non-GUI support classes of the wxWidgets toolkit,
|
|
|
|
header files.
|
1999-08-25 16:39:29 +00:00
|
|
|
|
1999-01-05 18:46:22 +00:00
|
|
|
%prep
|
2012-09-19 07:53:13 +00:00
|
|
|
%setup -q -n wxWidgets-%{ver}
|
1999-01-05 18:46:22 +00:00
|
|
|
|
|
|
|
%build
|
2012-09-19 07:53:13 +00:00
|
|
|
|
|
|
|
%if 0%{?rhel} == 5
|
|
|
|
export CC=gcc44
|
|
|
|
export CXX=g++44
|
|
|
|
%endif
|
|
|
|
# if it's not set OpenSuse warns: "compiled without RPM_OPT_FLAGS"
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
2001-11-22 00:33:18 +00:00
|
|
|
|
2005-04-17 12:33:54 +00:00
|
|
|
mkdir obj-shared
|
|
|
|
cd obj-shared
|
2012-09-19 07:53:13 +00:00
|
|
|
../configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-rpath \
|
2005-02-19 18:17:58 +00:00
|
|
|
%if ! %{gtk2}
|
2005-04-17 12:33:54 +00:00
|
|
|
--with-gtk=1 \
|
|
|
|
%else
|
|
|
|
--with-gtk=2 \
|
2005-04-02 22:26:04 +00:00
|
|
|
%endif
|
2005-04-17 12:33:54 +00:00
|
|
|
%if %{unicode}
|
|
|
|
--enable-unicode \
|
|
|
|
%else
|
|
|
|
--disable-unicode \
|
2003-08-20 15:14:12 +00:00
|
|
|
%endif
|
2012-09-19 07:53:13 +00:00
|
|
|
%if ! 0%{?mandriva_version}
|
|
|
|
--enable-mediactrl \
|
|
|
|
%endif
|
|
|
|
--with-opengl
|
|
|
|
make %{?_smp_mflags}
|
2005-04-02 22:26:04 +00:00
|
|
|
|
2010-10-15 23:46:13 +00:00
|
|
|
cd ..
|
2001-11-22 00:33:18 +00:00
|
|
|
|
2005-04-17 12:33:54 +00:00
|
|
|
mkdir obj-static
|
|
|
|
cd obj-static
|
2012-09-19 07:53:13 +00:00
|
|
|
../configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-rpath \
|
2005-02-19 18:17:58 +00:00
|
|
|
%if ! %{gtk2}
|
2005-04-17 12:33:54 +00:00
|
|
|
--with-gtk=1 \
|
|
|
|
%else
|
|
|
|
--with-gtk=2 \
|
2005-04-02 22:26:04 +00:00
|
|
|
%endif
|
2005-04-17 12:33:54 +00:00
|
|
|
--disable-shared \
|
|
|
|
%if %{unicode}
|
2006-08-05 13:09:35 +00:00
|
|
|
--enable-unicode \
|
2005-04-17 12:33:54 +00:00
|
|
|
%else
|
2006-08-05 13:09:35 +00:00
|
|
|
--disable-unicode \
|
2003-08-20 15:14:12 +00:00
|
|
|
%endif
|
2012-09-19 07:53:13 +00:00
|
|
|
%if ! 0%{?mandriva_version}
|
|
|
|
--enable-mediactrl \
|
|
|
|
%endif
|
|
|
|
--with-opengl
|
|
|
|
make %{?_smp_mflags}
|
2005-04-17 12:33:54 +00:00
|
|
|
|
2010-10-15 23:46:13 +00:00
|
|
|
cd ..
|
1999-01-05 18:46:22 +00:00
|
|
|
|
2006-08-05 13:34:59 +00:00
|
|
|
make -C locale allmo
|
|
|
|
|
1999-01-05 18:46:22 +00:00
|
|
|
%install
|
2001-01-29 17:39:24 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2006-08-05 13:31:59 +00:00
|
|
|
(cd obj-static; make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} install)
|
|
|
|
(cd obj-shared; make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} install)
|
2003-08-30 12:30:09 +00:00
|
|
|
|
|
|
|
# --- wxBase headers list begins here ---
|
2005-07-29 16:44:00 +00:00
|
|
|
cat <<EOF >wxbase-headers.files
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/afterstd.h
|
2009-09-19 08:51:11 +00:00
|
|
|
wx/any.h
|
2009-03-24 23:21:29 +00:00
|
|
|
wx/anystr.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/app.h
|
|
|
|
wx/apptrait.h
|
2004-11-23 08:46:26 +00:00
|
|
|
wx/archive.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/arrimpl.cpp
|
|
|
|
wx/arrstr.h
|
2007-07-10 02:00:51 +00:00
|
|
|
wx/atomic.h
|
|
|
|
wx/base64.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/beforestd.h
|
|
|
|
wx/buffer.h
|
|
|
|
wx/build.h
|
2007-03-29 17:40:32 +00:00
|
|
|
wx/chartype.h
|
2009-02-03 12:01:46 +00:00
|
|
|
wx/checkeddelete.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/chkconf.h
|
2004-07-18 03:10:04 +00:00
|
|
|
wx/clntdata.h
|
2007-11-12 22:32:23 +00:00
|
|
|
wx/cmdargs.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/cmdline.h
|
|
|
|
wx/confbase.h
|
|
|
|
wx/config.h
|
2006-04-05 15:06:15 +00:00
|
|
|
wx/convauto.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/containr.h
|
2006-10-01 20:46:32 +00:00
|
|
|
wx/cpp.h
|
2007-05-30 14:03:45 +00:00
|
|
|
wx/crt.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/datetime.h
|
|
|
|
wx/datstrm.h
|
|
|
|
wx/dde.h
|
|
|
|
wx/debug.h
|
|
|
|
wx/defs.h
|
|
|
|
wx/dir.h
|
2003-11-06 01:31:44 +00:00
|
|
|
wx/dlimpexp.h
|
2008-09-22 00:53:46 +00:00
|
|
|
wx/dlist.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/dynarray.h
|
|
|
|
wx/dynlib.h
|
|
|
|
wx/dynload.h
|
|
|
|
wx/encconv.h
|
|
|
|
wx/event.h
|
2011-11-22 13:18:50 +00:00
|
|
|
wx/eventfilter.h
|
2010-01-24 01:00:20 +00:00
|
|
|
wx/evtloop.h
|
2003-09-18 22:46:21 +00:00
|
|
|
wx/except.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/features.h
|
2007-04-13 12:06:21 +00:00
|
|
|
wx/flags.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/ffile.h
|
|
|
|
wx/file.h
|
|
|
|
wx/fileconf.h
|
|
|
|
wx/filefn.h
|
|
|
|
wx/filename.h
|
|
|
|
wx/filesys.h
|
|
|
|
wx/fontenc.h
|
|
|
|
wx/fontmap.h
|
2006-10-27 22:10:19 +00:00
|
|
|
wx/fs_arc.h
|
2006-10-26 22:49:53 +00:00
|
|
|
wx/fs_filter.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/fs_mem.h
|
|
|
|
wx/fs_zip.h
|
|
|
|
wx/hash.h
|
|
|
|
wx/hashmap.h
|
|
|
|
wx/hashset.h
|
2005-03-11 03:03:35 +00:00
|
|
|
wx/html/forcelnk.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/iconloc.h
|
|
|
|
wx/init.h
|
|
|
|
wx/intl.h
|
|
|
|
wx/iosfwrap.h
|
|
|
|
wx/ioswrap.h
|
|
|
|
wx/ipc.h
|
|
|
|
wx/ipcbase.h
|
2008-10-08 15:44:49 +00:00
|
|
|
wx/kbdstate.h
|
2010-04-24 07:06:32 +00:00
|
|
|
wx/language.h
|
2005-10-03 21:05:25 +00:00
|
|
|
wx/link.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/list.h
|
|
|
|
wx/listimpl.cpp
|
|
|
|
wx/log.h
|
|
|
|
wx/longlong.h
|
|
|
|
wx/math.h
|
|
|
|
wx/memconf.h
|
|
|
|
wx/memory.h
|
|
|
|
wx/memtext.h
|
|
|
|
wx/mimetype.h
|
|
|
|
wx/module.h
|
2008-10-08 15:44:49 +00:00
|
|
|
wx/mousestate.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/msgout.h
|
2010-06-11 20:42:38 +00:00
|
|
|
wx/msgqueue.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/mstream.h
|
2011-01-19 10:47:40 +00:00
|
|
|
wx/numformatter.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/object.h
|
|
|
|
wx/platform.h
|
2006-08-13 21:10:59 +00:00
|
|
|
wx/platinfo.h
|
2006-05-27 14:09:40 +00:00
|
|
|
wx/power.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/process.h
|
|
|
|
wx/ptr_scpd.h
|
2008-01-13 02:48:17 +00:00
|
|
|
wx/ptr_shrd.h
|
2005-08-08 12:59:33 +00:00
|
|
|
wx/recguard.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/regex.h
|
2011-01-04 10:46:18 +00:00
|
|
|
wx/rtti.h
|
2009-02-03 12:01:46 +00:00
|
|
|
wx/scopedarray.h
|
|
|
|
wx/scopedptr.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/scopeguard.h
|
2009-02-03 12:01:46 +00:00
|
|
|
wx/sharedptr.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/snglinst.h
|
2004-09-27 06:53:08 +00:00
|
|
|
wx/sstream.h
|
2003-09-27 15:48:14 +00:00
|
|
|
wx/stack.h
|
2005-01-17 01:43:08 +00:00
|
|
|
wx/stackwalk.h
|
2004-10-27 22:47:26 +00:00
|
|
|
wx/stdpaths.h
|
2009-05-02 18:29:33 +00:00
|
|
|
wx/stdstream.h
|
2004-09-19 12:05:11 +00:00
|
|
|
wx/stockitem.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/stopwatch.h
|
|
|
|
wx/strconv.h
|
|
|
|
wx/stream.h
|
|
|
|
wx/string.h
|
2007-03-29 17:40:32 +00:00
|
|
|
wx/stringimpl.h
|
2007-04-19 10:05:55 +00:00
|
|
|
wx/stringops.h
|
2007-03-17 10:26:10 +00:00
|
|
|
wx/strvararg.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/sysopt.h
|
2006-10-27 09:57:42 +00:00
|
|
|
wx/tarstrm.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/textbuf.h
|
|
|
|
wx/textfile.h
|
|
|
|
wx/thread.h
|
|
|
|
wx/thrimpl.cpp
|
2011-11-27 19:50:19 +00:00
|
|
|
wx/time.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/timer.h
|
2008-11-03 12:47:56 +00:00
|
|
|
wx/tls.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/tokenzr.h
|
2008-01-13 02:48:17 +00:00
|
|
|
wx/tracker.h
|
2010-04-24 07:06:32 +00:00
|
|
|
wx/translation.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/txtstrm.h
|
2009-11-19 19:27:24 +00:00
|
|
|
wx/typeinfo.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/types.h
|
2007-03-29 17:40:32 +00:00
|
|
|
wx/unichar.h
|
2004-10-27 22:47:26 +00:00
|
|
|
wx/uri.h
|
2008-08-02 14:15:22 +00:00
|
|
|
wx/ustring.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/utils.h
|
|
|
|
wx/variant.h
|
|
|
|
wx/vector.h
|
|
|
|
wx/version.h
|
2010-11-25 00:53:44 +00:00
|
|
|
wx/versioninfo.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/volume.h
|
2008-01-13 02:48:17 +00:00
|
|
|
wx/weakref.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/wfstream.h
|
|
|
|
wx/wx.h
|
|
|
|
wx/wxchar.h
|
2007-03-29 17:40:32 +00:00
|
|
|
wx/wxcrt.h
|
2007-06-10 17:14:14 +00:00
|
|
|
wx/wxcrtbase.h
|
2007-04-19 08:04:34 +00:00
|
|
|
wx/wxcrtvararg.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/wxprec.h
|
2008-02-10 17:03:23 +00:00
|
|
|
wx/xlocale.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/xti.h
|
2011-01-10 11:42:10 +00:00
|
|
|
wx/xti2.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/xtistrm.h
|
2011-01-04 10:46:18 +00:00
|
|
|
wx/xtictor.h
|
|
|
|
wx/xtihandler.h
|
|
|
|
wx/xtiprop.h
|
|
|
|
wx/xtitypes.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/zipstrm.h
|
|
|
|
wx/zstream.h
|
2008-01-13 02:48:17 +00:00
|
|
|
wx/meta/convertible.h
|
2008-01-23 12:13:07 +00:00
|
|
|
wx/meta/if.h
|
2010-10-26 15:10:48 +00:00
|
|
|
wx/meta/implicitconversion.h
|
2008-01-13 02:48:17 +00:00
|
|
|
wx/meta/int2type.h
|
2008-01-23 12:13:07 +00:00
|
|
|
wx/meta/movable.h
|
2010-06-14 15:12:37 +00:00
|
|
|
wx/meta/pod.h
|
2012-10-23 12:02:00 +00:00
|
|
|
wx/meta/removeref.h
|
2009-10-22 11:35:43 +00:00
|
|
|
wx/fswatcher.h
|
|
|
|
wx/generic/fswatcher.h
|
2007-05-14 23:43:39 +00:00
|
|
|
wx/unix/app.h
|
2005-07-29 18:41:58 +00:00
|
|
|
wx/unix/apptbase.h
|
|
|
|
wx/unix/apptrait.h
|
2007-07-14 19:06:18 +00:00
|
|
|
wx/unix/chkconf.h
|
2007-05-14 23:43:39 +00:00
|
|
|
wx/unix/evtloop.h
|
2009-10-22 16:53:10 +00:00
|
|
|
wx/unix/evtloopsrc.h
|
2005-07-29 18:41:58 +00:00
|
|
|
wx/unix/pipe.h
|
2008-01-06 14:38:44 +00:00
|
|
|
wx/unix/stdpaths.h
|
2008-02-10 17:03:23 +00:00
|
|
|
wx/unix/stackwalk.h
|
2008-09-04 07:57:32 +00:00
|
|
|
wx/unix/tls.h
|
2009-10-22 11:35:43 +00:00
|
|
|
wx/unix/fswatcher_kqueue.h
|
2008-01-06 14:38:44 +00:00
|
|
|
wx/unix/execute.h
|
|
|
|
wx/unix/mimetype.h
|
2009-10-22 11:35:43 +00:00
|
|
|
wx/unix/fswatcher_inotify.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/fs_inet.h
|
|
|
|
wx/protocol/file.h
|
|
|
|
wx/protocol/ftp.h
|
|
|
|
wx/protocol/http.h
|
2009-03-07 13:58:39 +00:00
|
|
|
wx/protocol/log.h
|
2003-08-30 12:30:09 +00:00
|
|
|
wx/protocol/protocol.h
|
|
|
|
wx/sckaddr.h
|
|
|
|
wx/sckipc.h
|
|
|
|
wx/sckstrm.h
|
|
|
|
wx/socket.h
|
|
|
|
wx/url.h
|
|
|
|
wx/xml/xml.h
|
|
|
|
wx/xtixml.h
|
|
|
|
EOF
|
|
|
|
# --- wxBase headers list ends here ---
|
2010-10-23 14:09:39 +00:00
|
|
|
|
|
|
|
# --- wxBase headers list with paths ---
|
|
|
|
sed -e 's@^@%{_includedir}/wx-%{ver2}/@' wxbase-headers.files > wxbase-headers.paths
|
|
|
|
|
2005-04-17 12:33:54 +00:00
|
|
|
|
|
|
|
# temporarily remove base headers
|
|
|
|
mkdir $RPM_BUILD_ROOT/_save_dir
|
|
|
|
cp -r $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2} $RPM_BUILD_ROOT/_save_dir
|
|
|
|
for f in `cat wxbase-headers.files` ; do
|
2005-04-02 22:26:04 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2}/$f
|
2003-08-20 15:14:12 +00:00
|
|
|
done
|
|
|
|
# list of all core headers:
|
2005-04-02 22:26:04 +00:00
|
|
|
find $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2} -type f | sed -e "s,$RPM_BUILD_ROOT,,g" >core-headers.files
|
2005-04-17 12:33:54 +00:00
|
|
|
# move base headers (actually all headers) back again
|
|
|
|
cp -f -r $RPM_BUILD_ROOT/_save_dir/* $RPM_BUILD_ROOT%{_includedir}
|
|
|
|
rm -rf $RPM_BUILD_ROOT/_save_dir
|
2003-08-20 15:14:12 +00:00
|
|
|
|
2006-08-05 14:34:03 +00:00
|
|
|
# utils:
|
|
|
|
(cd obj-shared/utils/wxrc; make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} install)
|
2003-10-06 19:12:12 +00:00
|
|
|
|
2006-08-05 14:48:42 +00:00
|
|
|
# wx-config link is created during package installation, remove it for now
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/wx-config
|
|
|
|
|
2001-12-15 16:45:18 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
1999-01-05 18:46:22 +00:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2005-02-19 18:17:58 +00:00
|
|
|
%post devel
|
|
|
|
# link wx-config when you install RPM.
|
2005-04-17 12:33:54 +00:00
|
|
|
%if %{unicode}
|
|
|
|
ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx-config
|
|
|
|
%endif
|
2005-02-19 18:17:58 +00:00
|
|
|
# link wx-config with explicit name.
|
2005-04-02 22:26:04 +00:00
|
|
|
ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink}
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
/sbin/ldconfig
|
2005-03-21 22:46:37 +00:00
|
|
|
|
2005-02-19 18:17:58 +00:00
|
|
|
%preun devel
|
2005-04-17 12:33:54 +00:00
|
|
|
%if %{unicode}
|
|
|
|
rm -f %{_bindir}/wx-config
|
|
|
|
%endif
|
2005-04-02 22:26:04 +00:00
|
|
|
rm -f %{_bindir}/%{wxconfiglink}
|
2005-03-21 22:46:37 +00:00
|
|
|
|
2005-04-17 12:33:54 +00:00
|
|
|
%post -n %{wxbasename}
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{wxbasename}
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n %{wxbasename}-devel
|
|
|
|
# link wx-config with explicit name.
|
|
|
|
ln -sf %{_libdir}/wx/config/%{wxbaseconfig} %{_bindir}/%{wxbaseconfiglink}
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{wxbasename}-devel
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%preun -n %{wxbasename}-devel
|
|
|
|
rm -f %{_bindir}/%{wxbaseconfiglink}
|
|
|
|
|
2012-09-19 07:53:13 +00:00
|
|
|
%post -n %{glname}
|
2005-04-02 22:26:04 +00:00
|
|
|
/sbin/ldconfig
|
|
|
|
|
2012-09-19 07:53:13 +00:00
|
|
|
%postun -n %{glname}
|
2005-04-02 22:26:04 +00:00
|
|
|
/sbin/ldconfig
|
|
|
|
|
2003-08-20 15:14:12 +00:00
|
|
|
%files
|
2001-11-20 23:50:53 +00:00
|
|
|
%defattr(-,root,root)
|
2012-09-19 07:53:13 +00:00
|
|
|
#doc COPYING.LIB *.txt
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_adv-%{ver2}.so.*
|
2006-08-05 14:44:33 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_aui-%{ver2}.so.*
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_core-%{ver2}.so.*
|
|
|
|
%{_libdir}/libwx_%{buildname}_html-%{ver2}.so.*
|
2012-09-19 07:53:13 +00:00
|
|
|
%if ! 0%{?mandriva_version}
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_media-%{ver2}.so.*
|
2012-09-19 07:53:13 +00:00
|
|
|
%endif
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so.*
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_qa-%{ver2}.so.*
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so.*
|
2006-08-05 14:44:33 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so.*
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_stc-%{ver2}.so.*
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so.*
|
2005-04-02 22:26:04 +00:00
|
|
|
|
2005-04-18 17:47:56 +00:00
|
|
|
%files -n wx-i18n
|
2005-04-17 12:33:54 +00:00
|
|
|
%defattr(-,root,root)
|
2006-08-05 13:34:59 +00:00
|
|
|
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
1999-08-25 16:39:29 +00:00
|
|
|
|
2003-08-20 15:14:12 +00:00
|
|
|
%files devel -f core-headers.files
|
2001-05-25 07:00:12 +00:00
|
|
|
%defattr(-,root,root)
|
2012-09-19 07:53:13 +00:00
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/aui
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/gtk
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/gtk/gnome
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/gtk/hildon
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/persist
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/propgrid
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/ribbon
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/richtext
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/stc
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/unix
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/xrc
|
2005-04-17 12:33:54 +00:00
|
|
|
# shared libs
|
|
|
|
%{_libdir}/libwx_%{buildname}_adv-%{ver2}.so
|
2006-08-05 14:44:33 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_aui-%{ver2}.so
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_core-%{ver2}.so
|
|
|
|
%{_libdir}/libwx_%{buildname}_gl-%{ver2}.so
|
|
|
|
%{_libdir}/libwx_%{buildname}_html-%{ver2}.so
|
2012-09-19 07:53:13 +00:00
|
|
|
%if ! 0%{?mandriva_version}
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_media-%{ver2}.so
|
2012-09-19 07:53:13 +00:00
|
|
|
%endif
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_qa-%{ver2}.so
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so
|
2006-08-05 14:44:33 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_stc-%{ver2}.so
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so
|
|
|
|
# static libs
|
|
|
|
%{_libdir}/libwx_%{buildname}_adv-%{ver2}.a
|
2006-08-05 14:44:33 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_aui-%{ver2}.a
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_core-%{ver2}.a
|
|
|
|
%{_libdir}/libwx_%{buildname}_gl-%{ver2}.a
|
|
|
|
%{_libdir}/libwx_%{buildname}_html-%{ver2}.a
|
2012-09-19 07:53:13 +00:00
|
|
|
%if ! 0%{?mandriva_version}
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_media-%{ver2}.a
|
2012-09-19 07:53:13 +00:00
|
|
|
%endif
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.a
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_qa-%{ver2}.a
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.a
|
2006-08-05 14:44:33 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_richtext-%{ver2}.a
|
2010-10-15 23:46:09 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_stc-%{ver2}.a
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.a
|
2001-11-20 23:50:53 +00:00
|
|
|
%dir %{_libdir}/wx
|
2012-09-19 07:53:13 +00:00
|
|
|
%dir %{_libdir}/wx/config
|
|
|
|
%dir %{_libdir}/wx/include
|
|
|
|
%dir %{_libdir}/wx/include/%{wxconfig}
|
|
|
|
%dir %{_libdir}/wx/include/%{wxconfig}/wx
|
|
|
|
%dir %{_libdir}/wx/include/%{wxconfigstatic}
|
|
|
|
%dir %{_libdir}/wx/include/%{wxconfigstatic}/wx
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/wx/config/%{wxconfig}
|
|
|
|
%{_libdir}/wx/include/%{wxconfig}/wx/setup.h
|
|
|
|
%{_libdir}/wx/config/%{wxconfigstatic}
|
|
|
|
%{_libdir}/wx/include/%{wxconfigstatic}/wx/setup.h
|
2005-04-02 22:26:04 +00:00
|
|
|
%{_bindir}/wxrc*
|
1999-01-29 12:54:50 +00:00
|
|
|
|
2005-04-17 12:33:54 +00:00
|
|
|
%files -n %{wxbasename}
|
2001-11-20 23:50:53 +00:00
|
|
|
%defattr(-,root,root)
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_base*-%{ver2}.so.*
|
2001-05-25 07:00:12 +00:00
|
|
|
|
2005-04-17 12:33:54 +00:00
|
|
|
%files -n %{wxbasename}-devel -f wxbase-headers.paths
|
2001-11-22 00:33:18 +00:00
|
|
|
%defattr (-,root,root)
|
2005-04-17 12:33:54 +00:00
|
|
|
%dir %{_includedir}/wx-%{ver2}
|
2012-09-19 07:53:13 +00:00
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/generic
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/html
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/meta
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/protocol
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/unix
|
|
|
|
%dir %{_includedir}/wx-%{ver2}/wx/xml
|
|
|
|
%dir %{_datadir}/bakefile/presets
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_libdir}/libwx_base*-%{ver2}.so
|
|
|
|
%{_libdir}/libwx_base*-%{ver2}.a
|
|
|
|
%if %{unicode}
|
|
|
|
%{_libdir}/libwxregexu-%{ver2}.a
|
|
|
|
%endif
|
2010-10-23 14:09:43 +00:00
|
|
|
%{_libdir}/libwxscintilla-%{ver2}.a
|
2005-04-17 12:33:54 +00:00
|
|
|
%dir %{_libdir}/wx
|
2012-09-19 07:53:13 +00:00
|
|
|
%dir %{_datadir}/bakefile
|
|
|
|
%dir %{_datadir}/bakefile/presets
|
2005-04-17 12:33:54 +00:00
|
|
|
%{_datadir}/aclocal/*.m4
|
2006-08-05 13:34:59 +00:00
|
|
|
%{_datadir}/bakefile/presets/*
|
2005-04-17 12:33:54 +00:00
|
|
|
|
2012-09-19 07:53:13 +00:00
|
|
|
%files -n %{glname}
|
2005-04-17 12:33:54 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libwx_%{buildname}_gl-%{ver2}.so.*
|