diff --git a/fcitx-qt5-1.2.4.tar.xz b/fcitx-qt5-1.2.4.tar.xz new file mode 100644 index 0000000..8eae6e7 Binary files /dev/null and b/fcitx-qt5-1.2.4.tar.xz differ diff --git a/fcitx-qt5.spec b/fcitx-qt5.spec new file mode 100644 index 0000000..3bd449a --- /dev/null +++ b/fcitx-qt5.spec @@ -0,0 +1,61 @@ +%global project_name FcitxQt5 + +Name: fcitx-qt5 +Version: 1.2.4 +Release: 1 +Summary: Fcitx IM module for Qt5 +License: GPLv2+ and BSD +URL: https://github.com/fcitx/fcitx-qt5 +Source0: http://download.fcitx-im.org/%{name}/%{name}-%{version}.tar.xz + +BuildRequires: cmake, fcitx-devel, qt5-qtbase-devel, libxkbcommon-devel, extra-cmake-modules, gettext-devel qt5-qtbase-private-devel +%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} +%filter_provides_in %{_qt5_plugindir}/platforminputcontexts/libfcitxplatforminputcontextplugin.so +%filter_provides_in %{_libdir}/fcitx/qt/libfcitx-quickphrase-editor5.so +%filter_setup + +%description +This package provides Fcitx Qt5 input context. + +%package devel +Summary: Development files for fcitx-qt5 +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: cmake + +%description devel +The %{name}-devel package contains libraries and header files necessary for +developing programs using fcitx-qt5 libraries. + +%prep +%setup -q + +%build +mkdir -pv build +pushd build +%cmake .. +popd +make %{?_smp_mflags} -C build + +%install +make install/fast DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" -C build +%find_lang %{name} + +%ldconfig_scriptlets + +%files -f %{name}.lang +%doc README +%license COPYING COPYING.BSD +%{_libdir}/fcitx/libexec/%{name}-gui-wrapper +%{_libdir}/lib%{project_name}*.so.* +%{_libdir}/fcitx/qt/ +%{_qt5_plugindir}/platforminputcontexts/libfcitxplatforminputcontextplugin.so + +%files devel +%{_includedir}/%{project_name} +%{_libdir}/lib%{project_name}*.so +%{_libdir}/cmake/* + + +%changelog +* Tue Dec 22 2020 weidong - 1.2.4-1 +- Initial package