2006-08-05 09:05:52 -04:00
|
|
|
%define _prefix /usr
|
2011-07-22 12:32:07 -04:00
|
|
|
%define ver 2.9.3
|
2007-02-06 14:58:27 -05:00
|
|
|
%define ver2 2.9
|
2005-04-11 15:37:51 -04:00
|
|
|
%define rel 1
|
1999-04-26 16:48:39 -04:00
|
|
|
|
2003-08-20 11:14:12 -04:00
|
|
|
# Configurable settings (use --with(out) {unicode,gtk2} on rpmbuild cmd line):
|
2005-04-17 08:33:54 -04:00
|
|
|
%define unicode 1
|
2003-08-20 11:14:12 -04:00
|
|
|
%{?_with_unicode: %{expand: %%define unicode 1}}
|
|
|
|
%{?_without_unicode: %{expand: %%define unicode 0}}
|
|
|
|
|
2005-02-19 13:17:58 -05:00
|
|
|
%define gtk2 1
|
2003-08-20 11:14:12 -04:00
|
|
|
%{?_with_gtk2: %{expand: %%define gtk2 1}}
|
|
|
|
%{?_without_gtk2: %{expand: %%define gtk2 0}}
|
|
|
|
|
2005-04-17 08:33:54 -04:00
|
|
|
# "buildname" needs to be e.g. gtk2ud for debug builds
|
2005-04-02 17:26:04 -05:00
|
|
|
%if %{gtk2}
|
|
|
|
%define gtkver 2
|
2005-04-17 08:33:54 -04:00
|
|
|
%define portname gtk2
|
|
|
|
%if %{unicode}
|
|
|
|
%define buildname gtk2u
|
|
|
|
%else
|
|
|
|
%define buildname gtk2
|
|
|
|
%endif
|
2005-03-21 17:46:37 -05:00
|
|
|
%else
|
2005-04-02 17:26:04 -05:00
|
|
|
%define gtkver 1.2
|
2005-04-17 08:33:54 -04:00
|
|
|
%define portname gtk
|
|
|
|
%define buildname gtk
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{unicode}
|
|
|
|
%define name wx-%{portname}-unicode
|
2010-10-23 10:09:27 -04:00
|
|
|
%define wxconfig %{portname}-unicode-%{ver2}
|
|
|
|
%define wxconfigstatic %{portname}-unicode-static-%{ver2}
|
2005-04-17 08:33:54 -04:00
|
|
|
%define wxconfiglink wx%{portname}u-%{ver2}-config
|
|
|
|
%else
|
|
|
|
%define name wx-%{portname}-ansi
|
2010-10-23 10:09:27 -04:00
|
|
|
%define wxconfig %{portname}-ansi-%{ver2}
|
|
|
|
%define wxconfigstatic %{portname}-ansi-static-%{ver2}
|
2005-04-17 08:33:54 -04:00
|
|
|
%define wxconfiglink wx%{portname}-%{ver2}-config
|
2003-08-20 11:14:12 -04:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{unicode}
|
2005-04-17 08:33:54 -04:00
|
|
|
%define wxbasename wx-base-unicode
|
2010-10-23 10:09:27 -04:00
|
|
|
%define wxbaseconfig base-unicode-%{ver2}
|
2005-04-17 08:33:54 -04:00
|
|
|
%define wxbaseconfiglink wxbaseu-%{ver2}-config
|
2003-08-20 11:14:12 -04:00
|
|
|
%else
|
2005-04-17 08:33:54 -04:00
|
|
|
%define wxbasename wx-base-ansi
|
2010-10-23 10:09:27 -04:00
|
|
|
%define wxbaseconfig base-ansi-%{ver2}
|
2005-04-17 08:33:54 -04:00
|
|
|
%define wxbaseconfiglink wxbase-%{ver2}-config
|
2003-08-20 11:14:12 -04:00
|
|
|
%endif
|
|
|
|
|
2005-04-02 17:26:04 -05:00
|
|
|
Summary: The GTK+ %{gtkver} port of the wxWidgets library
|
|
|
|
Name: %{name}
|
1999-04-26 16:48:39 -04:00
|
|
|
Version: %{ver}
|
|
|
|
Release: %{rel}
|
2003-08-20 11:14:12 -04:00
|
|
|
License: wxWindows Licence
|
1999-01-05 13:46:22 -05:00
|
|
|
Group: X11/Libraries
|
2006-08-05 09:04:09 -04:00
|
|
|
Source: wxGTK-%{ver}.tar.bz2
|
2005-04-02 17:26:04 -05:00
|
|
|
URL: http://www.wxwidgets.org
|
2001-01-29 12:39:24 -05:00
|
|
|
Packager: Vadim Zeitlin <vadim@wxwindows.org>
|
2005-04-17 08:33:54 -04:00
|
|
|
Prefix: %{_prefix}
|
2005-04-02 17:26:04 -05:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
|
|
Requires: %{wxbasename} = %{ver}
|
2006-08-05 10:57:18 -04:00
|
|
|
%if %{portname} == gtk2
|
2010-10-15 19:46:04 -04:00
|
|
|
BuildRequires: gtk2-devel
|
2006-08-05 10:57:18 -04:00
|
|
|
%else
|
|
|
|
BuildRequires: gtk+-devel >= 1.2.0
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: zlib-devel, libjpeg-devel, libpng-devel, libtiff-devel
|
1999-01-05 13:46:22 -05:00
|
|
|
|
2005-04-02 17:26:04 -05:00
|
|
|
# all packages providing an implementation of wxWidgets library (regardless of
|
1999-02-27 18:16:54 -05:00
|
|
|
# the toolkit used) should provide the (virtual) wxwin package, this makes it
|
2001-08-25 10:52:26 -04:00
|
|
|
# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
|
1999-02-27 18:16:54 -05:00
|
|
|
Provides: wxwin
|
2003-08-20 11:14:12 -04:00
|
|
|
Provides: wxGTK
|
1999-02-27 18:16:54 -05:00
|
|
|
|
1999-01-05 13:46:22 -05:00
|
|
|
%description
|
2005-04-02 17:26:04 -05: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 08:33:54 -04:00
|
|
|
Motif, MS Windows, MacOS X, Windows CE, GPE) from the same source code.
|
|
|
|
|
2005-04-18 13:47:56 -04:00
|
|
|
%package -n wx-i18n
|
2005-04-17 08:33:54 -04:00
|
|
|
Summary: The translations for the wxWidgets library.
|
|
|
|
Group: X11/Libraries
|
|
|
|
|
2005-04-18 13:47:56 -04:00
|
|
|
%description -n wx-i18n
|
2005-04-17 08:33:54 -04:00
|
|
|
The translations files for the wxWidgets library.
|
1999-01-05 13:46:22 -05:00
|
|
|
|
1999-08-25 12:39:29 -04:00
|
|
|
%package devel
|
2005-04-02 17:26:04 -05:00
|
|
|
Summary: The GTK+ %{gtkver} port of the wxWidgets library
|
1999-08-25 12:39:29 -04:00
|
|
|
Group: X11/Libraries
|
2003-08-20 11:14:12 -04:00
|
|
|
Requires: %{name} = %{ver}
|
|
|
|
Requires: %{wxbasename}-devel = %{ver}
|
|
|
|
Provides: wxGTK-devel
|
1999-08-25 12:39:29 -04:00
|
|
|
|
|
|
|
%description devel
|
2005-04-17 08:33:54 -04:00
|
|
|
The GTK+ %{gtkver} port of the wxWidgets library, header files.
|
2000-03-05 12:49:58 -05:00
|
|
|
|
|
|
|
%package gl
|
2005-04-02 17:26:04 -05:00
|
|
|
Summary: The GTK+ %{gtkver} port of the wxWidgets library, OpenGL add-on.
|
2000-03-05 12:49:58 -05:00
|
|
|
Group: X11/Libraries
|
2003-08-20 11:14:12 -04:00
|
|
|
Requires: %{name} = %{ver}
|
2005-04-02 17:26:04 -05:00
|
|
|
Provides: wxGTK-gl
|
2000-03-05 12:49:58 -05:00
|
|
|
|
|
|
|
%description gl
|
2005-04-02 17:26:04 -05:00
|
|
|
OpenGL add-on library for wxGTK, the GTK+ %{gtkver} port of the wxWidgets library.
|
2001-11-21 19:33:18 -05:00
|
|
|
|
2005-04-17 08:33:54 -04:00
|
|
|
%package -n %{wxbasename}
|
|
|
|
Summary: wxBase library - non-GUI support classes of the wxWidgets toolkit
|
2001-11-21 19:33:18 -05:00
|
|
|
Group: Development/Libraries
|
2005-04-17 08:33:54 -04:00
|
|
|
Provides: wxBase
|
|
|
|
|
|
|
|
%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 19:46:13 -04:00
|
|
|
compression). wxBase currently supports Win32, most Unix variants (Linux,
|
2005-04-17 08:33:54 -04:00
|
|
|
FreeBSD, Solaris, HP-UX) and MacOS X (Carbon and Mach-0).
|
|
|
|
|
|
|
|
%package -n %{wxbasename}-devel
|
|
|
|
Summary: wxBase library, header files.
|
|
|
|
Group: Development/Libraries
|
|
|
|
Provides: wxBase-devel
|
2001-11-21 19:33:18 -05:00
|
|
|
|
2005-04-17 08:33:54 -04:00
|
|
|
%description -n %{wxbasename}-devel
|
|
|
|
wxBase library - non-GUI support classes of the wxWidgets toolkit,
|
|
|
|
header files.
|
1999-08-25 12:39:29 -04:00
|
|
|
|
1999-01-05 13:46:22 -05:00
|
|
|
%prep
|
2003-08-20 11:14:12 -04:00
|
|
|
%setup -q -n wxGTK-%{ver}
|
1999-01-05 13:46:22 -05:00
|
|
|
|
|
|
|
%build
|
2000-02-01 11:37:28 -05:00
|
|
|
if [ "$SMP" != "" ]; then
|
2005-04-02 17:26:04 -05:00
|
|
|
export MAKE="make -j$SMP"
|
2000-02-01 11:37:28 -05:00
|
|
|
else
|
2005-04-02 17:26:04 -05:00
|
|
|
export MAKE="make"
|
2000-02-01 11:37:28 -05:00
|
|
|
fi
|
2001-11-21 19:33:18 -05:00
|
|
|
|
2005-04-17 08:33:54 -04:00
|
|
|
mkdir obj-shared
|
|
|
|
cd obj-shared
|
2010-10-16 14:10:32 -04:00
|
|
|
../configure --prefix=%{_prefix} --libdir=%{_libdir} \
|
2005-02-19 13:17:58 -05:00
|
|
|
%if ! %{gtk2}
|
2005-04-17 08:33:54 -04:00
|
|
|
--with-gtk=1 \
|
|
|
|
%else
|
|
|
|
--with-gtk=2 \
|
2005-04-02 17:26:04 -05:00
|
|
|
%endif
|
2005-04-17 08:33:54 -04:00
|
|
|
%if %{unicode}
|
|
|
|
--enable-unicode \
|
|
|
|
%else
|
|
|
|
--disable-unicode \
|
2003-08-20 11:14:12 -04:00
|
|
|
%endif
|
2010-10-23 10:09:34 -04:00
|
|
|
--with-opengl \
|
|
|
|
--with-gnomeprint \
|
|
|
|
--enable-mediactrl
|
2001-11-21 19:33:18 -05:00
|
|
|
$MAKE
|
2005-04-02 17:26:04 -05:00
|
|
|
|
2010-10-15 19:46:13 -04:00
|
|
|
cd ..
|
2001-11-21 19:33:18 -05:00
|
|
|
|
2005-04-17 08:33:54 -04:00
|
|
|
mkdir obj-static
|
|
|
|
cd obj-static
|
2010-10-16 14:10:32 -04:00
|
|
|
../configure --prefix=%{_prefix} --libdir=%{_libdir} \
|
2005-02-19 13:17:58 -05:00
|
|
|
%if ! %{gtk2}
|
2005-04-17 08:33:54 -04:00
|
|
|
--with-gtk=1 \
|
|
|
|
%else
|
|
|
|
--with-gtk=2 \
|
2005-04-02 17:26:04 -05:00
|
|
|
%endif
|
2005-04-17 08:33:54 -04:00
|
|
|
--disable-shared \
|
|
|
|
%if %{unicode}
|
2006-08-05 09:09:35 -04:00
|
|
|
--enable-unicode \
|
2005-04-17 08:33:54 -04:00
|
|
|
%else
|
2006-08-05 09:09:35 -04:00
|
|
|
--disable-unicode \
|
2003-08-20 11:14:12 -04:00
|
|
|
%endif
|
2010-10-23 10:09:34 -04:00
|
|
|
--with-opengl \
|
|
|
|
--with-gnomeprint \
|
|
|
|
--enable-mediactrl
|
2000-02-01 11:37:28 -05:00
|
|
|
$MAKE
|
2005-04-17 08:33:54 -04:00
|
|
|
|
2010-10-15 19:46:13 -04:00
|
|
|
cd ..
|
1999-01-05 13:46:22 -05:00
|
|
|
|
2006-08-05 09:34:59 -04:00
|
|
|
make -C locale allmo
|
|
|
|
|
1999-01-05 13:46:22 -05:00
|
|
|
%install
|
2001-01-29 12:39:24 -05:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2006-08-05 09:31:59 -04: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 08:30:09 -04:00
|
|
|
|
|
|
|
# --- wxBase headers list begins here ---
|
2005-07-29 12:44:00 -04:00
|
|
|
cat <<EOF >wxbase-headers.files
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/afterstd.h
|
2009-09-19 04:51:11 -04:00
|
|
|
wx/any.h
|
2009-03-24 19:21:29 -04:00
|
|
|
wx/anystr.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/app.h
|
|
|
|
wx/apptrait.h
|
2004-11-23 03:46:26 -05:00
|
|
|
wx/archive.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/arrimpl.cpp
|
|
|
|
wx/arrstr.h
|
2007-07-09 22:00:51 -04:00
|
|
|
wx/atomic.h
|
|
|
|
wx/base64.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/beforestd.h
|
|
|
|
wx/buffer.h
|
|
|
|
wx/build.h
|
2007-03-29 13:40:32 -04:00
|
|
|
wx/chartype.h
|
2009-02-03 07:01:46 -05:00
|
|
|
wx/checkeddelete.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/chkconf.h
|
2004-07-17 23:10:04 -04:00
|
|
|
wx/clntdata.h
|
2007-11-12 17:32:23 -05:00
|
|
|
wx/cmdargs.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/cmdline.h
|
|
|
|
wx/confbase.h
|
|
|
|
wx/config.h
|
2006-04-05 11:06:15 -04:00
|
|
|
wx/convauto.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/containr.h
|
2006-10-01 16:46:32 -04:00
|
|
|
wx/cpp.h
|
2007-05-30 10:03:45 -04:00
|
|
|
wx/crt.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/datetime.h
|
|
|
|
wx/datstrm.h
|
|
|
|
wx/dde.h
|
|
|
|
wx/debug.h
|
|
|
|
wx/defs.h
|
|
|
|
wx/dir.h
|
2003-11-05 20:31:44 -05:00
|
|
|
wx/dlimpexp.h
|
2008-09-21 20:53:46 -04:00
|
|
|
wx/dlist.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/dynarray.h
|
|
|
|
wx/dynlib.h
|
|
|
|
wx/dynload.h
|
|
|
|
wx/encconv.h
|
|
|
|
wx/event.h
|
2010-01-23 20:00:20 -05:00
|
|
|
wx/evtloop.h
|
2003-09-18 18:46:21 -04:00
|
|
|
wx/except.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/features.h
|
2007-04-13 08:06:21 -04:00
|
|
|
wx/flags.h
|
2003-08-30 08:30:09 -04: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 18:10:19 -04:00
|
|
|
wx/fs_arc.h
|
2006-10-26 18:49:53 -04:00
|
|
|
wx/fs_filter.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/fs_mem.h
|
|
|
|
wx/fs_zip.h
|
|
|
|
wx/hash.h
|
|
|
|
wx/hashmap.h
|
|
|
|
wx/hashset.h
|
2005-03-10 22:03:35 -05:00
|
|
|
wx/html/forcelnk.h
|
2003-08-30 08:30:09 -04: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 11:44:49 -04:00
|
|
|
wx/kbdstate.h
|
2010-04-24 03:06:32 -04:00
|
|
|
wx/language.h
|
2005-10-03 17:05:25 -04:00
|
|
|
wx/link.h
|
2003-08-30 08:30:09 -04: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 11:44:49 -04:00
|
|
|
wx/mousestate.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/msgout.h
|
2010-06-11 16:42:38 -04:00
|
|
|
wx/msgqueue.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/mstream.h
|
2011-01-19 05:47:40 -05:00
|
|
|
wx/numformatter.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/object.h
|
|
|
|
wx/platform.h
|
2006-08-13 17:10:59 -04:00
|
|
|
wx/platinfo.h
|
2006-05-27 10:09:40 -04:00
|
|
|
wx/power.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/process.h
|
|
|
|
wx/ptr_scpd.h
|
2008-01-12 21:48:17 -05:00
|
|
|
wx/ptr_shrd.h
|
2005-08-08 08:59:33 -04:00
|
|
|
wx/recguard.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/regex.h
|
2011-01-04 05:46:18 -05:00
|
|
|
wx/rtti.h
|
2009-02-03 07:01:46 -05:00
|
|
|
wx/scopedarray.h
|
|
|
|
wx/scopedptr.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/scopeguard.h
|
2009-02-03 07:01:46 -05:00
|
|
|
wx/sharedptr.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/snglinst.h
|
2004-09-27 02:53:08 -04:00
|
|
|
wx/sstream.h
|
2003-09-27 11:48:14 -04:00
|
|
|
wx/stack.h
|
2005-01-16 20:43:08 -05:00
|
|
|
wx/stackwalk.h
|
2004-10-27 18:47:26 -04:00
|
|
|
wx/stdpaths.h
|
2009-05-02 14:29:33 -04:00
|
|
|
wx/stdstream.h
|
2004-09-19 08:05:11 -04:00
|
|
|
wx/stockitem.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/stopwatch.h
|
|
|
|
wx/strconv.h
|
|
|
|
wx/stream.h
|
|
|
|
wx/string.h
|
2007-03-29 13:40:32 -04:00
|
|
|
wx/stringimpl.h
|
2007-04-19 06:05:55 -04:00
|
|
|
wx/stringops.h
|
2007-03-17 06:26:10 -04:00
|
|
|
wx/strvararg.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/sysopt.h
|
2006-10-27 05:57:42 -04:00
|
|
|
wx/tarstrm.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/textbuf.h
|
|
|
|
wx/textfile.h
|
|
|
|
wx/thread.h
|
|
|
|
wx/thrimpl.cpp
|
|
|
|
wx/timer.h
|
2008-11-03 07:47:56 -05:00
|
|
|
wx/tls.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/tokenzr.h
|
2008-01-12 21:48:17 -05:00
|
|
|
wx/tracker.h
|
2010-04-24 03:06:32 -04:00
|
|
|
wx/translation.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/txtstrm.h
|
2009-11-19 14:27:24 -05:00
|
|
|
wx/typeinfo.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/types.h
|
2007-03-29 13:40:32 -04:00
|
|
|
wx/unichar.h
|
2004-10-27 18:47:26 -04:00
|
|
|
wx/uri.h
|
2008-08-02 10:15:22 -04:00
|
|
|
wx/ustring.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/utils.h
|
|
|
|
wx/variant.h
|
|
|
|
wx/vector.h
|
|
|
|
wx/version.h
|
2010-11-24 19:53:44 -05:00
|
|
|
wx/versioninfo.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/volume.h
|
2008-01-12 21:48:17 -05:00
|
|
|
wx/weakref.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/wfstream.h
|
|
|
|
wx/wx.h
|
|
|
|
wx/wxchar.h
|
2007-03-29 13:40:32 -04:00
|
|
|
wx/wxcrt.h
|
2007-06-10 13:14:14 -04:00
|
|
|
wx/wxcrtbase.h
|
2007-04-19 04:04:34 -04:00
|
|
|
wx/wxcrtvararg.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/wxprec.h
|
2008-02-10 12:03:23 -05:00
|
|
|
wx/xlocale.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/xti.h
|
2011-01-10 06:42:10 -05:00
|
|
|
wx/xti2.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/xtistrm.h
|
2011-01-04 05:46:18 -05:00
|
|
|
wx/xtictor.h
|
|
|
|
wx/xtihandler.h
|
|
|
|
wx/xtiprop.h
|
|
|
|
wx/xtitypes.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/zipstrm.h
|
|
|
|
wx/zstream.h
|
2008-01-12 21:48:17 -05:00
|
|
|
wx/meta/convertible.h
|
2008-01-23 07:13:07 -05:00
|
|
|
wx/meta/if.h
|
2010-10-26 11:10:48 -04:00
|
|
|
wx/meta/implicitconversion.h
|
2008-01-12 21:48:17 -05:00
|
|
|
wx/meta/int2type.h
|
2008-01-23 07:13:07 -05:00
|
|
|
wx/meta/movable.h
|
2010-06-14 11:12:37 -04:00
|
|
|
wx/meta/pod.h
|
2009-10-22 07:35:43 -04:00
|
|
|
wx/fswatcher.h
|
|
|
|
wx/generic/fswatcher.h
|
2007-05-14 19:43:39 -04:00
|
|
|
wx/unix/app.h
|
2005-07-29 14:41:58 -04:00
|
|
|
wx/unix/apptbase.h
|
|
|
|
wx/unix/apptrait.h
|
2007-07-14 15:06:18 -04:00
|
|
|
wx/unix/chkconf.h
|
2007-05-14 19:43:39 -04:00
|
|
|
wx/unix/evtloop.h
|
2009-10-22 12:53:10 -04:00
|
|
|
wx/unix/evtloopsrc.h
|
2005-07-29 14:41:58 -04:00
|
|
|
wx/unix/pipe.h
|
2008-01-06 09:38:44 -05:00
|
|
|
wx/unix/stdpaths.h
|
2008-02-10 12:03:23 -05:00
|
|
|
wx/unix/stackwalk.h
|
2008-09-04 03:57:32 -04:00
|
|
|
wx/unix/tls.h
|
2009-10-22 07:35:43 -04:00
|
|
|
wx/unix/fswatcher_kqueue.h
|
2008-01-06 09:38:44 -05:00
|
|
|
wx/unix/execute.h
|
|
|
|
wx/unix/mimetype.h
|
2009-10-22 07:35:43 -04:00
|
|
|
wx/unix/fswatcher_inotify.h
|
2003-08-30 08:30:09 -04:00
|
|
|
wx/fs_inet.h
|
|
|
|
wx/protocol/file.h
|
|
|
|
wx/protocol/ftp.h
|
|
|
|
wx/protocol/http.h
|
2009-03-07 08:58:39 -05:00
|
|
|
wx/protocol/log.h
|
2003-08-30 08:30:09 -04: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 10:09:39 -04:00
|
|
|
|
|
|
|
# --- wxBase headers list with paths ---
|
|
|
|
sed -e 's@^@%{_includedir}/wx-%{ver2}/@' wxbase-headers.files > wxbase-headers.paths
|
|
|
|
|
2005-04-17 08:33:54 -04: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 17:26:04 -05:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2}/$f
|
2003-08-20 11:14:12 -04:00
|
|
|
done
|
|
|
|
# list of all core headers:
|
2005-04-02 17:26:04 -05:00
|
|
|
find $RPM_BUILD_ROOT%{_includedir}/wx-%{ver2} -type f | sed -e "s,$RPM_BUILD_ROOT,,g" >core-headers.files
|
2005-04-17 08:33:54 -04: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 11:14:12 -04:00
|
|
|
|
2006-08-05 10:34:03 -04:00
|
|
|
# utils:
|
|
|
|
(cd obj-shared/utils/wxrc; make DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} install)
|
2003-10-06 15:12:12 -04:00
|
|
|
|
2006-08-05 10:48:42 -04:00
|
|
|
# wx-config link is created during package installation, remove it for now
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/wx-config
|
|
|
|
|
2001-12-15 11:45:18 -05:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
1999-01-05 13:46:22 -05:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2005-02-19 13:17:58 -05:00
|
|
|
%post devel
|
|
|
|
# link wx-config when you install RPM.
|
2005-04-17 08:33:54 -04:00
|
|
|
%if %{unicode}
|
|
|
|
ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/wx-config
|
|
|
|
%endif
|
2005-02-19 13:17:58 -05:00
|
|
|
# link wx-config with explicit name.
|
2005-04-02 17:26:04 -05:00
|
|
|
ln -sf %{_libdir}/wx/config/%{wxconfig} %{_bindir}/%{wxconfiglink}
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
/sbin/ldconfig
|
2005-03-21 17:46:37 -05:00
|
|
|
|
2005-02-19 13:17:58 -05:00
|
|
|
%preun devel
|
2005-04-17 08:33:54 -04:00
|
|
|
%if %{unicode}
|
|
|
|
rm -f %{_bindir}/wx-config
|
|
|
|
%endif
|
2005-04-02 17:26:04 -05:00
|
|
|
rm -f %{_bindir}/%{wxconfiglink}
|
2005-03-21 17:46:37 -05:00
|
|
|
|
2005-04-17 08:33:54 -04: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}
|
|
|
|
|
2005-04-02 17:26:04 -05:00
|
|
|
%post gl
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun gl
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
2003-08-20 11:14:12 -04:00
|
|
|
%files
|
2001-11-20 18:50:53 -05:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING.LIB *.txt
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_adv-%{ver2}.so.*
|
2006-08-05 10:44:33 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_aui-%{ver2}.so.*
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_core-%{ver2}.so.*
|
|
|
|
%{_libdir}/libwx_%{buildname}_html-%{ver2}.so.*
|
2010-10-15 19:46:09 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_media-%{ver2}.so.*
|
|
|
|
%{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so.*
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_qa-%{ver2}.so.*
|
2010-10-15 19:46:09 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so.*
|
2006-08-05 10:44:33 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so.*
|
2010-10-15 19:46:09 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_stc-%{ver2}.so.*
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so.*
|
2005-04-02 17:26:04 -05:00
|
|
|
|
2005-04-18 13:47:56 -04:00
|
|
|
%files -n wx-i18n
|
2005-04-17 08:33:54 -04:00
|
|
|
%defattr(-,root,root)
|
2006-08-05 09:34:59 -04:00
|
|
|
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
1999-08-25 12:39:29 -04:00
|
|
|
|
2003-08-20 11:14:12 -04:00
|
|
|
%files devel -f core-headers.files
|
2001-05-25 03:00:12 -04:00
|
|
|
%defattr(-,root,root)
|
2005-04-17 08:33:54 -04:00
|
|
|
# shared libs
|
|
|
|
%{_libdir}/libwx_%{buildname}_adv-%{ver2}.so
|
2006-08-05 10:44:33 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_aui-%{ver2}.so
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_core-%{ver2}.so
|
|
|
|
%{_libdir}/libwx_%{buildname}_gl-%{ver2}.so
|
|
|
|
%{_libdir}/libwx_%{buildname}_html-%{ver2}.so
|
2010-10-15 19:46:09 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_media-%{ver2}.so
|
|
|
|
%{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.so
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_qa-%{ver2}.so
|
2010-10-15 19:46:09 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.so
|
2006-08-05 10:44:33 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_richtext-%{ver2}.so
|
2010-10-15 19:46:09 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_stc-%{ver2}.so
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.so
|
|
|
|
# static libs
|
|
|
|
%{_libdir}/libwx_%{buildname}_adv-%{ver2}.a
|
2006-08-05 10:44:33 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_aui-%{ver2}.a
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_core-%{ver2}.a
|
|
|
|
%{_libdir}/libwx_%{buildname}_gl-%{ver2}.a
|
|
|
|
%{_libdir}/libwx_%{buildname}_html-%{ver2}.a
|
2010-10-15 19:46:09 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_media-%{ver2}.a
|
|
|
|
%{_libdir}/libwx_%{buildname}_propgrid-%{ver2}.a
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_qa-%{ver2}.a
|
2010-10-15 19:46:09 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_ribbon-%{ver2}.a
|
2006-08-05 10:44:33 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_richtext-%{ver2}.a
|
2010-10-15 19:46:09 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_stc-%{ver2}.a
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_%{buildname}_xrc-%{ver2}.a
|
2001-11-20 18:50:53 -05:00
|
|
|
%dir %{_libdir}/wx
|
2005-04-17 08:33:54 -04: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 17:26:04 -05:00
|
|
|
%{_bindir}/wxrc*
|
1999-01-29 07:54:50 -05:00
|
|
|
|
2005-04-17 08:33:54 -04:00
|
|
|
%files -n %{wxbasename}
|
2001-11-20 18:50:53 -05:00
|
|
|
%defattr(-,root,root)
|
2005-04-17 08:33:54 -04:00
|
|
|
%{_libdir}/libwx_base*-%{ver2}.so.*
|
2001-05-25 03:00:12 -04:00
|
|
|
|
2005-04-17 08:33:54 -04:00
|
|
|
%files -n %{wxbasename}-devel -f wxbase-headers.paths
|
2001-11-21 19:33:18 -05:00
|
|
|
%defattr (-,root,root)
|
2005-04-17 08:33:54 -04:00
|
|
|
%dir %{_includedir}/wx-%{ver2}
|
|
|
|
%{_libdir}/libwx_base*-%{ver2}.so
|
|
|
|
%{_libdir}/libwx_base*-%{ver2}.a
|
|
|
|
%if %{unicode}
|
|
|
|
%{_libdir}/libwxregexu-%{ver2}.a
|
|
|
|
%endif
|
2010-10-23 10:09:43 -04:00
|
|
|
%{_libdir}/libwxscintilla-%{ver2}.a
|
2005-04-17 08:33:54 -04:00
|
|
|
%dir %{_libdir}/wx
|
|
|
|
%{_datadir}/aclocal/*.m4
|
2006-08-05 09:34:59 -04:00
|
|
|
%{_datadir}/bakefile/presets/*
|
2005-04-17 08:33:54 -04:00
|
|
|
|
|
|
|
%files gl
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libwx_%{buildname}_gl-%{ver2}.so.*
|