forked from pool/maliit-framework
1d0c7814ba
OBS-URL: https://build.opensuse.org/package/show/M17N:Maliit/maliit-framework?expand=0&rev=33
388 lines
10 KiB
RPMSpec
388 lines
10 KiB
RPMSpec
%if 0%{?suse_version}
|
|
%define _qt4_qmake qmake
|
|
%define _qt4_datadir %{_datadir}/qt4
|
|
%define _qt4_plugindir %{_libdir}/qt4/plugins
|
|
%define _qt4_translationdir %(qmake -query QT_INSTALL_TRANSLATIONS)
|
|
%endif
|
|
|
|
Name: maliit-framework
|
|
Version: 0.81.3
|
|
Release: 0%{dist}
|
|
Summary: Maliit Input Method Framework
|
|
|
|
Group: System Environment/Libraries
|
|
License: LGPLv2
|
|
URL: http://www.maliit.org
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
BuildRequires: pkgconfig(QtCore) >= 4.7.0
|
|
BuildRequires: pkgconfig(QtDeclarative)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
%if 0%{?fedora} != 14
|
|
# While Fedora 14 has a GTK+ 3 pre-release, the glib version
|
|
# is to old and the build will fail
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
BuildRequires: pkgconfig(dbus-glib-1)
|
|
BuildRequires: pkgconfig(gconf-2.0)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xcomposite)
|
|
BuildRequires: pkgconfig(xdamage)
|
|
BuildRequires: pkgconfig(xext)
|
|
BuildRequires: pkgconfig(xfixes)
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
%if 0%{?fedora} == 16
|
|
# Workaround for Fedora 16, and colord not being able to
|
|
# which package to provide libsane.so
|
|
BuildRequires: sane-backends-libs
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
|
%gconf_schemas_requires
|
|
%else
|
|
Requires(pre): /usr/bin/gconftool-2
|
|
Requires(post): /usr/bin/gconftool-2
|
|
Requires(preun): /usr/bin/gconftool-2
|
|
%endif
|
|
Requires(post): /sbin/ldconfig
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
%description
|
|
Core server and libraries for the Maliit Input Methods Framework
|
|
|
|
%package devel
|
|
Summary: Maliit Input Method Framework Development Package
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
This package contains the files necessary to develop
|
|
input method plugins for Maliit, and applications using the libmaliit
|
|
extension library.
|
|
|
|
%package -n libmaliit-plugins-0_80-0
|
|
Summary: Maliit Framework Input Method library
|
|
Group: Development/Libraries
|
|
Requires(post): /sbin/ldconfig
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
%description -n libmaliit-plugins-0_80-0
|
|
Interfaces for Maliit Input Method Plugins
|
|
|
|
%package -n libmaliit-plugins-0_80-0-devel
|
|
Summary: Maliit Framework Input Method Library Development Files
|
|
Group: Development/Libraries
|
|
Requires: libmaliit-plugins-0_80-0
|
|
|
|
%description -n libmaliit-plugins-0_80-0-devel
|
|
Development files the Maliit Input Method Plugins Interfaces
|
|
|
|
%package -n libmaliit-plugins-quick-0_80-0
|
|
Summary: Maliit Framework Input Method Quick Library
|
|
Group: Development/Libraries
|
|
Requires(post): /sbin/ldconfig
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
%description -n libmaliit-plugins-quick-0_80-0
|
|
Qt Quick Plugin Interface - Interfaces for QML-based
|
|
Maliit Input Method Plugins
|
|
|
|
%package -n libmaliit-plugins-quick-0_80-0-devel
|
|
Summary: Maliit Framework Input Method Quick Development Files
|
|
Group: Development/Libraries
|
|
Requires: libmaliit-plugins-quick-0_80-0
|
|
|
|
%description -n libmaliit-plugins-quick-0_80-0-devel
|
|
Development files for the Qt Quick Plugin Interface -
|
|
Interfaces for QML-based Maliit Input Method Plugins
|
|
|
|
%package -n libmaliit-1_0-0
|
|
Summary: Maliit Framework Input Method library
|
|
Group: Development/Libraries
|
|
Requires(post): /sbin/ldconfig
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
%description -n libmaliit-1_0-0
|
|
Maliit toolkit support extension library for Qt applications
|
|
|
|
%package -n libmaliit-1_0-0-devel
|
|
Summary: Maliit Framework Input Method library development files
|
|
Group: Development/Libraries
|
|
Requires: libmaliit-1_0-0
|
|
|
|
%description -n libmaliit-1_0-0-devel
|
|
Development files for the Maliit toolkit support extension library
|
|
for Qt applications
|
|
|
|
%package doc
|
|
Summary: Maliit Framework Documentation
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description doc
|
|
Documentation for the Maliit Input Method Framework
|
|
|
|
%package sdk
|
|
Summary: Maliit Framework SDK
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: maliit-framework-doc
|
|
|
|
%description sdk
|
|
SDK environment for Maliit
|
|
|
|
%package tests
|
|
Summary: Maliit Framework Input Method Tests Package
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description tests
|
|
This package contains the files necessary to test
|
|
the Maliit input method framework
|
|
|
|
%package examples
|
|
Summary: Maliit Framework Input Method Examples
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description examples
|
|
This package contains examples applications for
|
|
the Maliit input method framework
|
|
|
|
%package -n maliit-inputcontext-gtk2
|
|
Summary: Maliit Input Context Plugin for Gtk+2
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description -n maliit-inputcontext-gtk2
|
|
Gtk+ plugin for basic Gtk+ version 2 toolkit support
|
|
|
|
%if 0%{?fedora} != 14
|
|
%package -n maliit-inputcontext-gtk3
|
|
Summary: Maliit Input Context Plugin for Gtk+3
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description -n maliit-inputcontext-gtk3
|
|
Gtk+ plugin for basic Gtk+ version 3 toolkit support
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%build
|
|
%{_qt4_qmake} -r M_IM_VERSION=%{version} \
|
|
M_IM_PREFIX=%{_prefix} \
|
|
M_IM_INSTALL_BIN=%{_bindir} \
|
|
M_IM_INSTALL_LIBS=%{_libdir} \
|
|
M_IM_INSTALL_HEADERS=%{_includedir} \
|
|
M_IM_INSTALL_SCHEMAS=%{_sysconfdir}/gconf/schemas \
|
|
M_IM_ENABLE_MULTITOUCH=false \
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make install INSTALL="install -p" INSTALL_ROOT=%{buildroot}
|
|
|
|
# Make dir for plugins
|
|
mkdir -p %{buildroot}%{_libdir}/maliit/plugins-0.80/
|
|
|
|
%if 0%{?suse_version}
|
|
%find_gconf_schemas
|
|
%endif
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
# FIXME: update GTK+ immodule cache correctly
|
|
|
|
%if 0%{?suse_version}
|
|
%pre -f %{name}.schemas_pre
|
|
|
|
%preun -f %{name}.schemas_preun
|
|
|
|
%posttrans -f %{name}.schemas_posttrans
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
%else
|
|
%pre
|
|
%gconf_schema_prepare maliit-framework
|
|
|
|
%preun
|
|
%gconf_schema_remove maliit-framework
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
%gconf_schema_upgrade maliit-framework
|
|
%endif
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
|
|
%post -n libmaliit-plugins-0_80-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libmaliit-plugins-0_80-0 -p /sbin/ldconfig
|
|
|
|
%post -n libmaliit-plugins-quick-0_80-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libmaliit-plugins-quick-0_80-0 -p /sbin/ldconfig
|
|
|
|
%post -n libmaliit-1_0-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libmaliit-1_0-0 -p /sbin/ldconfig
|
|
|
|
%if 0%{?suse_version}
|
|
%files -f %{name}.schemas_list
|
|
%else
|
|
%files
|
|
%endif
|
|
%defattr(-,root,root,-)
|
|
%doc README LICENSE.LGPL NEWS
|
|
%{_bindir}/maliit-server
|
|
%{_qt4_plugindir}/inputmethods/*.so
|
|
%{_datadir}/dbus-1/services/org.maliit.server.service
|
|
%if 0%{?fedora}
|
|
%{_sysconfdir}/gconf/schemas/maliit-framework.schemas
|
|
%endif
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%dir %{_includedir}/maliit/
|
|
%dir %{_includedir}/maliit/framework-0.80/
|
|
%dir %{_includedir}/maliit/framework-0.80/maliit/
|
|
%{_includedir}/maliit/framework-0.80/maliit/namespace.h
|
|
%{_libdir}/pkgconfig/maliit-framework-0.80.pc
|
|
|
|
%files -n libmaliit-plugins-0_80-0
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libmaliit-plugins-0.80.so.*
|
|
|
|
%files -n libmaliit-plugins-0_80-0-devel
|
|
%defattr(-,root,root,-)
|
|
%dir %{_includedir}/maliit/
|
|
%dir %{_includedir}/maliit/plugins-0.80/
|
|
%{_includedir}/maliit/plugins-0.80/
|
|
%{_libdir}/libmaliit-plugins-0.80.so
|
|
%{_libdir}/pkgconfig/maliit-plugins-0.80.pc
|
|
|
|
%files -n libmaliit-plugins-quick-0_80-0
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libmaliit-plugins-quick-0.80.so.*
|
|
%dir %{_libdir}/maliit/
|
|
%dir %{_libdir}/maliit/plugins-0.80/
|
|
%dir %{_libdir}/maliit/plugins-0.80/factories
|
|
%{_libdir}/maliit/plugins-0.80/factories/libmaliit-plugins-quick-factory-0.80.so
|
|
|
|
%files -n libmaliit-plugins-quick-0_80-0-devel
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libmaliit-plugins-quick-0.80.so
|
|
%dir %{_includedir}/maliit/
|
|
%{_includedir}/maliit/plugins-quick-0.80/
|
|
%{_libdir}/pkgconfig/maliit-plugins-quick-0.80.pc
|
|
|
|
%files -n libmaliit-1_0-0
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libmaliit-1.0.so.*
|
|
|
|
%files -n libmaliit-1_0-0-devel
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libmaliit-1.0.so
|
|
%dir %{_includedir}/maliit/
|
|
%{_includedir}/maliit/maliit-1.0/
|
|
%{_libdir}/pkgconfig/maliit-1.0.pc
|
|
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%dir %{_datadir}/doc/maliit-framework/
|
|
%{_datadir}/doc/maliit-framework/html
|
|
|
|
%files sdk
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/maliit-sdk
|
|
%dir %{_datadir}/doc/maliit-framework/
|
|
%{_datadir}/doc/maliit-framework/maliit-sdk
|
|
|
|
%files tests
|
|
%defattr(-,root,root,-)
|
|
%dir %{_libdir}/maliit-framework-tests/
|
|
%{_libdir}/maliit-framework-tests/*
|
|
%dir %{_datadir}/maliit-framework-tests/
|
|
%{_datadir}/maliit-framework-tests/*
|
|
|
|
%files examples
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/maliit-exampleapp-widgetproperties
|
|
%{_bindir}/maliit-exampleapp-plainqt
|
|
%{_bindir}/maliit-exampleapp-twofields
|
|
|
|
%files -n maliit-inputcontext-gtk2
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/maliit-exampleapp-gtk2
|
|
%{_libdir}/gtk-2.0/2.10.0/immodules/libim-maliit.so*
|
|
|
|
%if 0%{?fedora} != 14
|
|
%files -n maliit-inputcontext-gtk3
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/maliit-exampleapp-gtk3
|
|
%{_libdir}/gtk-3.0/3.0.0/immodules/libim-maliit.so*
|
|
%endif
|
|
|
|
%changelog
|
|
* Fri Jan 27 2012 Michael Hasselmann <michaelh@openismus.com> - 0.81.3-0
|
|
- Update to 0.81.3
|
|
|
|
* Thu Dec 22 2011 Michael Hasselmann <michaelh@openismus.com> - 0.81.2.1-0
|
|
- Update to 0.81.2.1
|
|
|
|
* Thu Dec 22 2011 Michael Hasselmann <michaelh@openismus.com> - 0.81.2-0
|
|
- Update to 0.81.2
|
|
|
|
* Tue Dec 13 2011 Luis Araujo <luis.araujo@collabora.co.uk> - 0.81.1.1-0
|
|
- Add libmaliit-plugins and libmaliit-plugins-devel packages
|
|
- Add libmaliit-plugins-quick and libmaliit-plugins-quick-dev packages
|
|
- Add libmaliit and libmaliit-dev packages
|
|
- Add doc, sdk, tests, examples, packages
|
|
- Add gtk2/gtk3 inputcontext packages
|
|
- Update some file paths inclusion
|
|
- Remove debian.{control,rules,changelog} files
|
|
- Remove maliit-framework.dsc
|
|
|
|
* Tue Dec 07 2011 Jon Nordby <jonn@openismus.com> - 0.81.1.1-0
|
|
- Update to 0.81.1.1
|
|
|
|
* Tue Sep 06 2011 Jon Nordby <jonn@openismus.com> - 0.81.0.1-2
|
|
- Update to 0.81.0.1
|
|
|
|
* Tue Sep 06 2011 Jon Nordby <jonn@openismus.com> - 0.80.8-0
|
|
- Update to 0.80.8
|
|
|
|
* Tue Sep 06 2011 Jon Nordby <jonn@openismus.com> - 0.80.5-0
|
|
- Rename to maliit-framework, update to 0.80.5
|
|
|
|
* Sat Jun 04 2011 Jan Arne Petersen <jpetersen@openismus.com> - 0.20.17-0
|
|
- Update to 0.20.17
|
|
- Update GConf processing for Fedora and OpenSuse
|
|
|
|
* Wed May 25 2011 Jan Arne Petersen <jpetersen@openismus.com> - 0.20.16-0
|
|
- Update to 0.20.16
|
|
|
|
* Sat Apr 30 2011 Jan Arne Petersen <jpetersen@openismus.com> - 0.20.7-0.2
|
|
- Add meego-inputmethodframework-0.20.7-buildsystem.patch
|
|
- Fix build by using configs for qmake
|
|
- Install GConf schemas file
|
|
|
|
* Thu Apr 28 2011 Jan Arne Petersen <jpetersen@openismus.com> - 0.20.7-0.1
|
|
- Add *.prf file to -devel package
|
|
|
|
* Tue Apr 26 2011 Jan Arne Petersen <jpetersen@openismus.com> - 0.20.7-0
|
|
- Initial packaging
|