From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Fri, 24 Oct 2008 18:00:04 +0000 (+0100) Subject: cairomm, glibmm, gsl, gtkmm, libsigc++, pangomm packages. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=cdc4c6f64aa11a6e62288e78e3ae00e3dbb5e674;p=fedora-mingw.git cairomm, glibmm, gsl, gtkmm, libsigc++, pangomm packages. --- diff --git a/.hgignore b/.hgignore index 49aefa9..a65e100 100644 --- a/.hgignore +++ b/.hgignore @@ -12,6 +12,7 @@ cairo/cairo-1.7.4.tar.gz cairo/cairo-1.8.0.tar.gz cairo/svgspacewar cairo/svgspacewar.exe +cairomm/cairomm-1.6.2.tar.gz fontconfig/fontconfig-2.6.0.tar.gz freetype/freetype-2.3.7.tar.bz2 freetype/freetype-doc-2.3.7.tar.bz2 @@ -22,11 +23,14 @@ gdbm/gdbm-1.8.0.tar.gz gettext/gettext-0.17.tar.gz glib2/glib-2.18.0.tar.bz2 glib2/glib-2.18.1.tar.bz2 +glibmm24/glibmm-2.18.1.tar.bz2 gnutls/gnutls-2.4.1.tar.bz2 gnutls/gnutls-2.4.2-nosrp.tar.bz2 +gsl/gsl-1.11.tar.gz gtk2/gtk+-2.14.0.tar.bz2 gtk2/gtk+-2.14.2.tar.bz2 gtk2/gtk+-2.14.4.tar.bz2 +gtkmm24/gtkmm-2.14.1.tar.bz2 gtk-vnc/gtk-vnc-0.3.7.tar.gz iconv/libiconv-1.12.tar.gz jasper/jasper-1.900.1.zip @@ -37,6 +41,7 @@ libgpg-error/libgpg-error-1.6.tar.bz2 libgpg-error/libgpg-error-1.6.tar.bz2.sig libjpeg/jpegsrc.v6b.tar.gz libpng/libpng-1.2.31.tar.bz2 +libsigc++20/libsigc++-2.2.2.tar.bz2 libvirt/libvirt-0.4.5.tar.gz libvirt/libvirt-0.4.6.tar.gz libxml2/libxml2-2.6.32.tar.gz @@ -45,9 +50,11 @@ libxml2/libxml2-2.7.2.tar.gz nsis/nsis-2.19-src.tar.bz2 nsis/nsis-2.39-src.tar.bz2 nsiswrapper/installer.exe +ocaml/ocaml-3.11.0+beta1.tar.bz2 openssl/openssl-0.9.8g-usa.tar.bz2 pango/pango-1.21.6.tar.bz2 pango/pango-1.22.1.tar.bz2 +pangomm/pangomm-2.14.0.tar.bz2 pdcurses/PDCurses-3.4.tar.gz pixman/pixman-0.11.10.tar.gz pixman/pixman-0.12.0.tar.gz diff --git a/cairomm/mingw32-cairomm.spec b/cairomm/mingw32-cairomm.spec new file mode 100644 index 0000000..6340694 --- /dev/null +++ b/cairomm/mingw32-cairomm.spec @@ -0,0 +1,61 @@ +%define __strip %{_mingw32_strip} +%define __objdump %{_mingw32_objdump} +%define _use_internal_dependency_generator 0 +%define __find_requires %{_mingw32_findrequires} +%define __find_provides %{_mingw32_findprovides} + +Name: mingw32-cairomm +Version: 1.6.2 +Release: 1%{?dist} +Summary: MinGW Windows C++ API for the cairo graphics library + +License: LGPLv2+ +Group: Development/Libraries +URL: http://www.cairographics.org +Source0: http://www.cairographics.org/releases/cairomm-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: mingw32-filesystem >= 30 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-binutils +BuildRequires: mingw32-cairo + + +%description +Cairomm is the C++ API for the cairo graphics library. It offers all the power +of cairo with an interface familiar to C++ developers, including use of the +Standard Template Library where it makes sense. + + +%prep +%setup -q -n cairomm-%{version} + + +%build +%{_mingw32_configure} --enable-static=no --enable-docs=no +make + + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw32_bindir}/libcairomm-1.0-1.dll +%{_mingw32_libdir}/libcairomm-1.0.dll.a +%{_mingw32_libdir}/libcairomm-1.0.la +%{_mingw32_libdir}/pkgconfig/cairomm-1.0.pc +%{_mingw32_includedir}/cairomm-1.0 + + +%changelog +* Fri Oct 24 2008 Richard W.M. Jones - 1.6.2-1 +- Initial RPM release. diff --git a/glibmm24/mingw32-glibmm24.spec b/glibmm24/mingw32-glibmm24.spec new file mode 100644 index 0000000..80e8236 --- /dev/null +++ b/glibmm24/mingw32-glibmm24.spec @@ -0,0 +1,81 @@ +%define __strip %{_mingw32_strip} +%define __objdump %{_mingw32_objdump} +%define _use_internal_dependency_generator 0 +%define __find_requires %{_mingw32_findrequires} +%define __find_provides %{_mingw32_findprovides} + +Name: mingw32-glibmm24 +Version: 2.18.1 +Release: 1%{?dist} +Summary: MinGW Windows C++ interface for GTK2 (a GUI library for X) + +License: LGPLv2+ +Group: Development/Libraries +URL: http://gtkmm.sourceforge.net/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.18/glibmm-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: mingw32-filesystem >= 30 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-gcc-c++ +BuildRequires: mingw32-binutils +BuildRequires: mingw32-libsigc++20 >= 2.0.0 +BuildRequires: mingw32-glib2 >= 2.17.3 + +Requires: pkgconfig + + +%description +glibmm provides a C++ interface to the GTK+ GLib low-level core +library. Highlights include typesafe callbacks, widgets extensible via +inheritance and a comprehensive set of widget classes that can be +freely combined to quickly create complex user interfaces. + + +%prep +%setup -q -n glibmm-%{version} + + +%build +%{_mingw32_configure} --disable-static +make + + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +# Remove docs, duplicate native package. +rm -r $RPM_BUILD_ROOT%{_mingw32_docdir}/glibmm-2.4 +rm -r $RPM_BUILD_ROOT%{_mingw32_datadir}/devhelp + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw32_bindir}/libgiomm-2.4-1.dll +%{_mingw32_bindir}/libglibmm_generate_extra_defs-2.4-1.dll +%{_mingw32_bindir}/libglibmm-2.4-1.dll +%{_mingw32_libdir}/libgiomm-2.4.dll.a +%{_mingw32_libdir}/libgiomm-2.4.la +%{_mingw32_libdir}/libglibmm_generate_extra_defs-2.4.dll.a +%{_mingw32_libdir}/libglibmm_generate_extra_defs-2.4.la +%{_mingw32_libdir}/libglibmm-2.4.dll.a +%{_mingw32_libdir}/libglibmm-2.4.la +%{_mingw32_libdir}/giomm-2.4 +%{_mingw32_libdir}/glibmm-2.4 +%{_mingw32_includedir}/giomm-2.4 +%{_mingw32_includedir}/glibmm-2.4 +%{_mingw32_libdir}/pkgconfig/giomm-2.4.pc +%{_mingw32_libdir}/pkgconfig/glibmm-2.4.pc +%{_mingw32_datadir}/aclocal/glibmm_check_perl.m4 + + +%changelog +* Fri Oct 24 2008 Richard W.M. Jones - 2.18.1 +- Initial RPM release. diff --git a/gsl/gsl-1.10-lib64.patch b/gsl/gsl-1.10-lib64.patch new file mode 100644 index 0000000..4d2cd04 --- /dev/null +++ b/gsl/gsl-1.10-lib64.patch @@ -0,0 +1,23 @@ +diff -up gsl-1.10/gsl-config.in.pom gsl-1.10/gsl-config.in +--- gsl-1.10/gsl-config.in.pom 2001-03-21 15:22:44.000000000 +0100 ++++ gsl-1.10/gsl-config.in 2007-10-24 12:55:20.000000000 +0200 +@@ -58,16 +58,16 @@ while test $# -gt 0; do + ;; + + --cflags) +- echo @GSL_CFLAGS@ ++ echo -I$includedir + ;; + + --libs) + : ${GSL_CBLAS_LIB=-lgslcblas} +- echo @GSL_LIBS@ $GSL_CBLAS_LIB -lm ++ echo -lgsl $GSL_CBLAS_LIB -lm + ;; + + --libs-without-cblas) +- echo @GSL_LIBS@ -lm ++ echo -lgsl -lm + ;; + *) + usage diff --git a/gsl/mingw32-gsl.spec b/gsl/mingw32-gsl.spec new file mode 100644 index 0000000..70aa849 --- /dev/null +++ b/gsl/mingw32-gsl.spec @@ -0,0 +1,92 @@ +%define __strip %{_mingw32_strip} +%define __objdump %{_mingw32_objdump} +%define _use_internal_dependency_generator 0 +%define __find_requires %{_mingw32_findrequires} +%define __find_provides %{_mingw32_findprovides} + +Name: mingw32-gsl +Version: 1.11 +Release: 1%{?dist} +Summary: MinGW Windows port of the GNU Scientific Library + +License: LGPLv2+ +Group: Development/Libraries +URL: http://www.gnu.org/software/gsl/ +Source0: ftp://ftp.gnu.org/gnu/gsl/gsl-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +Patch0: gsl-1.10-lib64.patch + +BuildRequires: mingw32-filesystem >= 30 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-binutils +BuildRequires: pkgconfig +BuildRequires: dos2unix + +Requires: pkgconfig + + +%description +The GNU Scientific Library (GSL) is a collection of routines for +numerical analysis, written in C. + + +%prep +%setup -q -n gsl-%{version} +%patch0 -p1 -b .lib64 +iconv -f windows-1252 -t utf-8 THANKS > THANKS.aux +touch -r THANKS THANKS.aux +mv THANKS.aux THANKS + + +%build +# Native package has: +# configure ... CFLAGS="$CFLAGS -fgnu89-inline" +# but that destroys the original CFLAGS setting. +%{_mingw32_configure} +make + +# These ltshwrapper files contain DOS line endings for +# unknown reason. Bash chokes on them, so we have to convert +# them back to normal line endings. +dos2unix .libs/*_ltshwrapper + + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +# Remove static libraries but DON'T remove *.dll.a files. +rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libgslcblas.a +rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libgsl.a + +# Remove info files and man pages which duplicate native package. +rm -r $RPM_BUILD_ROOT%{_mingw32_mandir} +rm -r $RPM_BUILD_ROOT%{_mingw32_infodir} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw32_bindir}/libgslcblas-0.dll +%{_mingw32_bindir}/libgsl-0.dll +%{_mingw32_bindir}/gsl-config +%{_mingw32_bindir}/gsl-histogram.exe +%{_mingw32_bindir}/gsl-randist.exe +%{_mingw32_libdir}/libgslcblas.dll.a +%{_mingw32_libdir}/libgsl.dll.a +%{_mingw32_libdir}/libgslcblas.la +%{_mingw32_libdir}/libgsl.la +%{_mingw32_libdir}/pkgconfig/gsl.pc +%{_mingw32_datadir}/aclocal/gsl.m4 +%{_mingw32_includedir}/gsl + + +%changelog +* Fri Oct 24 2008 Richard W.M. Jones - 1.11-1 +- Initial RPM release. diff --git a/gtkmm24/gtkmm-2.14.1-devhelp.patch b/gtkmm24/gtkmm-2.14.1-devhelp.patch new file mode 100644 index 0000000..4a2c389 --- /dev/null +++ b/gtkmm24/gtkmm-2.14.1-devhelp.patch @@ -0,0 +1,9 @@ +--- gtkmm-2.14.1/docs/reference/gtkmm-2.4.devhelp~ 2008-08-02 12:16:32.000000000 +0200 ++++ gtkmm-2.14.1/docs/reference/gtkmm-2.4.devhelp 2008-10-11 23:57:17.000000000 +0200 +@@ -1,5 +1,5 @@ + +- ++ + + + diff --git a/gtkmm24/mingw32-gtkmm24.spec b/gtkmm24/mingw32-gtkmm24.spec new file mode 100644 index 0000000..5d3e4f9 --- /dev/null +++ b/gtkmm24/mingw32-gtkmm24.spec @@ -0,0 +1,85 @@ +%define __strip %{_mingw32_strip} +%define __objdump %{_mingw32_objdump} +%define _use_internal_dependency_generator 0 +%define __find_requires %{_mingw32_findrequires} +%define __find_provides %{_mingw32_findprovides} + +Name: mingw32-gtkmm24 +Version: 2.14.1 +Release: 1%{?dist} +Summary: MinGW Windows C++ interface for GTK2 (a GUI library for X) + +License: LGPLv2+ +Group: Development/Libraries +URL: http://gtkmm.sourceforge.net/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.14/gtkmm-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: mingw32-filesystem >= 30 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-gcc-c++ +BuildRequires: mingw32-binutils +BuildRequires: mingw32-glibmm24 >= 2.18.0 +BuildRequires: mingw32-atk >= 1.9.0 +BuildRequires: mingw32-pango >= 1.5.2 +BuildRequires: mingw32-gtk2 >= 2.14.0 +BuildRequires: mingw32-cairomm >= 1.2.2 +BuildRequires: mingw32-pangomm >= 2.14.0 + + +%description +gtkmm provides a C++ interface to the GTK+ GUI library. gtkmm2 wraps +GTK+ 2. Highlights include typesafe callbacks, widgets extensible via +inheritance and a comprehensive set of widget classes that can be +freely combined to quickly create complex user interfaces. + + + +%prep +%setup -q -n gtkmm-%{version} + + +%build +%{_mingw32_configure} --disable-static --enable-shared --disable-demos +make + + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +# Remove documentation which duplicates that in the base package. +rm -r $RPM_BUILD_ROOT%{_mingw32_datadir}/devhelp +rm -r $RPM_BUILD_ROOT%{_mingw32_docdir}/* + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw32_bindir}/libatkmm-1.6-1.dll +%{_mingw32_bindir}/libgdkmm-2.4-1.dll +%{_mingw32_bindir}/libgtkmm-2.4-1.dll +%{_mingw32_libdir}/libatkmm-1.6.dll.a +%{_mingw32_libdir}/libatkmm-1.6.la +%{_mingw32_libdir}/libgdkmm-2.4.dll.a +%{_mingw32_libdir}/libgdkmm-2.4.la +%{_mingw32_libdir}/libgtkmm-2.4.dll.a +%{_mingw32_libdir}/libgtkmm-2.4.la +%{_mingw32_includedir}/atkmm-1.6 +%{_mingw32_includedir}/gdkmm-2.4 +%{_mingw32_includedir}/gtkmm-2.4 +%{_mingw32_libdir}/gdkmm-2.4 +%{_mingw32_libdir}/gtkmm-2.4 +%{_mingw32_libdir}/pkgconfig/atkmm-1.6.pc +%{_mingw32_libdir}/pkgconfig/gdkmm-2.4.pc +%{_mingw32_libdir}/pkgconfig/gtkmm-2.4.pc + + +%changelog +* Fri Oct 24 2008 Richard W.M. Jones - 2.14.1-1 +- Initial RPM release. diff --git a/libsigc++20/mingw32-libsigc++20.spec b/libsigc++20/mingw32-libsigc++20.spec new file mode 100644 index 0000000..771aa54 --- /dev/null +++ b/libsigc++20/mingw32-libsigc++20.spec @@ -0,0 +1,74 @@ +%define __strip %{_mingw32_strip} +%define __objdump %{_mingw32_objdump} +%define _use_internal_dependency_generator 0 +%define __find_requires %{_mingw32_findrequires} +%define __find_provides %{_mingw32_findprovides} + +Name: mingw32-libsigc++20 +Version: 2.2.2 +Release: 1%{?dist} +Summary: MinGW Windows port of the typesafe signal framework for C++ + +License: LGPLv2+ +Group: Development/Libraries +URL: http://libsigc.sourceforge.net/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/libsigc++-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: mingw32-filesystem >= 30 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-gcc-c++ +BuildRequires: mingw32-binutils + +BuildRequires: m4 + + +%description +This library implements a full callback system for use in widget libraries, +abstract interfaces, and general programming. Originally part of the Gtk-- +widget set, %name is now a separate library to provide for more general +use. It is the most complete library of its kind with the ability to connect +an abstract callback to a class method, function, or function object. It +contains adaptor classes for connection of dissimilar callbacks and has an +ease of use unmatched by other C++ callback libraries. + +Package GTK-- (gtkmm), which is a C++ binding to the GTK+ library, +starting with version 1.1.2, uses %name. + + +%prep +%setup -q -n libsigc++-%{version} + + +%build +%{_mingw32_configure} --disable-static +make + + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +# Docs duplicate native package. +rm -r $RPM_BUILD_ROOT%{_mingw32_docdir}/libsigc-2.0 + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw32_bindir}/libsigc-2.0-0.dll +%{_mingw32_libdir}/libsigc-2.0.dll.a +%{_mingw32_libdir}/libsigc-2.0.la +%{_mingw32_libdir}/pkgconfig/sigc++-2.0.pc +%{_mingw32_includedir}/sigc++-2.0 +# WTF? This contains a header file ... +%{_mingw32_libdir}/sigc++-2.0 + + +%changelog +* Fri Oct 24 2008 Richard W.M. Jones - 2.2.2-1 +- Initial RPM release. diff --git a/pangomm/mingw32-pangomm.spec b/pangomm/mingw32-pangomm.spec new file mode 100644 index 0000000..87d7759 --- /dev/null +++ b/pangomm/mingw32-pangomm.spec @@ -0,0 +1,78 @@ +%define __strip %{_mingw32_strip} +%define __objdump %{_mingw32_objdump} +%define _use_internal_dependency_generator 0 +%define __find_requires %{_mingw32_findrequires} +%define __find_provides %{_mingw32_findprovides} + +%define apiver 1.4 + +Name: mingw32-pangomm +Version: 2.14.0 +Release: 1%{?dist} +Summary: MinGW Windows C++ interface for Pango + +License: LGPLv2+ +Group: Development/Libraries +URL: http://gtkmm.sourceforge.net/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/pangomm/2.14/pangomm-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Patch0: pangomm-2.14.0-devhelp.patch + +BuildArch: noarch + +BuildRequires: mingw32-filesystem >= 30 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-gcc-c++ +BuildRequires: mingw32-binutils +BuildRequires: mingw32-glibmm24 >= 2.14.1 +BuildRequires: mingw32-cairomm >= 1.2.2 +BuildRequires: pango-devel >= 1.21.4 +BuildRequires: doxygen +BuildRequires: graphviz + + +%description +pangomm provides a C++ interface to the Pango library. Highlights +include typesafe callbacks, widgets extensible via inheritance and a +comprehensive set of widget classes that can be freely combined to +quickly create complex user interfaces. + + +%prep +%setup -q -n pangomm-%{version} +%patch0 -p1 -b .devhelp + + +%build +%{_mingw32_configure} --disable-static +make + + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install + +rm -r $RPM_BUILD_ROOT%{_mingw32_libdir}/pangomm-%{apiver} + +# Remove documentation. +rm -r $RPM_BUILD_ROOT%{_mingw32_docdir}/pangomm-%{apiver} +rm -r $RPM_BUILD_ROOT%{_mingw32_datadir}/devhelp + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_mingw32_bindir}/libpangomm-%{apiver}-1.dll +%{_mingw32_libdir}/libpangomm-%{apiver}.la +%{_mingw32_libdir}/libpangomm-%{apiver}.dll.a +%{_mingw32_libdir}/pkgconfig/pangomm-%{apiver}.pc +%{_mingw32_includedir}/pangomm-%{apiver} + + +%changelog +* Fri Oct 24 2008 Richard W.M. Jones - 2.14.0-1 +- Initial RPM release. diff --git a/pangomm/pangomm-2.14.0-devhelp.patch b/pangomm/pangomm-2.14.0-devhelp.patch new file mode 100644 index 0000000..10f6de2 --- /dev/null +++ b/pangomm/pangomm-2.14.0-devhelp.patch @@ -0,0 +1,9 @@ +--- pangomm-2.14.0/docs/reference/pangomm-1.4.devhelp~ 2008-08-02 12:02:10.000000000 +0200 ++++ pangomm-2.14.0/docs/reference/pangomm-1.4.devhelp 2008-10-12 11:54:51.000000000 +0200 +@@ -1,5 +1,5 @@ + +- ++ + + +