Raymond Wooninck 2015-12-13 19:32:56 +00:00 committed by Git OBS Bridge
parent 7338e6e2ca
commit 91a32b53e2

View File

@ -24,14 +24,28 @@ License: LGPL-3.0+ and GPL-2.0 and BSD-3-Clause
Group: Amusements/Teaching/Other Group: Amusements/Teaching/Other
Url: http://edu.kde.org Url: http://edu.kde.org
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
%if 0%{?suse_version} > 1310 BuildRequires: fdupes
BuildRequires: gstreamer-plugins-qt-devel BuildRequires: gstreamer-plugins-qt5-devel
%else BuildRequires: extra-cmake-modules
BuildRequires: gstreamer-0_10-plugins-qt-devel
%endif
BuildRequires: libkde4-devel >= 4.10
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: xz BuildRequires: kdoctools-devel
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5XmlPatterns)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5QuickWidgets)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: kconfig-devel
BuildRequires: kconfigwidgets-devel
BuildRequires: kcoreaddons-devel
BuildRequires: kdeclarative-devel
BuildRequires: ki18n-devel
BuildRequires: kio-devel
BuildRequires: knewstuff-devel
BuildRequires: kwidgetsaddons-devel
BuildRequires: kxmlgui-devel
BuildRequires: kcrash-devel
# Runtime dep # Runtime dep
Requires: kqtquickcharts >= %{version} Requires: kqtquickcharts >= %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -44,14 +58,12 @@ Improve your pronunciation by listening to native speakers.
%setup -q %setup -q
%build %build
%cmake_kde4 -d build %cmake_kf5 -d build
%make_jobs %make_jobs
%install %install
%kde4_makeinstall -C build %kf5_makeinstall -C build
rm %{buildroot}%{_kde4_libdir}/libartikulate*.so %suse_update_desktop_file org.kde.%{name} X-KDE-Edu-Teaching
%suse_update_desktop_file %{name} X-KDE-Edu-Teaching
%kde_post_install
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
@ -60,18 +72,18 @@ Improve your pronunciation by listening to native speakers.
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING* %doc COPYING*
%dir %{_kde4_datadir}/appdata %{_kf5_bindir}/artikulate
%{_kde4_bindir}/artikulate %{_kf5_bindir}/artikulate_editor
%{_kde4_datadir}/appdata/artikulate.appdata.xml %{_kf5_libdir}/libartikulatelearnerprofile.so*
%{_kde4_libdir}/libartikulatelearnerprofile.so.* %{_kf5_libdir}/libartikulatecore.so*
%{_kde4_libdir}/libartikulatecore.so.* %{_kf5_libdir}/libartikulatesound.so*
%{_kde4_libdir}/libartikulatesound.so.* %{_datadir}/artikulate/
%{_kde4_appsdir}/artikulate/ %{_kf5_applicationsdir}/org.kde.artikulate.desktop
%{_kde4_applicationsdir}/artikulate.desktop %{_kf5_htmldir}/en/artikulate/
%{_kde4_htmldir}/en/artikulate/ %{_kf5_configdir}/artikulate.knsrc
%{_kde4_configdir}/artikulate.knsrc %dir %{_kf5_configkcfgdir}
%{_kde4_configkcfgdir}/artikulate.kcfg %{_kf5_configkcfgdir}/artikulate.kcfg
%{_kde4_appsdir}/artikulateui.rc %{_kf5_iconsdir}/hicolor/*/*/artikulate*.*
%{_kde4_iconsdir}/hicolor/*/*/artikulate*.* %{_datadir}/appdata/
%changelog %changelog