Name:          clutter-imcontext
Version:       0.1.6
Release:       5%{?_dist_release}
Summary:       IMContext Framework Library for Clutter

Group:         System Environment/Libraries
License:       LGPLv2
URL:           http://www.moblin.org/
Source0:       %{name}-%{version}.tar.bz2
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: glib2-devel
BuildRequires: clutter-devel
BuildRequires: gtk-doc

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

Vendor: Project Vine
Distribution: Vine Linux
Packager: Takemikaduchi

%description
IMContext Framework Library for Clutter

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

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

%package docs
Summary: Documentation package for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description docs
Documentation for development with %{name}.

%prep
%setup -q

# Don't run configure from autogen.sh
sed -i 's|echo|exit 0|g' autogen.sh
./autogen.sh

%build
%configure --disable-static --enable-gtk-doc
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 AUTHORS ChangeLog
%{_sysconfdir}/clutter-imcontext/enable_autoshow
%{_bindir}/clutter-scan-immodules
%{_libdir}/lib%{name}-0.1.so.0
%{_libdir}/lib%{name}-0.1.so.0.0.0

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

%files docs
%defattr(-,root,root,-)
%{_datadir}/gtk-doc/html/%{name}

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

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

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

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

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


* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sat Jun 19 2010 Peter Robinson <pbrobinson@gmail.com> 0.1.6-3
- Make docs package noarch

* Sat Jun 19 2010 Peter Robinson <pbrobinson@gmail.com> 0.1.6-2
- Split out docs to a subpackage - fixes 602882, 604343

* Sat May  1 2010 Peter Robinson <pbrobinson@gmail.com> 0.1.6-1
- New 0.1.6 upstream release.

* Fri Aug  7 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.4-2
- Spec file cleanups

* Thu Aug  6 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.4-1
- New 0.1.4 upstream release.
- license clarfied so remove spec file note
- remove upstreamed clutter patches

* Tue Aug  4 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-6
- Add some more clutter 1.0 bits

* Thu Jul 30 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-5
- Add a patch for clutter 1.0

* Sun Jul 26 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-4
- A small fix up

* Mon Jul 20 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-3
- More review request updates, license clarification

* Sun Jul 19 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-2
- Updates from the review request

* Wed Jul 15 2009 Peter Robinson <pbrobinson@gmail.com> 0.1.2-1
- Initial packaging
