summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-07-21 06:34:44 +0000
committerCoprDistGit <infra@openeuler.org>2023-07-21 06:34:44 +0000
commit6518e510d543cff20ff98eef53ad2e0a8c392ce9 (patch)
tree2b0ce6235492a6ca5366ce50ed3a23518eedcdd0
parent469ca6c7c60c0290dd16d658e1ee5aa1c0350cc0 (diff)
automatic import of ktouchopeneuler23.03
-rw-r--r--.gitignore1
-rw-r--r--ktouch.spec102
-rw-r--r--sources1
3 files changed, 104 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b029027 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ktouch-22.08.0.tar.xz
diff --git a/ktouch.spec b/ktouch.spec
new file mode 100644
index 0000000..dcb6ab1
--- /dev/null
+++ b/ktouch.spec
@@ -0,0 +1,102 @@
+%undefine __cmake_in_source_build
+%global majmin_ver %(echo %{version} | cut -d. -f1,2)
+
+Name: ktouch
+Summary: Touch Typing Tutor
+Version: 22.08.0
+Release: 1
+
+License: GPLv2+
+URL: https://www.kde.org/applications/education/ktouch/
+
+%global revision %(echo %{version} | cut -d. -f3)
+
+%if %{revision} >= 50
+%global stable unstable
+%else
+%global stable stable
+%endif
+
+Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz
+
+BuildRequires: desktop-file-utils
+BuildRequires: extra-cmake-modules
+BuildRequires: kf5-rpm-macros
+BuildRequires: cmake(KF5Completion)
+BuildRequires: cmake(KF5Config)
+BuildRequires: cmake(KF5ConfigWidgets)
+BuildRequires: cmake(KF5CoreAddons)
+BuildRequires: cmake(KF5Declarative)
+BuildRequires: cmake(KF5DocTools)
+BuildRequires: cmake(KF5I18n)
+BuildRequires: cmake(KF5IconThemes)
+BuildRequires: cmake(KF5ItemViews)
+BuildRequires: cmake(KF5KCMUtils)
+BuildRequires: cmake(KF5TextWidgets)
+BuildRequires: cmake(KF5WidgetsAddons)
+BuildRequires: cmake(KF5WindowSystem)
+BuildRequires: cmake(KF5XmlGui)
+BuildRequires: cmake(Qt5Gui)
+BuildRequires: cmake(Qt5Qml)
+BuildRequires: cmake(Qt5Quick)
+BuildRequires: cmake(Qt5QuickWidgets)
+BuildRequires: cmake(Qt5QuickControls2)
+BuildRequires: cmake(Qt5Script)
+BuildRequires: cmake(Qt5Sql)
+BuildRequires: cmake(Qt5Test)
+BuildRequires: cmake(Qt5Widgets)
+BuildRequires: cmake(Qt5X11Extras)
+BuildRequires: cmake(Qt5Xml)
+BuildRequires: cmake(Qt5XmlPatterns)
+BuildRequires: libappstream-glib
+BuildRequires: pkgconfig(xcb-xkb)
+BuildRequires: pkgconfig(xkbfile)
+
+Requires: kqtquickcharts%{?_isa} >= %{majmin_ver}
+Requires: qt5-qtquickcontrols qt5-qtgraphicaleffects
+
+Conflicts: kdeedu < 4.7.0-10
+
+%description
+%{summary}.
+
+
+%prep
+%autosetup
+
+
+%build
+mkdir %{_target_platform}
+pushd %{_target_platform}
+%{cmake_kf5} .. \
+ -DCOMPILE_QML:BOOL=OFF
+popd
+%make_build -C %{_target_platform}
+
+
+%install
+make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+
+%find_lang %{name} --all-name --with-html --with-man
+
+
+%check
+appstream-util validate-relax --nonet %{buildroot}%{_kf5_metainfodir}/org.kde.%{name}.appdata.xml ||:
+desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop
+
+
+%files -f %{name}.lang
+%doc AUTHORS
+%license LICENSES/*
+%{_kf5_bindir}/ktouch
+%{_kf5_datadir}/ktouch/
+%{_kf5_metainfodir}/org.kde.%{name}.appdata.xml
+%{_kf5_datadir}/applications/org.kde.%{name}.desktop
+%{_kf5_datadir}/config.kcfg/ktouch.kcfg
+%{_kf5_datadir}/icons/hicolor/*/*/ktouch.*
+%{_mandir}/man1/ktouch.*
+
+
+%changelog
+* Mon Dec 19 2022 misaka00251 <liuxin@iscas.ac.cn> - 22.08.0-1
+- Init package
diff --git a/sources b/sources
new file mode 100644
index 0000000..b5aabbd
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+497c5f9b87aafae69bf35553736c7688 ktouch-22.08.0.tar.xz