diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..7b9960d --- /dev/null +++ b/.cvsignore @@ -0,0 +1 @@ +cluttermm-0.9.4.20090907git.tar.bz2 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6001e71 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: cluttermm +# $Id$ +NAME := cluttermm +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/cluttermm-0.9.4-wrapinit.patch b/cluttermm-0.9.4-wrapinit.patch new file mode 100644 index 0000000..ef019ef --- /dev/null +++ b/cluttermm-0.9.4-wrapinit.patch @@ -0,0 +1,11 @@ +--- cluttermm-0.9.4/clutter/cluttermm/Makefile.in~ 2009-09-07 11:01:34.000000000 +0200 ++++ cluttermm-0.9.4/clutter/cluttermm/Makefile.in 2009-09-07 11:40:33.340803731 +0200 +@@ -289,7 +289,7 @@ + sublib_cflags = $(CLUTTERMM_CFLAGS) + sublib_topdir = clutter + files_extra_h = init.h main.h utility.h threads.h frame-source.h \ +- event.h wrap_init.h wrap_init.h ++ event.h wrap_init.h + files_extra_cc = init.cc main.cc utility.cc threads.cc frame-source.cc event.cc + files_hg = \ + actor.hg \ diff --git a/cluttermm.spec b/cluttermm.spec new file mode 100644 index 0000000..d00c4bb --- /dev/null +++ b/cluttermm.spec @@ -0,0 +1,119 @@ +%define snapshot .20090907git + +Name: cluttermm +Version: 0.9.4 +Release: 3%{snapshot}%{?dist} + +Summary: C++ wrapper for clutter library + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://www.gtkmm.org/ +Source0: http://ftp.gnome.org/pub/GNOME/sources/cluttermm/0.9/%{name}-%{version}%{snapshot}.tar.bz2 +Patch0: cluttermm-0.9.4-wrapinit.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: clutter-devel >= 0.9.4 +BuildRequires: glib2-devel >= 2.21.6 +BuildRequires: glibmm24-devel >= 2.14 +BuildRequires: pangomm-devel >= 2.12 +BuildRequires: cairomm-devel +BuildRequires: doxygen graphviz + + +%description +Cluttermm is a C++ wrapper library for clutter: an OpenGL-based +library for creating fast, visually rich and animated graphical user +interfaces. + + +%package devel +Summary: Headers for developing programs that will use %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: glibmm24-devel +Requires: pangomm-devel +Requires: clutter-devel +Requires: pkgconfig + + +%description devel +This package contains the static libraries and header files needed for +developing gstreamermm applications. + + +%prep +%setup -q +%patch0 -p1 -b .wrapinit + + +%build +%configure --enable-shared --disable-dependency-tracking +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' +# Remove files related to code generation +rm -rf $RPM_BUILD_ROOT%{_libdir}/cluttermm-0.9 + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files +%defattr(-, root, root, -) +%doc AUTHORS ChangeLog COPYING NEWS README +%{_libdir}/libcluttermm-0.9.so.* + + +%files devel +%defattr(-, root, root, -) +%doc docs/reference/html/ examples/test-actors.cc +%{_includedir}/cluttermm-0.9 +%{_libdir}/libcluttermm-0.9.so +%{_libdir}/pkgconfig/cluttermm-0.9.pc + + +%changelog +* Mon Sep 7 2009 Denis Leroy - 0.9.4-3.git20090907 +- Updated to latest git, to compile against clutter 1.0 API +- Added patch to work around automake oddity + +* Fri Jul 24 2009 Fedora Release Engineering - 0.9.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Jul 8 2009 Denis Leroy - 0.9.4-1 +- Update to upstream 0.9.4 +- API update to 0.9 + +* Tue Feb 24 2009 Fedora Release Engineering - 0.7.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 23 2009 Denis Leroy - 0.7.5-1 +- Update to upstream 0.7.5 + +* Thu Jan 15 2009 Denis Leroy - 0.7.4-1 +- Update to upstream 0.7.4 + +* Mon Sep 15 2008 Denis Leroy - 0.7.3-2 +- Fixed devel requires + +* Sun Sep 7 2008 Denis Leroy - 0.7.3-1 +- Update to upstream 0.7.3 +- Cairo and gtk parts are forked into their own tarballs + +* Tue Jun 3 2008 Denis Leroy - 0.5.1-2 +- fixed gtkmm BR + +* Mon Jun 2 2008 Denis Leroy - 0.5.1-1 +- Initial version, inspired by Rick Vinyard's initial work diff --git a/dead.package b/dead.package deleted file mode 100644 index 2770fbb..0000000 --- a/dead.package +++ /dev/null @@ -1,2 +0,0 @@ -The clutter-cairo library has been deprecated by the Cairo API inside -Clutter 0.9, and so has its C++ binding equivalent clutter-cairomm. diff --git a/sources b/sources new file mode 100644 index 0000000..b6c6f91 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +8e686e2bb4b1a20c134fa1ac7b29d357 cluttermm-0.9.4.20090907git.tar.bz2