File clutter-imcontext.spec of Package clutter-imcontext

#
# spec file for package clutter-imcontext (Version 0.2.0.1.5.20090918)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           clutter-imcontext
Summary:        IMContext Framework Library for Clutter
Group:          System/Libraries
%define         actual_version 0.1.5
Version:        0.2.0.1.5.2010608
Release:        1
License:        LGPLv2.1
Url:            http://moblin.org/
Source0:        %{name}-%{actual_version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  clutter-devel glib2-devel gtk-doc

%description
The IMContext Framework Library for Clutter



%package devel
License:        LGPLv2.1
Summary:        IMContext Framework Library for Clutter
Group:          Development/Libraries/C and C++
Requires:       clutter-devel
Requires:       %{name} >= %{version}

%description devel
The IMContext Framework Library for Clutter. Development files.

%package doc
Summary:    Clutter-imcontext API reference
Group:      Development/Libraries
Requires:   %{name} >= %{version}

%description doc
The IMContext Framework Library for Clutter. Documentation files.

%prep
%setup -q -n %{name}-%{actual_version}

%build
./autogen.sh
%configure --disable-static --docdir=%{_datadir}/doc/%{name}-%{version}
make %{?_smp_mflags}

%install
%makeinstall
%find_lang clutter-imcontext  || echo -n >> clutter-imcontext.lang
rm -f %{buildroot}/%{_libdir}/*.la
rm -f %{buildroot}/%{_sysconfdir}/clutter-imcontext/enable_autoshow

%post -p /sbin/ldconfig    

%postun -p /sbin/ldconfig    

%clean
rm -rf %{buildroot}

%files -f clutter-imcontext.lang
%defattr(-,root,root,-)
%{_libdir}/libclutter-imcontext-0.1.so.0
%{_libdir}/libclutter-imcontext-0.1.so.0.0.0
%{_bindir}/clutter-scan-immodules
%dir %{_sysconfdir}/clutter-imcontext
#%{_sysconfdir}/clutter-imcontext/enable_autoshow

%files devel
%defattr(-,root,root,-)
%{_libdir}/libclutter-imcontext-0.1.so
%{_includedir}/clutter-imcontext-0.1/
%{_libdir}/pkgconfig/clutter-imcontext-0.1.pc

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

%changelog
openSUSE Build Service is sponsored by