]> git.pld-linux.org Git - packages/ka5-artikulate.git/blobdiff - ka5-artikulate.spec
- updated to 23.08.0; cmake -B build
[packages/ka5-artikulate.git] / ka5-artikulate.spec
index fa70af5b7207f5cdbcfaca6ff8f369b6d95e4886..d63e6aa26752e03df67489685bccf92de6b3a3aa 100644 (file)
@@ -1,15 +1,18 @@
-%define                kdeappsver      21.04.3
-%define                kframever       5.56.0
-%define                qtver           5.9.0
+#
+# Conditional build:
+%bcond_with    tests           # build with tests
+%define                kdeappsver      23.08.0
+%define                kframever       5.94.0
+%define                qtver           5.15.2
 %define                kaname          artikulate
 Summary:       Artikulate
 Name:          ka5-%{kaname}
-Version:       21.04.3
+Version:       23.08.0
 Release:       1
 License:       GPL v2+/LGPL v2.1+
 Group:         X11/Libraries
-Source0:       http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
-# Source0-md5: 91a90d21c21efb1dd3bbf043fecfda92
+Source0:       https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
+# Source0-md5: 6fe8019bc22583ed28bb7b17fac7d27a
 URL:           http://www.kde.org/
 BuildRequires: Qt5Core-devel >= %{qtver}
 BuildRequires: Qt5Gui-devel >= 5.11.1
@@ -21,7 +24,7 @@ BuildRequires:        Qt5Sql-devel
 BuildRequires: Qt5Test-devel
 BuildRequires: Qt5Widgets-devel
 BuildRequires: Qt5XmlPatterns-devel
-BuildRequires: cmake >= 2.8.12
+BuildRequires: cmake >= 3.20
 BuildRequires: gettext-devel
 BuildRequires: kf5-extra-cmake-modules >= %{kframever}
 BuildRequires: kf5-karchive-devel >= %{kframever}
@@ -45,18 +48,29 @@ the application and language specifications. All course files are
 maintained in a separate repository named "artikulate-data" and hosted
 on the KDE infrastructure.
 
+%description -l pl.UTF-8
+Artikulate jest programem wspomagającym naukę języków, który pomaga
+poprawić umiejętności wymowy dla wielu z nich. To repozytorium
+zawiera program i specyfikacje języków. Wszystkie plików kursów
+są utrzymywane w oddzielnym repozytorum nazwanym "artikulate-data"
+i hostowanym przez infrastrukturę KDE.
+
 %prep
 %setup -q -n %{kaname}-%{version}
 
 %build
-install -d build
-cd build
 %cmake \
+       -B build \
        -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
        -DHTML_INSTALL_DIR=%{_kdedocdir} \
-       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-       ..
-%ninja_build
+       -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+%ninja_build -C build
+
+%if %{with tests}
+ctest --test-dir build
+%endif
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -77,9 +91,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libartikulatecore.so.0
 %attr(755,root,root) %{_libdir}/libartikulatelearnerprofile.so.0
 %attr(755,root,root) %{_libdir}/libartikulatesound.so.0
-%dir %{_libdir}/qt5/plugins/artikulate
-%dir %{_libdir}/qt5/plugins/artikulate/libsound
-%attr(755,root,root) %{_libdir}/qt5/plugins/artikulate/libsound/qtmultimediabackend.so
 %{_desktopdir}/org.kde.artikulate.desktop
 %{_datadir}/config.kcfg/artikulate.kcfg
 %{_datadir}/metainfo/org.kde.artikulate.appdata.xml
This page took 0.412453 seconds and 4 git commands to generate.