ALT Linux Bugzilla
– Attachment 6655 Details for
Bug 31762
Нужна версия с поддержкой gtk2
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Спек fedora
compat-wxGTK3-gtk2.spec (text/x-rpm-spec), 11.56 KB, created by
Антон Мидюков
on 2016-02-28 09:33:57 MSK
(
hide
)
Description:
Спек fedora
Filename:
MIME Type:
Creator:
Антон Мидюков
Created:
2016-02-28 09:33:57 MSK
Size:
11.56 KB
patch
obsolete
>%bcond_without compat > >%global srcname wxWidgets >%if %with compat >%global wxwidgets compat-wxWidgets-gtk2 >%global wxgtkname compat-wxGTK3-gtk2 >%global wxbasename compat-wxBase3-gtk2 >%else >%global wxwidgets %{srcname} >%global wxgtkname wxGTK3 >%global wxbasename wxBase3 >%endif >#RHEL 6 does not have gtk3 >#RHEL prior to 6 is unsupported by this package >%if %with compat || 0%{?el6} >%global gtkver 2 >%else >%global gtkver 3 >%endif > >Name: %{wxgtkname} >Version: 3.0.2 >Release: 3.1%{?dist} >Summary: GTK%{gtkver} port of the wxWidgets GUI library >License: wxWidgets >Group: System Environment/Libraries >URL: http://www.wxwidgets.org/ >Source0: http://downloads.sf.net/wxwindows/%{srcname}-%{version}.tar.bz2 >Source1: http://downloads.sf.net/wxwindows/%{srcname}-%{version}-docs-html.tar.bz2 >Source10: wx-config > >BuildRequires: gtk%{gtkver}-devel >%if %{gtkver} == 3 >BuildRequires: webkitgtk3-devel >%else >BuildRequires: webkitgtk-devel >%endif >BuildRequires: zlib-devel >BuildRequires: libpng-devel >BuildRequires: libjpeg-devel >BuildRequires: libtiff-devel >BuildRequires: expat-devel >BuildRequires: SDL-devel >BuildRequires: libgnomeprintui22-devel >BuildRequires: libGLU-devel >BuildRequires: libSM-devel >BuildRequires: gstreamer-plugins-base-devel >BuildRequires: GConf2-devel >BuildRequires: gettext >BuildRequires: cppunit-devel >BuildRequires: libmspack-devel > >Provides: %{wxwidgets} = %{version}-%{release} >Requires: %{wxbasename}%{?_isa} = %{version}-%{release} > >%if %with compat >%global wxversion %{version}-gtk%{gtkver} >%global wxrelease %(echo %{wxversion} |sed 's/\\([0-9]*\\.[0-9]*\\)\\.[0-9]*/\\1/') >%global wxrelease_nodot %(echo %{wxrelease} |sed 's/\\.//g') >%global wxsubversion %{version}.${wx_subrelease_number}-gtk%{gtkver} >%global mfl WX_RELEASE=%{wxrelease} WX_RELEASE_NODOT=%{wxrelease_nodot} WX_VERSION=%{wxversion} >%endif > >%description >wxWidgets is the GTK port of the C++ cross-platform wxWidgets >GUI library, offering classes for all common GUI controls as well as a >comprehensive set of helper classes for most common application tasks, >ranging from networking to HTML display and image manipulation. >%if %with compat >This is a version linked with old GTK version for compatibility with >programs that don't work with more recent GTK yet. >%endif > > >%package devel >Group: Development/Libraries >Summary: Development files for the wxGTK3 library >Requires: %{name}%{?_isa} = %{version}-%{release} >Requires: %{name}-gl = %{version}-%{release} >Requires: %{name}-media = %{version}-%{release} >Requires: %{wxbasename} = %{version}-%{release} >Requires: gtk%{gtkver}-devel >Requires: libGLU-devel >Provides: %{wxwidgets}-devel = %{version}-%{release} > >%description devel >This package include files needed to link with the wxGTK3 library. >wxWidgets is the GTK port of the C++ cross-platform wxWidgets >GUI library, offering classes for all common GUI controls as well as a >comprehensive set of helper classes for most common application tasks, >ranging from networking to HTML display and image manipulation. >%if %with compat >This is a version linked with old GTK version for compatibility with >programs that don't work with more recent GTK yet. > >Do not use this for new packages! >%endif > > >%package gl >Summary: OpenGL add-on for the wxWidgets library >Group: System Environment/Libraries >Requires: %{name}%{?_isa} = %{version}-%{release} > >%description gl >OpenGL (a 3D graphics API) add-on for the wxWidgets library. >wxWidgets is the GTK port of the C++ cross-platform wxWidgets >GUI library, offering classes for all common GUI controls as well as a >comprehensive set of helper classes for most common application tasks, >ranging from networking to HTML display and image manipulation. >%if %with compat >This is a version linked with old GTK version for compatibility with >programs that don't work with more recent GTK yet. >%endif > > >%package media >Summary: Multimedia add-on for the wxWidgets library >Group: System Environment/Libraries >Requires: %{name}%{?_isa} = %{version}-%{release} > >%description media >Multimedia add-on for the wxWidgets library. >wxWidgets is the GTK port of the C++ cross-platform wxWidgets >GUI library, offering classes for all common GUI controls as well as a >comprehensive set of helper classes for most common application tasks, >ranging from networking to HTML display and image manipulation. >%if %with compat >This is a version linked with old GTK version for compatibility with >programs that don't work with more recent GTK yet. >%endif > > >%package -n %{wxbasename} >Summary: Non-GUI support classes from the wxWidgets library >Group: System Environment/Libraries > >%description -n %{wxbasename} >Every wxWidgets application must link against this library. It contains >mandatory classes that any wxWidgets code depends on (like wxString) and >portability classes that abstract differences between platforms. wxBase can >be used to develop console mode applications -- it does not require any GUI >libraries or the X Window System. > > >%package docs >Group: Development/Libraries >Summary: Documentation for the wxGTK3 library >Requires: %{name} = %{version}-%{release} >Provides: %{wxwidgets}-docs = %{version}-%{release} >BuildArch: noarch > >%description docs >This package provides documentation for the %{srcname} library. >%if %with compat >This is a version linked with old GTK version for compatibility with >programs that don't work with more recent GTK yet. >%endif > > >%prep >%setup -q -n %{srcname}-%{version} -a 1 > ># patch some installed files to avoid conflicts with 2.8.* >sed -i -e 's|aclocal)|aclocal/wxwin%{wxrelease_nodot}.m4)|' Makefile.in >sed -i -e 's|wxstd.mo|wxstd%{wxrelease_nodot}.mo|' Makefile.in >sed -i -e 's|wxmsw.mo|wxmsw%{wxrelease_nodot}.mo|' Makefile.in > ># rename docs directory >mv %{srcname}-%{version} html > > ># fix plugin dir for 64-bit >sed -i -e 's|/usr/lib\b|%{_libdir}|' wx-config.in configure >sed -i -e 's|/lib|/%{_lib}|' src/unix/stdpaths.cpp > > >%if %with compat >sed 's/WX_RELEASE=.*/WX_RELEASE=%{wxrelease}/' -i configure >sed 's/WX_VERSION=.*/WX_VERSION=%{wxversion}/' -i configure >sed 's/WX_SUBVERSION=.*/WX_SUBVERSION=%{wxsubversion}/' -i configure >sed "s/WX_VERSION_TAG=.*/WX_VERSION_TAG=`echo WX\${lib_unicode_suffix}\${WX_LIB_FLAVOUR}_%(echo %{wxrelease} |sed 's/-.*//') | tr '[[a-z]]' '[[A-Z]]'`/" -i configure >%endif > >%build ># likely still dereferences type-punned pointers >CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" >CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ># fix unused-direct-shlib-dependency error: >export LDFLAGS="-Wl,--as-needed" > >%configure \ > --with-gtk=%{gtkver} \ > --with-opengl \ > --with-sdl \ > --with-gnomeprint \ > --with-libmspack \ > --enable-intl \ > --enable-no_deps \ > --disable-rpath \ > --enable-ipv6 > >make %{?_smp_mflags} %{?mfl} > > >%install >%makeinstall %{mfl} > ># install our multilib-aware wrapper >##Remove installed >rm %{buildroot}%{_bindir}/wx-config >##Install new and symlink >install -p -D -m 755 %{SOURCE10} %{buildroot}%{_libexecdir}/%{name}/wx-config >ln -s ../..%{_libexecdir}/%{name}/wx-config %{buildroot}%{_bindir}/wx-config-%{wxrelease} >##If gtk2 >%if %{gtkver} == 2 >sed -i -e 's|gtk3|gtk2|' %{buildroot}%{_libexecdir}/%{name}/wx-config >%endif >sed -i -e 's|version=.*|version=%{wxrelease}|' %{buildroot}%{_libexecdir}/%{name}/wx-config > >#Move wxrc to libexec and symlink (avoid conflict with wxGTK) >mv %{buildroot}%{_bindir}/wxrc* %{buildroot}%{_libexecdir}/%{name} >ln -s ../..%{_libexecdir}/%{name}/wxrc-%{wxrelease} %{buildroot}%{_bindir}/wxrc-%{wxrelease} > ># move bakefiles to avoid conflicts with 2.8.* >mkdir %{buildroot}%{_datadir}/bakefile/presets/wx%{wxrelease_nodot} >mv %{buildroot}%{_datadir}/bakefile/presets/*.* %{buildroot}%{_datadir}/bakefile/presets/wx%{wxrelease_nodot} > >%find_lang wxstd%{wxrelease_nodot} >%find_lang wxmsw%{wxrelease_nodot} >cat wxmsw%{wxrelease_nodot}.lang >> wxstd%{wxrelease_nodot}.lang > >%check >pushd tests >make %{?_smp_mflags} test %{?mfl} >popd > >%post -p /sbin/ldconfig >%postun -p /sbin/ldconfig > >%post gl -p /sbin/ldconfig >%postun gl -p /sbin/ldconfig > >%post media -p /sbin/ldconfig >%postun media -p /sbin/ldconfig > >%post -n %{wxbasename} -p /sbin/ldconfig >%postun -n %{wxbasename} -p /sbin/ldconfig > >%files -f wxstd%{wxrelease_nodot}.lang >%doc docs/changes.txt docs/gpl.txt docs/lgpl.txt docs/licence.txt >%doc docs/licendoc.txt docs/preamble.txt docs/readme.txt >%{_libdir}/libwx_gtk%{gtkver}u_adv-*.so.* >%{_libdir}/libwx_gtk%{gtkver}u_aui-*.so.* >%{_libdir}/libwx_gtk%{gtkver}u_core-*.so.* >%{_libdir}/libwx_gtk%{gtkver}u_html-*.so.* >%{_libdir}/libwx_gtk%{gtkver}u_propgrid-*.so.* >%{_libdir}/libwx_gtk%{gtkver}u_qa-*.so.* >%{_libdir}/libwx_gtk%{gtkver}u_ribbon-*.so.* >%{_libdir}/libwx_gtk%{gtkver}u_richtext-*.so.* >%{_libdir}/libwx_gtk%{gtkver}u_stc-*.so.* >%{_libdir}/libwx_gtk%{gtkver}u_webview-*.so.* >%{_libdir}/libwx_gtk%{gtkver}u_xrc-*.so.* > >%files devel >%{_bindir}/wxrc-%{wxrelease} >%{_bindir}/wx-config-%{wxrelease} >%{_includedir}/wx-%{wxrelease} >%{_libdir}/libwx_*.so >%{_libdir}/wx >%{_datadir}/aclocal/wxwin%{wxrelease_nodot}.m4 >%{_datadir}/bakefile/presets/wx%{wxrelease_nodot}/*.* >%{_libexecdir}/%{name} > >%files gl >%{_libdir}/libwx_gtk%{gtkver}u_gl-*.so.* > >%files media >%{_libdir}/libwx_gtk%{gtkver}u_media-*.so.* > >%files -n %{wxbasename} >%doc docs/changes.txt docs/gpl.txt docs/lgpl.txt docs/licence.txt >%doc docs/licendoc.txt docs/preamble.txt docs/readme.txt >%{_libdir}/libwx_baseu-*.so.* >%{_libdir}/libwx_baseu_net-*.so.* >%{_libdir}/libwx_baseu_xml-*.so.* > >%files docs >%doc html > >%changelog >* Thu Mar 19 2015 Lubomir Rintel <lkundrak@v3.sk> - 3.0.2-3.1 >- Modify for GTK2 compatibility build, needed for KiCAD > >* Thu Feb 26 2015 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.2-3 >- Bump to rebuild for gcc 5.0 to fix some issues > >* Tue Nov 04 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.2-2 >- Moving things around again, hopefully fixing RH#1124402 >- Adding symlinks to avoid breaking things > >* Tue Nov 04 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.2-1 >- Update to 3.0.2 > >* Mon Nov 03 2014 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 3.0.1-5 >- Add aarch64 and ppc64le to list of 64-bit architectures > >* Tue Sep 30 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.1-4 >- Add conflict with wxgtk-devel again, temporary fix until it can be resolved > >* Tue Sep 30 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.1-3 >- Avoid gtk warnings, fixes RH#1147995 >- Moving wxrc and wx-config to libexec instead of renaming >- Misc changes and spec error fixes, fixes RH#1124402 > >* Sat Jul 5 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.1-1 >- Bump to 3.0.1 RH#1076617 > >* Tue Mar 18 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.0-6 >- Removed disable-catch_segvs, see RH#1076617 > >* Mon Mar 17 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.0-5 >- Renable combat28 - without it causes bugs RH#1076617 and a few others > >* Wed Feb 19 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.0-4 >- Fixed GTK3 bug with wx-config >- Fixed a unused-direct-shlib-dependency error > >* Mon Feb 17 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.0-3 >- Added patch to avoid build fail on gtk 3.10+ >- Reverted patching to make devel package compatible with wxGTK-devel >- Added combatibility for RHEL 6+ >- Changed all mention of GTK3 and GTK2 to GTK for consistency > >* Mon Feb 10 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.0-2 >- Changed to build against gtk3 >- Add webkit to build requires >- Removed patching to make devel package compatible with wxGTK-devel >- Disable 2.8.* combatibility (redundant functionality) > >* Sat Jan 4 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.0-1 >- Initial build of wxwidgets version 3, mostly based on wxGTK spec
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 31762
: 6655 |
6737
|
6743