forked from pool/maliit-framework
3eda6e443b
OBS-URL: https://build.opensuse.org/package/show/M17N:Maliit/maliit-framework?expand=0&rev=1
157 lines
3.8 KiB
RPMSpec
157 lines
3.8 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.80.5
|
|
Release: 0%{?dist}
|
|
Summary: Maliit Input Method Framework
|
|
|
|
Group: System Environment/Libraries
|
|
License: LGPLv2
|
|
URL: https://gitorious.org/maliit/maliit-framework
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
BuildRequires: pkgconfig(QtCore) >= 4.7.0
|
|
BuildRequires: pkgconfig(QtDeclarative)
|
|
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.
|
|
|
|
%prep
|
|
%setup -q -n maliit-maliit-framework
|
|
|
|
%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 \
|
|
CONFIG+=notests
|
|
|
|
# FIXME: compiling with notests should not install test plugins to maliit-framework-tests
|
|
|
|
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}
|
|
|
|
%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-plainqt
|
|
%{_libdir}/*.so.*
|
|
%dir %{_libdir}/maliit
|
|
%dir %{_libdir}/maliit/plugins-0.80
|
|
%{_qt4_plugindir}/inputmethods/*.so
|
|
%dir %{_libdir}/maliit-framework-tests
|
|
%{_libdir}/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.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
|