Name:           clutter-gesture
Version:        0.0.2.1
Release:        8%{?_dist_release}
Summary:        Gesture Library for Clutter

Group:          System Environment/Libraries
License:        LGPLv2+ and MIT
URL:            http://moblin.org/projects/clutter-gesture
Source0:        http://git.moblin.org/cgit.cgi/%{name}/snapshot/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Patch0:		clutter-gesture-0.0.2.1-configure.patch

BuildRequires: clutter-devel
BuildRequires: glib2-devel

# Require these because the git tarball doesn't have the configure built
BuildRequires: libtool

Vendor: Project Vine
Distribution: Vine Linux
Packager: Takemikaduchi

%description
This library allows clutter applications to be aware of gestures 
and to easily attach some handlers to the gesture events. The library 
supports both single and multi touch.

%package devel
Summary: Development package for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig

%description devel
Files for development with %{name}.

%prep
%setup -q
%patch0 -p1

# The NEWS file contains the license so use it as a COPYING file. Upstream has been contacted to resolve the issue
cp NEWS COPYING

# run autogen.sh until we have a proper release, but don't run configure twice.
sed -i '/configure/d' autogen.sh
./autogen.sh

%build
%configure --disable-static
make %{?_smp_mflags} V=1

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} INSTALL='install -p'

#Remove libtool archives.
find %{buildroot} -name '*.la' -exec rm -f {} ';'

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libcluttergesture-*.so.*
%{_libdir}/libengine.so.*

%files devel
%defattr(-,root,root,-)
%{_libdir}/libcluttergesture-*.so
%{_libdir}/libengine.so
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc

%changelog
* Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.0.2.1-8
- rebuild with cogl-1.18.0

* Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.0.2.1-7
- rebuild with VineSeed environment

* Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.0.2.1-6
- rebuild with cogl-1.16.0

* Sun Apr 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.0.2.1-5
- rebuild with cogl-1.14.0

* Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.0.2.1-4
- rebuild with cogl-1.12.0

* Sat Apr 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.0.2.1-3
- rebuild with cogl-1.10.0

* Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.0.2.1-2
- rebuild with cogl-1.8.0

* Mon Aug 15 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.0.2.1-1
- initial build for Vine Linux


* Sat Dec 19 2009 Peter Robinson <pbrobinson@gmail.com> 0.0.2-2
- Review updates

* Tue Sep 15 2009 Peter Robinson <pbrobinson@gmail.com> 0.0.2-1
- Initial packaging
