diff --git a/.gitignore b/.gitignore index e69de29..8bd41b8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/maliit-framework-0.*.tar.bz2 diff --git a/maliit-framework.spec b/maliit-framework.spec new file mode 100644 index 0000000..a5336ce --- /dev/null +++ b/maliit-framework.spec @@ -0,0 +1,177 @@ +Name: maliit-framework +Version: 0.92.5 +Release: 1%{?dist} +Summary: Input method framework + +Group: System Environment/Libraries +License: LGPLv2 +URL: http://maliit.org/ +Source0: http://maliit.org/releases/%{name}/%{name}-%{version}.tar.bz2 + +BuildRequires: dbus-devel +BuildRequires: dbus-glib-devel +BuildRequires: doxygen +BuildRequires: glib2-devel +BuildRequires: gobject-introspection-devel +BuildRequires: gtk2-devel +BuildRequires: gtk3-devel +BuildRequires: gtk-doc +BuildRequires: hunspell-devel +BuildRequires: libX11-devel +BuildRequires: libXcomposite-devel +BuildRequires: libXdamage-devel +BuildRequires: libXext-devel +BuildRequires: libXfixes-devel +BuildRequires: qt-devel + +%description +Maliit provides a flexible and cross-platform input method framework. It has a +plugin-based client-server architecture where applications act as clients and +communicate with the Maliit server via input context plugins. The communication +link currently uses D-Bus. + +%package qt4 +Summary: Development package for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description qt4 +Files for development with %{name}. + +%package gtk2 +Summary: Development package for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description gtk2 +Files for development with %{name}. + +%package gtk3 +Summary: Development package for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description gtk3 +Files for development with %{name}. + +%package devel +Summary: Development package for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Files for development with %{name}. + +%package docs +Summary: Documentation files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: gtk-doc +BuildArch: noarch + +%description docs +This package contains developer documentation for %{name}. + +%package examples +Summary: Tests and examples for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: %{name}-gtk2 = %{version}-%{release} +Requires: %{name}-gtk3 = %{version}-%{release} +Requires: %{name}-qt4 = %{version}-%{release} + +%description examples +This package contains tests and examples for %{name}. + +%prep +%setup -q + +%build + +qmake-qt4 -r MALIIT_VERSION=%{version} PREFIX=%{_prefix} \ + BINDIR=%{_bindir} LIBDIR=%{_libdir} INCLUDEDIR=%{_includedir} \ + MALIIT_ENABLE_MULTITOUCH=true \ + CONFIG+=disable-gtk-cache-update CONFIG+=disable-preedit \ + CONFIG+=enable-hunspell CONFIG+=enable-dbus-activation \ + CONFIG+=disable-background-translucency + +make %{?_smp_mflags} V=1 + +%install +make install INSTALL="install -p" INSTALL_ROOT=%{buildroot} DESTDIR=%{buildroot} + +find %{buildroot} -name '.moc' -exec rm -rf {} ';' +find %{buildroot} -name '.gitignore' -exec rm -rf {} ';' + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%postun gtk3 +/usr/bin/gtk-query-immodules-3.0-%{__isa_bits} --update-cache &> /dev/null || : + +%post gtk3 +if [ $1 -eq 1 ] ; then + # For upgrades, the cache will be regenerated by the new package's %postun + /usr/bin/gtk-query-immodules-3.0-%{__isa_bits} --update-cache &> /dev/null || : +fi + +%postun gtk2 +/usr/bin/gtk-query-immodules-2.0-%{__isa_bits} --update-cache &> /dev/null || : + +%post gtk2 +if [ $1 -eq 1 ] ; then + # For upgrades, the cache will be regenerated by the new package's %postun + /usr/bin/gtk-query-immodules-2.0-%{__isa_bits} --update-cache &> /dev/null || : +fi + +%files +%defattr(-,root,root,-) +%doc LICENSE.LGPL README NEWS +%{_bindir}/maliit-server +%{_libdir}/libmaliit*.so.* +%{_libdir}/maliit/plugins-1.0 +%{_libdir}/girepository-1.0/Maliit-1.0.typelib +%{_datadir}/dbus-1/services/org.maliit.server.service + +%files qt4 +%defattr(-,root,root,-) +%{_libdir}/qt4/plugins/inputmethods/libmaliit* + +%files gtk2 +%defattr(-,root,root,-) +%{_libdir}/gtk-2.0/2.10.0/immodules/libim-maliit.so + +%files gtk3 +%defattr(-,root,root,-) +%{_libdir}/gtk-3.0/3.0.0/immodules/libim-maliit.so + +%files devel +%defattr(-,root,root,-) +%{_bindir}/maliit-sdk +%{_includedir}/maliit/ +%{_libdir}/libmaliit*.so +%{_libdir}/pkgconfig/maliit*.pc +%{_libdir}/qt4/mkspecs/features/maliit* +%{_datadir}/gir-1.0/Maliit-1.0.gir + +%files docs +%defattr(-,root,root,-) +%{_datadir}/doc/maliit-framework +%{_datadir}/gtk-doc/html/maliit + +%files examples +%defattr(-,root,root,-) +%{_bindir}/maliit-example* +%{_libdir}/maliit-framework-tests + +%changelog +* Thu Sep 27 2012 Peter Robinson - 0.92.5-1 +- New 0.92.5 release, update based on review comments + +* Tue Aug 14 2012 Peter Robinson - 0.92.4-1 +- Initial packaging diff --git a/sources b/sources index e69de29..3d1db30 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a21fd1a53b00f2d802af9eeeb0bd810d maliit-framework-0.92.5.tar.bz2