alexjnewt@hotmail.com ff74a61
%global srcname wxWidgets
alexjnewt@hotmail.com ff74a61
%global wxgtkname wxGTK3
alexjnewt@hotmail.com ff74a61
%global wxbasename wxBase3
alexjnewt@hotmail.com ff74a61
#RHEL 6 does not have gtk3
alexjnewt@hotmail.com ff74a61
#RHEL prior to 6 is unsupported by this package
alexjnewt@hotmail.com ff74a61
%if 0%{?el6}
alexjnewt@hotmail.com ff74a61
%global gtkver 2
alexjnewt@hotmail.com ff74a61
%else
alexjnewt@hotmail.com ff74a61
%global gtkver 3
alexjnewt@hotmail.com ff74a61
%endif
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
Name:           %{wxgtkname}
alexjnewt@hotmail.com 72aded6
Version:        3.0.2
Mystro256 7793bd7
Release:        26%{?dist}
alexjnewt@hotmail.com ff74a61
Summary:        GTK port of the wxWidgets GUI library
alexjnewt@hotmail.com ff74a61
License:        wxWidgets
alexjnewt@hotmail.com ff74a61
Group:          System Environment/Libraries
alexjnewt@hotmail.com ff74a61
URL:            http://www.wxwidgets.org/
alexjnewt@hotmail.com ff74a61
Source0:        http://downloads.sf.net/wxwindows/%{srcname}-%{version}.tar.bz2
alexjnewt@hotmail.com ff74a61
Source1:        http://downloads.sf.net/wxwindows/%{srcname}-%{version}-docs-html.tar.bz2
alexjnewt@hotmail.com ff74a61
Source10:       wx-config
dd37920
# https://bugzilla.redhat.com/show_bug.cgi?id=1225148
dd37920
# remove abort when ABI check fails
dd37920
# Backport from wxGTK
Jeremy Newton 359a25b
Patch0:         %{name}-%{version}-abicheck.patch
Jeremy Newton 39885d3
# This is a collection of fixes from upstream
Jeremy Newton 39885d3
# to fix warnings and crashes. See bug for details:
Jeremy Newton 39885d3
# https://bugzilla.redhat.com/show_bug.cgi?id=1234211
Jeremy Newton 359a25b
Patch1:         %{name}-%{version}-upstreamfixes.patch
Jeremy Newton 359a25b
# This fixes the spinbutton on gtk 3.12+
Jeremy Newton 359a25b
# For more details, see the upstream commit:
Jeremy Newton 94da280
# https://github.com/wxWidgets/wxWidgets/commit/312ae4c92cec95954557347c2b7a9e24d4398a59
Jeremy Newton 359a25b
Patch2:         %{name}-%{version}-spibuttfix.patch
Jeremy Newton 359a25b
# This fixes checkbox/radiobutton on gtk 3.14+
Jeremy Newton 359a25b
# For more details, see the upstream commit:
Jeremy Newton 359a25b
# https://github.com/wxWidgets/wxWidgets/commit/c1d150ed1228c155054cf1fa90932ced7371e6a4
Jeremy Newton 28eadee
Patch3:         %{name}-%{version}-checkradio.patch
Jeremy Newton 63d23b2
# This fixes some wayland issues with GTK3
Jeremy Newton 63d23b2
# For more details, see the upstream bug:
Jeremy Newton 63d23b2
# http://trac.wxwidgets.org/ticket/16688
Jeremy Newton 63d23b2
Patch4:         %{name}-%{version}-wayland.patch
0c7f9b3
# This fixes wxSTC compilation with GCC6
0c7f9b3
# For more details, see the upstream commit:
0c7f9b3
# https://github.com/wxWidgets/wxWidgets/commit/73e9e18ea09ffffcaac50237def0d9728a213c02
0c7f9b3
Patch5:         %{name}-%{version}-stc-gcc6.patch
0c7f9b3
# This fixes compilation of the strings tests with GCC6
0c7f9b3
# For more details, see the upstream commit:
0c7f9b3
# https://github.com/wxWidgets/wxWidgets/commit/01f62c02957cc1443ea761ddffe0b4322d987a1d
b10eb1d
Patch6:         %{name}-%{version}-string-tests-gcc6.patch
92c277c
# This prevents wxStaticText from widening each time SetLabel() is called
92c277c
# For more details, see the upstream commit:
92c277c
# https://github.com/wxWidgets/wxWidgets/commit/2bc3721f065fd7d47674ccaf7e8d9d6cc195aab5
92c277c
Patch7:         %{name}-%{version}-getbestsize.patch
92c277c
# These patches fix top level window sizing under Wayland
92c277c
# For more details, see the upstream commits:
92c277c
# https://github.com/wxWidgets/wxWidgets/commit/41be4271e18a21acbcc30d1e61653190f8ef7a6d
92c277c
# https://github.com/wxWidgets/wxWidgets/commit/0388ce8e25535415d9bdd79ce14eb20e73859279
92c277c
Patch8:         %{name}-%{version}-wayland-window-sizing1.patch
92c277c
Patch9:         %{name}-%{version}-wayland-window-sizing2.patch
5c3df27
# This patch adds docs for the wxEVT_MEDIA_XXX event types (for Phoenix)
5c3df27
# For more details, see the upstream commits:
5c3df27
# https://github.com/wxWidgets/wxWidgets/commit/03903c1e459f108e0c464db24064e4cde84f174a
5c3df27
Patch10:        %{name}-%{version}-media-docs.patch
263c5a5
# Fixes issue with size allocation in GTK 3.19+
263c5a5
# For more details, see the upstream commit:
263c5a5
# https://github.com/wxWidgets/wxWidgets/commit/9fea81c069f9d803d79c4ce82f87a00a6e10b490
Mystro256 84f8915
Patch11:        %{name}-%{version}-size-alloc-fix.patch
e712f1c
# Fixes the stop function of wxFontEnumerator
e712f1c
# For more details, see the upstream commit:
e712f1c
# https://github.com/wxWidgets/wxWidgets/commit/a19e512e80acdb2a777c3e44923ad0b1178db35a
e712f1c
Patch12:        %{name}-%{version}-font-enumerator-stop.patch
e712f1c
# Fixes wxNativeFontInfo::InitFromFont()
e712f1c
# For more details, see the upstream commit:
e712f1c
# https://github.com/wxWidgets/wxWidgets/commit/238a948ed01f27e05e2c0e08932e8da207590648
e712f1c
Patch13:        %{name}-%{version}-init-from-font.patch
e712f1c
# Fixes wxGetKeyState() from crashing on Wayland
e712f1c
# For more details, see the upstream commits (first is just a dependency patch):
e712f1c
# https://github.com/wxWidgets/wxWidgets/commit/2dd407609b8987634180c045e9a6d131db6f947e
cb22fbe
# https://github.com/wxWidgets/wxWidgets/commit/79676e1e9d307c479c5aefa70c0fd052341d697e
e712f1c
# https://github.com/wxWidgets/wxWidgets/commit/98065821bbf0178981b50515094f565b703fcaa8
e712f1c
Patch14:        %{name}-%{version}-gtk-show-uri.patch
cb22fbe
Patch15:        %{name}-%{version}-gtk-show-uri1.patch
cb22fbe
Patch16:        %{name}-%{version}-wxgetkeystate.patch
a2cf677
# Fixes crash in wxGCDC::DrawEllipticArc()
a2cf677
# For more details, see the upstream commit:
a2cf677
# https://github.com/wxWidgets/wxWidgets/commit/148971013ee48926dfe153ca39c94be92acde37c
a2cf677
Patch17:        %{name}-%{version}-draw-elliptic-arc-crash.patch
Mystro256 e523d93
# Fixes drag and drop issues with filenames containing percent symbols
Mystro256 7793bd7
# For more details, see the upstream commits:
Mystro256 7793bd7
# https://github.com/wxWidgets/wxWidgets/commit/8f29de5231e348d356b5f3962225362e8fd87ba9
Mystro256 7793bd7
# https://github.com/wxWidgets/wxWidgets/commit/0f9f942a5bbe0ed9f07ea2e1fef90a7e2db768e5
Mystro256 e523d93
Patch18:        %{name}-%{version}-fix-percent-dnd.patch
Mystro256 7793bd7
Patch19:        %{name}-%{version}-fix-percent-dnd2.patch
263c5a5
alexjnewt@hotmail.com ff74a61
BuildRequires:  gtk%{gtkver}-devel
alexjnewt@hotmail.com ff74a61
#Note webkitgtk (GTK2) does not appear to be supported
alexjnewt@hotmail.com ff74a61
%if %{gtkver} == 3
alexjnewt@hotmail.com ff74a61
BuildRequires:  webkitgtk3-devel
alexjnewt@hotmail.com ff74a61
%endif
alexjnewt@hotmail.com ff74a61
BuildRequires:  zlib-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  libpng-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  libjpeg-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  libtiff-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  expat-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  SDL-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  libGLU-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  libSM-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  gstreamer-plugins-base-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  GConf2-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  gettext
alexjnewt@hotmail.com ff74a61
BuildRequires:  cppunit-devel
alexjnewt@hotmail.com ff74a61
BuildRequires:  libmspack-devel
a9e6f4a
BuildRequires:  doxygen
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
Provides:       %{srcname} = %{version}-%{release}
26939d0
Provides:       bundled(scintilla) = 3.2.1
alexjnewt@hotmail.com ff74a61
Requires:       %{wxbasename}%{?_isa} = %{version}-%{release}
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%description
alexjnewt@hotmail.com ff74a61
wxWidgets is the GTK port of the C++ cross-platform wxWidgets
alexjnewt@hotmail.com ff74a61
GUI library, offering classes for all common GUI controls as well as a
alexjnewt@hotmail.com ff74a61
comprehensive set of helper classes for most common application tasks,
alexjnewt@hotmail.com ff74a61
ranging from networking to HTML display and image manipulation.
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%package        devel
alexjnewt@hotmail.com ff74a61
Group:          Development/Libraries
alexjnewt@hotmail.com ff74a61
Summary:        Development files for the wxGTK3 library
alexjnewt@hotmail.com ff74a61
Requires:       %{name}%{?_isa} = %{version}-%{release}
alexjnewt@hotmail.com ff74a61
Requires:       %{name}-gl = %{version}-%{release}
alexjnewt@hotmail.com ff74a61
Requires:       %{name}-media = %{version}-%{release}
alexjnewt@hotmail.com ff74a61
Requires:       %{wxbasename} = %{version}-%{release}
Jeremy Newton 63d23b2
Requires:       gtk%{gtkver}-devel
alexjnewt@hotmail.com ff74a61
Requires:       libGLU-devel
b6b7424
Requires(post): %{_sbindir}/update-alternatives
b6b7424
Requires(postun): %{_sbindir}/update-alternatives
alexjnewt@hotmail.com ff74a61
Provides:       %{srcname}-devel = %{version}-%{release}
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%description devel
alexjnewt@hotmail.com ff74a61
This package include files needed to link with the wxGTK3 library.
alexjnewt@hotmail.com ff74a61
wxWidgets is the GTK port of the C++ cross-platform wxWidgets
alexjnewt@hotmail.com ff74a61
GUI library, offering classes for all common GUI controls as well as a
alexjnewt@hotmail.com ff74a61
comprehensive set of helper classes for most common application tasks,
alexjnewt@hotmail.com ff74a61
ranging from networking to HTML display and image manipulation.
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%package        gl
alexjnewt@hotmail.com ff74a61
Summary:        OpenGL add-on for the wxWidgets library
alexjnewt@hotmail.com ff74a61
Group:          System Environment/Libraries
alexjnewt@hotmail.com ff74a61
Requires:       %{name}%{?_isa} = %{version}-%{release}
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%description gl
alexjnewt@hotmail.com ff74a61
OpenGL (a 3D graphics API) add-on for the wxWidgets library.
alexjnewt@hotmail.com ff74a61
wxWidgets is the GTK port of the C++ cross-platform wxWidgets
alexjnewt@hotmail.com ff74a61
GUI library, offering classes for all common GUI controls as well as a
alexjnewt@hotmail.com ff74a61
comprehensive set of helper classes for most common application tasks,
alexjnewt@hotmail.com ff74a61
ranging from networking to HTML display and image manipulation.
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%package        media
alexjnewt@hotmail.com ff74a61
Summary:        Multimedia add-on for the wxWidgets library
alexjnewt@hotmail.com ff74a61
Group:          System Environment/Libraries
alexjnewt@hotmail.com ff74a61
Requires:       %{name}%{?_isa} = %{version}-%{release}
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%description media
alexjnewt@hotmail.com ff74a61
Multimedia add-on for the wxWidgets library.
alexjnewt@hotmail.com ff74a61
wxWidgets is the GTK port of the C++ cross-platform wxWidgets
alexjnewt@hotmail.com ff74a61
GUI library, offering classes for all common GUI controls as well as a
alexjnewt@hotmail.com ff74a61
comprehensive set of helper classes for most common application tasks,
alexjnewt@hotmail.com ff74a61
ranging from networking to HTML display and image manipulation.
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%package -n     %{wxbasename}
alexjnewt@hotmail.com ff74a61
Summary:        Non-GUI support classes from the wxWidgets library
alexjnewt@hotmail.com ff74a61
Group:          System Environment/Libraries
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%description -n %{wxbasename}
alexjnewt@hotmail.com ff74a61
Every wxWidgets application must link against this library. It contains
alexjnewt@hotmail.com ff74a61
mandatory classes that any wxWidgets code depends on (like wxString) and
alexjnewt@hotmail.com ff74a61
portability classes that abstract differences between platforms. wxBase can
alexjnewt@hotmail.com ff74a61
be used to develop console mode applications -- it does not require any GUI
alexjnewt@hotmail.com ff74a61
libraries or the X Window System.
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%package        docs
alexjnewt@hotmail.com ff74a61
Group:          Development/Libraries
alexjnewt@hotmail.com ff74a61
Summary:        Documentation for the wxGTK3 library
alexjnewt@hotmail.com 5d8810e
Requires:       %{name} = %{version}-%{release}
alexjnewt@hotmail.com ff74a61
Provides:       %{srcname}-docs = %{version}-%{release}
alexjnewt@hotmail.com ff74a61
BuildArch:      noarch
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%description docs
alexjnewt@hotmail.com ff74a61
This package provides documentation for the %{srcname} library.
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
a9e6f4a
%package        xmldocs
a9e6f4a
Group:          Development/Libraries
a9e6f4a
Summary:        XML Documentation for the wxGTK3 library
a9e6f4a
Requires:       %{name} = %{version}-%{release}
a9e6f4a
Provides:       %{srcname}-xmldocs = %{version}-%{release}
a9e6f4a
BuildArch:      noarch
a9e6f4a
a9e6f4a
%description xmldocs
a9e6f4a
This package provides XML documentation for the %{srcname} library.
a9e6f4a
a9e6f4a
alexjnewt@hotmail.com ff74a61
%prep
Mystro256 e523d93
%autosetup -n %{srcname}-%{version} -a 1 -p1
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
# patch some installed files to avoid conflicts with 2.8.*
alexjnewt@hotmail.com c239e24
sed -i -e 's|aclocal)|aclocal/wxwin3.m4)|' Makefile.in
alexjnewt@hotmail.com ff74a61
sed -i -e 's|wxstd.mo|wxstd3.mo|' Makefile.in
alexjnewt@hotmail.com ff74a61
sed -i -e 's|wxmsw.mo|wxmsw3.mo|' Makefile.in
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
# rename docs directory
alexjnewt@hotmail.com ff74a61
mv %{srcname}-%{version} html
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
# fix plugin dir for 64-bit
alexjnewt@hotmail.com 66df003
sed -i -e 's|/usr/lib\b|%{_libdir}|' wx-config.in configure
alexjnewt@hotmail.com ff74a61
sed -i -e 's|/lib|/%{_lib}|' src/unix/stdpaths.cpp
alexjnewt@hotmail.com ff74a61
0c7f9b3
# Trick configure into using pkg-config for cppunit-config
0c7f9b3
sed -i -e 's|$CPPUNIT_CONFIG --version|$CPPUNIT_CONFIG --modversion|' configure
0c7f9b3
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%build
alexjnewt@hotmail.com ff74a61
# likely still dereferences type-punned pointers
alexjnewt@hotmail.com ff74a61
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
alexjnewt@hotmail.com ff74a61
CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
alexjnewt@hotmail.com ff74a61
# fix unused-direct-shlib-dependency error:
alexjnewt@hotmail.com ff74a61
export LDFLAGS="-Wl,--as-needed"
0c7f9b3
# Trick configure into using pkg-config for cppunit-config
0c7f9b3
export CPPUNIT_CONFIG="/usr/bin/pkg-config cppunit"
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%configure \
alexjnewt@hotmail.com ff74a61
  --with-gtk=%{gtkver} \
alexjnewt@hotmail.com ff74a61
  --with-opengl \
alexjnewt@hotmail.com ff74a61
  --with-sdl \
alexjnewt@hotmail.com ff74a61
  --with-gnomeprint \
alexjnewt@hotmail.com ff74a61
  --with-libmspack \
alexjnewt@hotmail.com ff74a61
  --enable-intl \
alexjnewt@hotmail.com ff74a61
  --enable-no_deps \
alexjnewt@hotmail.com ff74a61
  --disable-rpath \
alexjnewt@hotmail.com e6c1c37
  --enable-ipv6
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
make %{?_smp_mflags}
alexjnewt@hotmail.com ff74a61
a9e6f4a
pushd docs/doxygen
a9e6f4a
WX_SKIP_DOXYGEN_VERSION_CHECK=1 ./regen.sh xml
a9e6f4a
popd
a9e6f4a
alexjnewt@hotmail.com ff74a61
%install
alexjnewt@hotmail.com ff74a61
%makeinstall
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
# install our multilib-aware wrapper
alexjnewt@hotmail.com 6a6f413
##Remove installed
alexjnewt@hotmail.com ff74a61
rm %{buildroot}%{_bindir}/wx-config
alexjnewt@hotmail.com c239e24
##Install new and symlink
alexjnewt@hotmail.com c239e24
install -p -D -m 755 %{SOURCE10} %{buildroot}%{_libexecdir}/%{name}/wx-config
alexjnewt@hotmail.com c239e24
ln -s ../..%{_libexecdir}/%{name}/wx-config %{buildroot}%{_bindir}/wx-config-3.0
Mystro256 8b9de37
touch %{buildroot}%{_bindir}/wx-config
alexjnewt@hotmail.com 6a6f413
##If gtk2
alexjnewt@hotmail.com 6a6f413
%if %{gtkver} == 2
alexjnewt@hotmail.com c239e24
sed -i -e 's|gtk3|gtk2|' %{buildroot}%{_libexecdir}/%{name}/wx-config
alexjnewt@hotmail.com 6a6f413
%endif
alexjnewt@hotmail.com 6a6f413
Mystro256 8b9de37
#Alternatives setup with wxrc
alexjnewt@hotmail.com c239e24
mv %{buildroot}%{_bindir}/wxrc* %{buildroot}%{_libexecdir}/%{name}
alexjnewt@hotmail.com c239e24
ln -s ../..%{_libexecdir}/%{name}/wxrc-3.0 %{buildroot}%{_bindir}/wxrc-3.0
Mystro256 8b9de37
touch %{buildroot}%{_bindir}/wxrc
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
# move bakefiles to avoid conflicts with 2.8.*
alexjnewt@hotmail.com c239e24
mkdir %{buildroot}%{_datadir}/bakefile/presets/wx3
alexjnewt@hotmail.com c239e24
mv %{buildroot}%{_datadir}/bakefile/presets/*.* %{buildroot}%{_datadir}/bakefile/presets/wx3
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%find_lang wxstd3
alexjnewt@hotmail.com ff74a61
%find_lang wxmsw3
alexjnewt@hotmail.com ff74a61
cat wxmsw3.lang >> wxstd3.lang
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%check
alexjnewt@hotmail.com ff74a61
pushd tests
alexjnewt@hotmail.com ff74a61
make %{?_smp_mflags} test
alexjnewt@hotmail.com ff74a61
popd
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%post -p /sbin/ldconfig
alexjnewt@hotmail.com ff74a61
%postun -p /sbin/ldconfig
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%post gl -p /sbin/ldconfig
alexjnewt@hotmail.com ff74a61
%postun gl -p /sbin/ldconfig
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%post media -p /sbin/ldconfig
alexjnewt@hotmail.com ff74a61
%postun media -p /sbin/ldconfig
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%post -n %{wxbasename} -p /sbin/ldconfig
alexjnewt@hotmail.com ff74a61
%postun -n %{wxbasename} -p /sbin/ldconfig
alexjnewt@hotmail.com ff74a61
Mystro256 8b9de37
%post devel
b6b7424
if [ -f %{_bindir}/wx-config ] && [ ! -h %{_bindir}/wx-config ] ; then
b6b7424
  rm %{_bindir}/wx-config
b6b7424
fi
Mystro256 8b9de37
%{_sbindir}/update-alternatives --install %{_bindir}/wx-config \
Mystro256 8b9de37
  wx-config %{_libexecdir}/%{name}/wx-config 3
Mystro256 8b9de37
%{_sbindir}/update-alternatives --install %{_bindir}/wxrc \
Mystro256 8b9de37
  wxrc %{_libexecdir}/%{name}/wxrc 3
Mystro256 8b9de37
Mystro256 8b9de37
%postun devel
Mystro256 8b9de37
if [ $1 -eq 0 ] ; then
Mystro256 8b9de37
  %{_sbindir}/update-alternatives --remove wx-config %{_libexecdir}/%{name}/wx-config
Mystro256 8b9de37
  %{_sbindir}/update-alternatives --remove wxrc %{_libexecdir}/%{name}/wxrc
Mystro256 8b9de37
fi
Mystro256 8b9de37
alexjnewt@hotmail.com ff74a61
%files -f wxstd3.lang
alexjnewt@hotmail.com ff74a61
%doc docs/changes.txt docs/gpl.txt docs/lgpl.txt docs/licence.txt
alexjnewt@hotmail.com ff74a61
%doc docs/licendoc.txt docs/preamble.txt docs/readme.txt
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_adv-*.so.*
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_aui-*.so.*
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_core-*.so.*
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_html-*.so.*
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_propgrid-*.so.*
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_qa-*.so.*
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_ribbon-*.so.*
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_richtext-*.so.*
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_stc-*.so.*
alexjnewt@hotmail.com ff74a61
%if %{gtkver} == 3
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_webview-*.so.*
alexjnewt@hotmail.com ff74a61
%endif
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_xrc-*.so.*
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%files devel
Mystro256 8b9de37
%ghost %{_bindir}/wx-config
Mystro256 8b9de37
%ghost %{_bindir}/wxrc
alexjnewt@hotmail.com ff74a61
%{_bindir}/wxrc-3.0
alexjnewt@hotmail.com c239e24
%{_bindir}/wx-config-3.0
alexjnewt@hotmail.com ff74a61
%{_includedir}/wx-3.0
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_*.so
alexjnewt@hotmail.com ff74a61
%{_libdir}/wx
alexjnewt@hotmail.com c239e24
%{_datadir}/aclocal/wxwin3.m4
Jeremy Newton 63d23b2
%{_datadir}/bakefile/presets/wx3
Jeremy ade3f6c
#Exclude some python bitecode
Jeremy ade3f6c
%exclude %{_datadir}/bakefile/presets/wx3/*.pyc
Jeremy ade3f6c
%exclude %{_datadir}/bakefile/presets/wx3/*.pyo
alexjnewt@hotmail.com c239e24
%{_libexecdir}/%{name}
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%files gl
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_gl-*.so.*
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%files media
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_gtk%{gtkver}u_media-*.so.*
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%files -n %{wxbasename}
alexjnewt@hotmail.com ff74a61
%doc docs/changes.txt docs/gpl.txt docs/lgpl.txt docs/licence.txt
alexjnewt@hotmail.com ff74a61
%doc docs/licendoc.txt docs/preamble.txt docs/readme.txt
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_baseu-*.so.*
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_baseu_net-*.so.*
alexjnewt@hotmail.com ff74a61
%{_libdir}/libwx_baseu_xml-*.so.*
alexjnewt@hotmail.com ff74a61
alexjnewt@hotmail.com ff74a61
%files docs
alexjnewt@hotmail.com ff74a61
%doc html
alexjnewt@hotmail.com ff74a61
a9e6f4a
%files xmldocs
a9e6f4a
%doc docs/doxygen/out/xml/*
a9e6f4a
alexjnewt@hotmail.com ff74a61
%changelog
Mystro256 7793bd7
* Tue Oct 04 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-26
Mystro256 7793bd7
- Memory leak in last patch, add patch to fix it
Mystro256 7793bd7
- Change last patch to 3.0 branch for consistency
Mystro256 7793bd7
Mystro256 e523d93
* Tue Oct 04 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-25
Mystro256 e523d93
- Add patch to fix bug 1381767
Mystro256 e523d93
- Clean up spec file with autosetup
Mystro256 e523d93
a2cf677
* Sat Sep 24 2016 Scott Talbert <swt@techie.net> - 3.0.2-24
a2cf677
- Add patch to fix crash in wxGCDC::DrawEllipticArc()
a2cf677
b6b7424
* Mon Sep 19 2016 Scott Talbert <swt@techie.net> - 3.0.2-23
b6b7424
- Fix alternatives implementation
b6b7424
cb22fbe
* Mon Sep 19 2016 Scott Talbert <swt@techie.net> - 3.0.2-22
cb22fbe
- Add patch to fix runtime link error due to previous patches
cb22fbe
e712f1c
* Tue Sep 13 2016 Scott Talbert <swt@techie.net> - 3.0.2-21
e712f1c
- Add patch to resolve wxGetKeyState() crash on Wayland (#1266743)
e712f1c
- Add patch to fix wxFontEnumerator stop function
e712f1c
- Add patch to fix wxNativeFontInfo::InitFromFont()
e712f1c
Mystro256 8b9de37
* Sun Aug 28 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-20
Mystro256 8b9de37
- Fix alternatives with wxGTK (#1077718)
Mystro256 8b9de37
263c5a5
* Mon Apr  4 2016 Tom Callaway <tcallawa@redhat.com> - 3.0.2-19
263c5a5
- Add patch to resolve window sizing issue with gtk 3.19+
263c5a5
5c3df27
* Sun Mar 20 2016 Scott Talbert <swt@techie.net> - 3.0.2-18
5c3df27
- Add patch for wxEVT_MEDIA_XXX event types (for Phoenix)
5c3df27
92c277c
* Wed Feb 24 2016 Scott Talbert <swt@techie.net> - 3.0.2-17
92c277c
- Add patch to resolve issue with wxStaticText growing, fixes RH#1282142
92c277c
- Add patches to resolve issues under Wayland with window sizing, RH#1294229
92c277c
a9e6f4a
* Tue Feb 23 2016 Scott Talbert <swt@techie.net> - 3.0.2-16
a9e6f4a
- Add -xmldocs subpackage containing XML documentation (needed for Phoenix)
a9e6f4a
0c7f9b3
* Tue Feb 23 2016 Scott Talbert <swt@techie.net> - 3.0.2-15
0c7f9b3
- Add GCC6 patches for STC and strings tests
0c7f9b3
- Adapt cppunit to use pkg-config (cppunit-config has been removed in F24)
0c7f9b3
- Fixes FTBFS in F24 Rawhide, RH#1308244
0c7f9b3
Jeremy ade3f6c
* Mon Feb 22 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-14
Jeremy ade3f6c
- Should actually fix RH#1294712
Jeremy ade3f6c
01a7868
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-13
01a7868
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
01a7868
Jeremy Newton 63d23b2
* Thu Dec 31 2015 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-12
Jeremy Newton 63d23b2
- Remove python artifacts in bakefile dir, causes multilib devel conflict RH#1294712
Jeremy Newton 63d23b2
- Fix package devel not owning created wx3 backfile preset dir
Jeremy Newton 63d23b2
- Add support for MIPS to wx-config RH#1294895
Jeremy Newton 63d23b2
- Wayland Patch
Jeremy Newton 63d23b2
Jeremy Newton 63d23b2
* Thu Nov 5 2015 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-11
Jeremy Newton 359a25b
- Added patch to fix checkbox and radio button issues for f21 onwards
Jeremy Newton 359a25b
Jeremy Newton 63d23b2
* Sun Nov 1 2015 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-10
Jeremy Newton 077fb78
- Removed depreciated/retired libgnomeprintui22
Jeremy Newton 077fb78
Jeremy Newton 63d23b2
* Sat Aug 22 2015 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-9
Jeremy Newton 94da280
- Include spinbutton patch from upstream
Jeremy Newton 94da280
Jeremy Newton 63d23b2
* Mon Jun 22 2015 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-8
Jeremy Newton 39885d3
- Include some upstream patches to fix crashes and warnings
Jeremy Newton 39885d3
d9af07c
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-7
d9af07c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d9af07c
dd37920
* Thu May 28 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.2-6
dd37920
- Don't abort on ABI check, backport from wxGTK
dd37920
26939d0
* Mon May 04 2015 Jason L Tibbitts III <tibbs@math.uh.edu> - 3.0.2-5
26939d0
- Indicate that this package bundles scintilla 3.2.1.
26939d0
Jeremy Newton 63d23b2
* Thu Feb 26 2015 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-4
Jeremy Newton 94da280
- Bump to rebuild, fix bug #1210239
744d50f
Jeremy Newton 63d23b2
* Thu Feb 26 2015 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-3
Jeremy Newton 25637af
- Bump to rebuild for gcc 5.0 to fix some issues
Jeremy Newton 25637af
Jeremy Newton 63d23b2
* Tue Nov 04 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-2
alexjnewt@hotmail.com c239e24
- Moving things around again, hopefully fixing RH#1124402
alexjnewt@hotmail.com c239e24
- Adding symlinks to avoid breaking things
alexjnewt@hotmail.com c239e24
Jeremy Newton 63d23b2
* Tue Nov 04 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.2-1
alexjnewt@hotmail.com 72aded6
- Update to 3.0.2
alexjnewt@hotmail.com 72aded6
5be127b
* Mon Nov 03 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 3.0.1-5
5be127b
- Add aarch64 and ppc64le to list of 64-bit architectures
5be127b
Jeremy Newton 63d23b2
* Tue Sep 30 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.1-4
alexjnewt@hotmail.com 66df003
- Add conflict with wxgtk-devel again, temporary fix until it can be resolved
alexjnewt@hotmail.com 66df003
Jeremy Newton 63d23b2
* Tue Sep 30 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.1-3
alexjnewt@hotmail.com 6a6f413
- Avoid gtk warnings, fixes RH#1147995
alexjnewt@hotmail.com 6a6f413
- Moving wxrc and wx-config to libexec instead of renaming
alexjnewt@hotmail.com 6a6f413
- Misc changes and spec error fixes, fixes RH#1124402
e711fbf
Jeremy Newton 63d23b2
* Sat Jul 5 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.1-1
alexjnewt@hotmail.com b365113
- Bump to 3.0.1 RH#1076617
alexjnewt@hotmail.com 992ca3a
Jeremy Newton 63d23b2
* Tue Mar 18 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.0-6
alexjnewt@hotmail.com e6c1c37
- Removed disable-catch_segvs, see RH#1076617
alexjnewt@hotmail.com e6c1c37
Jeremy Newton 63d23b2
* Mon Mar 17 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.0-5
alexjnewt@hotmail.com bc8166e
- Renable combat28 - without it causes bugs RH#1076617 and a few others
alexjnewt@hotmail.com bc8166e
Jeremy Newton 63d23b2
* Wed Feb 19 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.0-4
alexjnewt@hotmail.com ff74a61
- Fixed GTK3 bug with wx-config
alexjnewt@hotmail.com ff74a61
- Fixed a unused-direct-shlib-dependency error
alexjnewt@hotmail.com ff74a61
Jeremy Newton 63d23b2
* Mon Feb 17 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.0-3
alexjnewt@hotmail.com ff74a61
- Added patch to avoid build fail on gtk 3.10+
alexjnewt@hotmail.com ff74a61
- Reverted patching to make devel package compatible with wxGTK-devel
alexjnewt@hotmail.com ff74a61
- Added combatibility for RHEL 6+
alexjnewt@hotmail.com ff74a61
- Changed all mention of GTK3 and GTK2 to GTK for consistency
alexjnewt@hotmail.com ff74a61
Jeremy Newton 63d23b2
* Mon Feb 10 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.0-2
alexjnewt@hotmail.com ff74a61
- Changed to build against gtk3
alexjnewt@hotmail.com ff74a61
- Add webkit to build requires
alexjnewt@hotmail.com ff74a61
- Removed patching to make devel package compatible with wxGTK-devel
alexjnewt@hotmail.com ff74a61
- Disable 2.8.* combatibility (redundant functionality)
alexjnewt@hotmail.com ff74a61
Jeremy Newton 63d23b2
* Sat Jan 4 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 3.0.0-1
alexjnewt@hotmail.com ff74a61
- Initial build of wxwidgets version 3, mostly based on wxGTK spec