summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--sources1
-rw-r--r--xcb-imdkit.spec60
3 files changed, 62 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..0bf0164 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/xcb-imdkit-1.0.9.tar.zst
diff --git a/sources b/sources
new file mode 100644
index 0000000..3da717e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+617b72f1dc02fa7aad3d19a837220f00 xcb-imdkit-1.0.9.tar.zst
diff --git a/xcb-imdkit.spec b/xcb-imdkit.spec
new file mode 100644
index 0000000..0af19ed
--- /dev/null
+++ b/xcb-imdkit.spec
@@ -0,0 +1,60 @@
+Name: xcb-imdkit
+Version: 1.0.9
+Release: 2
+Summary: Input method development support for xcb
+# source files in src/xlibi18n use the "old style" MIT license known as NTP.
+License: LGPLv2 and MIT
+URL: https://github.com/fcitx/xcb-imdkit
+Source0: https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}.tar.zst
+
+BuildRequires: gnupg2
+BuildRequires: cmake
+BuildRequires: extra-cmake-modules
+BuildRequires: gcc-c++
+BuildRequires: pkgconfig(xcb)
+BuildRequires: pkgconfig(xcb-keysyms)
+BuildRequires: pkgconfig(xcb-util)
+
+%description
+xcb-imdkit is an implementation of xim protocol in xcb,
+comparing with the implementation of IMDkit with Xlib,
+and xim inside Xlib, it has less memory foot print,
+better performance, and safer on malformed client.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Devel files for xcb-imdkit
+
+%prep
+%autosetup
+
+%build
+%{cmake_kf5}
+%cmake_build
+
+%install
+%cmake_install
+
+%check
+%ctest ARGS="--output-on-failure --timeout 300" ||:
+
+%files
+%license LICENSES/LGPL-2.1-only.txt
+%doc README.md
+%{_libdir}/lib%{name}.so.1*
+
+%files devel
+%{_includedir}/xcb-imdkit/
+%{_libdir}/cmake/XCBImdkit/
+%{_libdir}/lib%{name}.so
+%{_libdir}/pkgconfig/xcb-imdkit.pc
+
+%changelog
+* Mon Nov 11 2024 Funda Wang <fundawang@yeah.net> - 1.0.9-2
+- adopt to new cmake macro
+
+* Wed Aug 14 2024 liu-hengjian <411918005@qq.com> - 1.0.9-1
+- Init package version to 1.0.9