From 9ac3e73d08138a8e5faf3063fec8a8464e89f8d7 Mon Sep 17 00:00:00 2001 From: cvsextras Date: Mon, 8 Nov 2004 05:32:38 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20wxGTK-2?= =?UTF-8?q?.4.1-0.fdr.4.rh80.src.rpm=202.4.1-0.fdr.4=20-=20Borrow=20Matthi?= =?UTF-8?q?as=20Saou's=20-gl=20and=20-stc=20subpackages.=202.4.1-0.fdr.3?= =?UTF-8?q?=20-=20Removed=20libwx=5Fgtk2=5Fxrc*so*=20from=20wxGTK2/wxGTK2-?= =?UTF-8?q?devel=20packages=202.4.1-0.fdr.2=20-=20Removed=20*-devel=20post?= =?UTF-8?q?un=20scriptlets=20(from=20Ville=20Skytt=C3=A4)=202.4.1-0.fdr.1?= =?UTF-8?q?=20-=20Updated=20to=202.4.1=202.4.0-0.fdr.7=20-=20Added=20xrc?= =?UTF-8?q?=20contrib=20in=20separate=20packages=202.4.0-0.fdr.6=20-=20Cor?= =?UTF-8?q?rected=20typo=20in=20postun=20devel=202.4.0-0.fdr.5=20-=20Make?= =?UTF-8?q?=20-devel=20packages=20require=20the=20corresponding=20GTK=20de?= =?UTF-8?q?vel=20package.=20-=20Save=20.spec=20in=20UTF-8.=20-=20Fixes=20f?= =?UTF-8?q?rom=20Dams:=20-=20Don't=20build=20--with-unicode,=20it=20breaks?= =?UTF-8?q?=20stuff=20(as=20was=20already=20noted=20by=20=20=20=20=20Dams)?= =?UTF-8?q?.=20-=20Don't=20remove=20wx-config=20symlinks=20on=20upgrades.?= =?UTF-8?q?=20-=20Remove=20duplicates=20from=20docs.=202.4.0-0.fdr.4=20-?= =?UTF-8?q?=20Split=20into=20subpackages,=20spec=20file=20rewrite.=20-=20U?= =?UTF-8?q?se=20bzipped=20upstream=20tarball.=20-=20Clean=20up=20BuildRequ?= =?UTF-8?q?irement=20versions.=202.4.0-0.fdr.3=20-=20Now=20build/include?= =?UTF-8?q?=20both=20gtk/gtk2=20libs=20-=20buildroot=20->=20RPM=5FBUILD=5F?= =?UTF-8?q?ROOT=20Mon=20Mar=2003=202003=20Dams=20=20-=20I?= =?UTF-8?q?nitial=20build.=20-=20Disable=20unicode=20as=20it=20breaks=20lm?= =?UTF-8?q?ule=20-=20use=20the=20/usr/lib/rpm/redhat/find-lang.sh=20=20=20?= =?UTF-8?q?=20=20/var/tmp/wxGTK-2.4.1-0.fdr.4.rh80-root-temp1=20macro=20fo?= =?UTF-8?q?r=20locale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 1 + sources | 1 + wxGTK.spec | 309 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 311 insertions(+) create mode 100644 wxGTK.spec diff --git a/.cvsignore b/.cvsignore index e69de29..1fd1eb6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +wxGTK-2.4.1.tar.bz2 diff --git a/sources b/sources index e69de29..70e10d1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +937c299de177990908770989206b7d8c wxGTK-2.4.1.tar.bz2 diff --git a/wxGTK.spec b/wxGTK.spec new file mode 100644 index 0000000..358c998 --- /dev/null +++ b/wxGTK.spec @@ -0,0 +1,309 @@ +Name: wxGTK +Version: 2.4.1 +Release: 0.fdr.4.rh80 +Epoch: 0 +Summary: %{name} is the GTK+ port of the wxWindows GUI library +License: BSD +Group: System Environment/Libraries +URL: http://www.wxwindows.org/ +Source0: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gtk+-devel gtk2-devel pkgconfig zlib-devel >= 0:1.1.4 +BuildRequires: libpng-devel libjpeg-devel libtiff-devel +Requires: %{name}-common = %{epoch}:%{version}-%{release} + +%description +wxWindows/GTK is the GTK+ (1.2) port of the C++ cross-platform wxWindows +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. + +%package devel +Group: Development/Libraries +Summary: Development files for the wxGTK library +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: %{name}-common-devel = %{epoch}:%{version}-%{release} +Requires: gtk+-devel +Conflicts: %{name}2-devel + +%description devel +This package includes files needed to link with the wxGTK library. + +%package -n %{name}2 +Group: System Environment/Libraries +Summary: %{name}2 is the GTK2 port of the wxWindows GUI library +Requires: %{name}-common = %{epoch}:%{version}-%{release} + +%description -n %{name}2 +wxWindows/GTK2 is the GTK2 port of the C++ cross-platform wxWindows +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. + +%package -n %{name}2-devel +Group: Development/Libraries +Summary: Development files for the wxGTK2 library +Requires: %{name}2 = %{epoch}:%{version}-%{release} +Requires: %{name}-common-devel = %{epoch}:%{version}-%{release} +Requires: gtk2-devel +Conflicts: %{name}-devel + +%description -n %{name}2-devel +This package include files needed to link with the wxGTK2 library. + +%package common +Group: System Environment/Libraries +Summary: wxGTK* common files + +%description common +Common files for wxWindows/GTK1 and GTK2. + +%package common-devel +Group: Development/Libraries +Summary: wxGTK* common development files + +%description common-devel +Common development files for wxWindows/GTK1 and GTK2. + +%package gl +Summary: OpenGL add-on for the wxWindows library +Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description gl +%{summary}. + +%package -n %{name}2-gl +Summary: OpenGL add-on for the wxWindows library +Group: System Environment/Libraries +Requires: %{name}2 = %{epoch}:%{version}-%{release} + +%description -n %{name}2-gl +%{summary}. + +%package stc +Summary: Styled text control add-on for the wxWindows library +Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description stc +Styled text control add-on for wxGTK. Based on the Scintillia project. + +%package -n %{name}2-stc +Summary: Styled text control add-on for the wxWindows library +Group: System Environment/Libraries +Requires: %{name}2 = %{epoch}:%{version}-%{release} + +%description -n %{name}2-stc +Styled text control add-on for wxGTK2. Based on the Scintillia project. + +%package xrc +Summary: The XML-based resource system for the wxWindows library +Group: System Environment/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description xrc +The XML-based resource system, known as XRC, allows user interface +elements such as dialogs, menu bars and toolbars, to be stored in +text files and loaded into the application at run-time. +This package is for the GTK 1.2 backend + +%package -n %{name}2-xrc +Summary: The XML-based resource system for the wxWindows library +Group: System Environment/Libraries +Requires: %{name}2 = %{epoch}:%{version}-%{release} + +%description -n %{name}2-xrc +The XML-based resource system, known as XRC, allows user interface +elements such as dialogs, menu bars and toolbars, to be stored in +text files and loaded into the application at run-time. +This package is for the GTK2 backend. + + +%prep +%setup -q -n %{name}-%{version} + + +%build +mkdir _gtk1 _gtk2 +export APPEXTRACFLAGS="$RPM_OPT_FLAGS" +export APPEXTRACXXFLAGS="$RPM_OPT_FLAGS" + +cd _gtk1 +../configure \ + --prefix=%{_prefix} \ + --with-opengl \ + --enable-shared \ + --enable-soname +make %{?_smp_mflags} +make %{?_smp_mflags} -C contrib/src/stc +make %{?_smp_mflags} -C contrib/src/xrc + +cd ../_gtk2 +../configure \ + --prefix=%{_prefix} \ + --with-opengl \ + --enable-shared \ + --enable-soname \ + --enable-gtk2 +make %{?_smp_mflags} +make %{?_smp_mflags} -C contrib/src/stc +make %{?_smp_mflags} -C contrib/src/xrc + +cd .. + +# ----------------------------------------------------------------------------- + +%install +rm -rf $RPM_BUILD_ROOT + +cd _gtk1 +%makeinstall +%makeinstall -C contrib/src/stc +%makeinstall -C contrib/src/xrc +cd ../_gtk2 +%makeinstall +%makeinstall -C contrib/src/stc +%makeinstall -C contrib/src/xrc +cd .. + +%find_lang wxstd + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%post -n %{name}2 -p /sbin/ldconfig +%postun -n %{name}2 -p /sbin/ldconfig + +%post devel +ln -sf $(basename %{_bindir}/wxgtk-*-config) %{_bindir}/wx-config + +%post -n %{name}2-devel +ln -sf $(basename %{_bindir}/wxgtk2*-config) %{_bindir}/wx-config + +%post gl -p /sbin/ldconfig +%postun gl -p /sbin/ldconfig + +%post -n %{name}2-gl -p /sbin/ldconfig +%postun -n %{name}2-gl -p /sbin/ldconfig + +%post stc -p /sbin/ldconfig +%postun stc -p /sbin/ldconfig + +%post -n %{name}2-stc -p /sbin/ldconfig +%postun -n %{name}2-stc -p /sbin/ldconfig + +%post xrc -p /sbin/ldconfig +%postun xrc -p /sbin/ldconfig + +%post -n %{name}2-xrc -p /sbin/ldconfig +%postun -n %{name}2-xrc -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%{_libdir}/libwx_gtk-*.so.* + +%files devel +%defattr(-,root,root,-) +%ghost %{_bindir}/wx-config +%{_bindir}/wxgtk-*-config +%{_libdir}/libwx_gtk-*.so +%{_libdir}/wx/include/gtk-* + +%files -n %{name}2 +%defattr(-,root,root,-) +%{_libdir}/libwx_gtk2-*.so.* + +%files -n %{name}2-devel +%defattr(-,root,root,-) +%ghost %{_bindir}/wx-config +%{_bindir}/wxgtk2*-config +%{_libdir}/libwx_gtk2-*.so +%{_libdir}/wx/include/gtk2* + +%files common -f wxstd.lang +%defattr(-,root,root,-) +%doc CHANGES*.txt COPYING.LIB LICENCE.txt README*.txt +%dir %{_libdir}/wx +%{_datadir}/wx + +%files common-devel +%defattr(-,root,root,-) +%{_datadir}/aclocal/* +%{_includedir}/wx +%dir %{_libdir}/wx/include + +%files gl +%defattr(-,root,root,-) +%{_libdir}/libwx_gtk_gl-*.so* + +%files -n %{name}2-gl +%defattr(-,root,root,-) +%{_libdir}/libwx_gtk2_gl-*.so* + +%files stc +%defattr(-,root,root,-) +%doc contrib/src/stc/README.txt +%{_libdir}/libwx_gtk_stc-*.so* + +%files -n %{name}2-stc +%defattr(-,root,root,-) +%doc contrib/src/stc/README.txt +%{_libdir}/libwx_gtk2_stc-*.so* + +%files xrc +%defattr(-,root,root,-) +%{_libdir}/libwx_gtk_xrc-*.so* + +%files -n %{name}2-xrc +%defattr(-,root,root,-) +%{_libdir}/libwx_gtk2_xrc-*.so* + + +%changelog +* Mon Aug 4 2003 Ville Skyttä - 0:2.4.1-0.fdr.4 +- Borrow Matthias Saou's -gl and -stc subpackages. + +* Mon Jun 16 2003 Dams 0:2.4.1-0.fdr.3 +- Removed libwx_gtk2_xrc*so* from wxGTK2/wxGTK2-devel packages + +* Sun Jun 15 2003 Dams 0:2.4.1-0.fdr.2 +- Removed *-devel postun scriptlets (from Ville Skyttä) + +* Sat Jun 14 2003 Dams 0:2.4.1-0.fdr.1 +- Updated to 2.4.1 + +* Wed May 28 2003 Dams 0:2.4.0-0.fdr.7 +- Added xrc contrib in separate packages + +* Wed May 21 2003 Dams 0:2.4.0-0.fdr.6 +- Corrected typo in postun devel + +* Wed May 21 2003 Ville Skyttä - 0:2.4.0-0.fdr.5 +- Make -devel packages require the corresponding GTK devel package. +- Save .spec in UTF-8. +- Fixes from Dams: +- Don't build --with-unicode, it breaks stuff (as was already noted by Dams). +- Don't remove wx-config symlinks on upgrades. +- Remove duplicates from docs. + +* Tue May 20 2003 Ville Skyttä - 0:2.4.0-0.fdr.4 +- Split into subpackages, spec file rewrite. +- Use bzipped upstream tarball. +- Clean up BuildRequirement versions. + +* Fri May 9 2003 Dams 0:2.4.0-0.fdr.3 +- Now build/include both gtk/gtk2 libs +- buildroot -> RPM_BUILD_ROOT + +* Mon Mar 3 2003 Dams +- Initial build. +- Disable unicode as it breaks lmule +- use the %find_lang macro for locale