Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 99e31f2cf8
Fetching contributors…

Cannot retrieve contributors at this time

executable file 105 lines (83 sloc) 2.24 KB
%define pref /usr
%define ver 2.8.12
%define ver2 2.8
%define rel 0
Summary: The SciTech MGL port of the wxWindows library
Name: wxMGL
Version: %{ver}
Release: %{rel}
License: wxWindows Licence
Group: System/Libraries
Source: wxMGL-%{ver}.tar.bz2
Packager: Vaclav Slavik <>
Prefix: %{pref}
BuildRoot: /var/tmp/%{name}-root
# all packages providing an implementation of wxWindows library (regardless of
# the toolkit used) should provide the (virtual) wxwin package, this makes it
# possible to require wxwin instead of requiring "wxgtk or wxmotif or wxuniv..."
Provides: wxwin
Provides: libwx_mgl-%{ver2}.so
Requires: mgl
BuildRequires: mgl-devel
wxWindows is a free C++ library for cross-platform GUI development.
With wxWindows, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.
%package devel
Summary: The SciTech MGL port of the wxWindows library
Group: Development/Libraries
Requires: wxMGL = %{ver}
%description devel
Header files for wxMGL, the SciTech MGL port of the wxWindows library.
%package static
Summary: wxMGL static libraries
Group: Development/Libraries
%description static
Static libraries for wxMGL. You need them if you want to link statically against wxMGL.
%setup -n wxMGL-%{ver}
if [ "$SMP" != "" ]; then
export MAKE="make -j$SMP"
export MAKE="make"
mkdir obj-shared
cd obj-shared
../configure --prefix=%{pref} --with-mgl --disable-fs_inet
cd ..
mkdir obj-static
cd obj-static
../configure --prefix=%{pref} --disable-shared --with-mgl --disable-fs_inet
cd ..
(cd obj-static; make prefix=$RPM_BUILD_ROOT%{pref} install)
(cd obj-shared; make prefix=$RPM_BUILD_ROOT%{pref} install)
%find_lang wxstd
%files -f wxstd.lang
%doc COPYING.LIB *.txt
%files devel
%dir %{_includedir}/wx-*
%dir %{_libdir}/wx
%files static
%defattr (-,root,root)
Jump to Line
Something went wrong with that request. Please try again.