forked from pool/maliit-framework
f06b0ed902
OBS-URL: https://build.opensuse.org/package/show/M17N:Maliit/maliit-framework?expand=0&rev=9
179 lines
4.4 KiB
RPMSpec
179 lines
4.4 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.0.1
|
|
Release: 0%{?dist}
|
|
Summary: Maliit Input Method Framework
|
|
|
|
Group: System Environment/Libraries
|
|
License: LGPLv2
|
|
URL: http://www.maliit.org
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
BuildRequires: pkgconfig(QtCore) >= 4.7.0
|
|
BuildRequires: pkgconfig(QtDeclarative)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
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%{?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
|
|
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.
|
|
|
|
#FIXME: split up and package as per the Maliit packaging guidelines:
|
|
# https://wiki.maliit.org/PackagingGuidelines
|
|
|
|
%prep
|
|
%setup -q -n maliit-framework-%{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
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
%gconf_schema_upgrade maliit-framework
|
|
|
|
%preun
|
|
%gconf_schema_remove maliit-framework
|
|
%endif
|
|
|
|
%postun
|
|
/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
|
|
%{_bindir}/maliit-exampleapp-*
|
|
%{_bindir}/maliit-sdk
|
|
%{_libdir}/*.so.*
|
|
%dir %{_libdir}/maliit
|
|
%dir %{_libdir}/maliit/plugins-0.80
|
|
%{_qt4_plugindir}/inputmethods/*.so
|
|
%dir %{_libdir}/maliit-framework-tests
|
|
%{_libdir}/maliit-framework-tests/*
|
|
%dir %{_datadir}/doc/maliit-framework
|
|
%{_datadir}/doc/maliit-framework/*
|
|
%{_libdir}/gtk-2.0/2.10.0/immodules/libim-maliit.so*
|
|
%{_libdir}/maliit/plugins-0.80/factories/libmaliit-plugins-quick-factory-0.80.so
|
|
%{_datadir}/dbus-1/services/org.maliit.server.service
|
|
%{_datadir}/maliit-framework-tests/*
|
|
%dir %{_datadir}/maliit-framework-tests
|
|
|
|
%if 0%{?fedora}
|
|
%{_sysconfdir}/gconf/schemas/maliit-framework.schemas
|
|
%endif
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/maliit/
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%changelog
|
|
* 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
|