Fwd: Goocanvas for Mingw32
Richard W.M. Jones
rjones at redhat.com
Mon Apr 27 12:09:00 UTC 2009
Thanks Egil, I am forwarding your message and the spec file to the
fedora-mingw mailing list. I looked quickly over the spec file and it
looks good.
Rich.
----- Forwarded message from Egil Kvaleberg <egil at kvaleberg.com> -----
Subject: Goocanvas for Mingw32
Date: Mon, 27 Apr 2009 13:54:27 +0200
From: Egil Kvaleberg <egil at kvaleberg.com>
To: rjones at redhat.com
I have played around with the Mingw32 for Fedora, and it absolutely
seems like a very cool thing.
For my purposes, I am using GTK2, which is supported, but I also need a
canvas. I have been using Goocanvas (not sure what really is *the*
canvas for GTK2, but I have been happy with Goocanvas).
However, a Goocanvas package does not seem to be available, so I built one.
Goocanvas may be of interest to others, so if you think it is suitable
then please use the attached spec-file or tell me how to get involved.
The spec-file for Fedora 11 is attached.
Sincerely,
Egil Kvaleberg
--
Company: Kvaleberg AS
Office: +47 22 44 31 75
Mobile: +47 920 22 780
Fax: +47 22 44 46 77
Web: http://www.kvaleberg.com/
----- End forwarded message -----
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
-------------- next part --------------
%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-goocanvas
Version: 0.13
Release: 2%{?dist}
Summary: MinGW Windows GooCanvas library
License: LGPLv2+
Group: Developement/Libraries
URL: http://sourceforge.net/projects/goocanvas
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/0.13/goocanvas/goocanvas-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 23
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
BuildRequires: mingw32-gettext
BuildRequires: mingw32-gtk2
#BuildRequires: mingw32-pkgconfig
%description
MinGW Windows GooCanvas library.
%prep
%setup -q -n goocanvas-%{version}
# demo application does not compile properly
sed -i -e 's/ demo / /g' Makefile.am
sed -i -e 's/ demo / /g' Makefile.in
%build
%{_mingw32_configure}
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# remove static libraries and libtool droppings
rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/libgoocanvas.{a,la}
%find_lang goocanvas
%clean
rm -rf $RPM_BUILD_ROOT
%files -f goocanvas.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_mingw32_bindir}/libgoocanvas-3.dll
%{_mingw32_libdir}/libgoocanvas.dll.a
# devel:
%{_mingw32_libdir}/pkgconfig/goocanvas.pc
%{_mingw32_includedir}/goocanvas-1.0
%{_mingw32_datadir}/gtk-doc/html/goocanvas
%changelog
* Mon Apr 27 2009 Egil Kvaleberg <egil at kvaleberg.no> - 0.10-1
- initial release for mingw32, based on version 0.10-2 native spec file
More information about the mingw
mailing list