From c8e9fd393c34e272609a9871e8a974450b13c82c Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Feb 16 2011 09:39:16 +0000 Subject: initial import of goocanvas2 --- diff --git a/.gitignore b/.gitignore index e69de29..0d98df8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/goocanvas-1.90.2.tar.bz2 diff --git a/goocanvas2-1.90.2-gettext.patch b/goocanvas2-1.90.2-gettext.patch new file mode 100644 index 0000000..a13c109 --- /dev/null +++ b/goocanvas2-1.90.2-gettext.patch @@ -0,0 +1,13 @@ +diff --git a/configure.in b/configure.in +index 1c4adba..4971371 100644 +--- a/configure.in ++++ b/configure.in +@@ -31,7 +31,7 @@ PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) + AC_SUBST(PACKAGE_CFLAGS) + AC_SUBST(PACKAGE_LIBS) + +-GETTEXT_PACKAGE=goocanvas ++GETTEXT_PACKAGE=goocanvas2 + AC_SUBST(GETTEXT_PACKAGE) + AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.]) + diff --git a/goocanvas2.spec b/goocanvas2.spec new file mode 100644 index 0000000..6d3bc73 --- /dev/null +++ b/goocanvas2.spec @@ -0,0 +1,86 @@ +%global tarname goocanvas +%global apiver 2.0 + +Name: goocanvas2 +Version: 1.90.2 +Release: 1%{?dist} +Summary: A new canvas widget for GTK+ that uses cairo for drawing + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://live.gnome.org/GooCanvas +Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{tarname}/1.90/%{tarname}-%{version}.tar.bz2 +# GNOME BZ #642097 : fixes parallel installation with goocanvas +# fixed in git +Patch0: goocanvas2-1.90.2-gettext.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gettext, pkgconfig +BuildRequires: autoconf, automake, libtool, gtk-doc +BuildRequires: gtk3-devel >= 2.91.3 +BuildRequires: cairo-devel >= 1.4.0 + +%description +GooCanvas is a new canvas widget for GTK+ that uses the cairo 2D library for +drawing. It has a model/view split, and uses interfaces for canvas items and +views, so you can easily turn any application object into canvas items. + + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q -n %{tarname}-%{version} +%patch0 -p1 +autoreconf -vif +# TODO: fix demos to build against latest Gtk+ +sed -i -e 's/ demo / /g' Makefile.am +sed -i -e 's/ demo / /g' Makefile.in + + +%build +%configure --disable-static \ + --with-html-dir=%{_datadir}/gtk-doc/html/%{tarname}-%{apiver} +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +%find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc COPYING README ChangeLog AUTHORS NEWS TODO +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root,-) +%doc +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/%{tarname}-%{apiver}.pc +%{_datadir}/gtk-doc/html/%{tarname}-%{apiver} + + +%changelog +* Fri Feb 11 2011 Haïkel Guémar - 1.90.2-1 +- initial package + diff --git a/sources b/sources index e69de29..bb58ece 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +73fd246626e92df32d00f047f3e0c4bb goocanvas-1.90.2.tar.bz2