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
Url: http://edu.kde.org
Source0: %{name}-%{version}.tar.xz
%if 0%{?suse_version} > 1310
BuildRequires: gstreamer-plugins-qt-devel
%else
BuildRequires: gstreamer-0_10-plugins-qt-devel
%endif
BuildRequires: libkde4-devel >= 4.10
BuildRequires: fdupes
BuildRequires: gstreamer-plugins-qt5-devel
BuildRequires: extra-cmake-modules
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
Requires: kqtquickcharts >= %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -44,14 +58,12 @@ Improve your pronunciation by listening to native speakers.
%setup -q
%build
%cmake_kde4 -d build
%cmake_kf5 -d build
%make_jobs
%install
%kde4_makeinstall -C build
rm %{buildroot}%{_kde4_libdir}/libartikulate*.so
%suse_update_desktop_file %{name} X-KDE-Edu-Teaching
%kde_post_install
%kf5_makeinstall -C build
%suse_update_desktop_file org.kde.%{name} X-KDE-Edu-Teaching
%post -p /sbin/ldconfig
@ -60,18 +72,18 @@ Improve your pronunciation by listening to native speakers.
%files
%defattr(-,root,root)
%doc COPYING*
%dir %{_kde4_datadir}/appdata
%{_kde4_bindir}/artikulate
%{_kde4_datadir}/appdata/artikulate.appdata.xml
%{_kde4_libdir}/libartikulatelearnerprofile.so.*
%{_kde4_libdir}/libartikulatecore.so.*
%{_kde4_libdir}/libartikulatesound.so.*
%{_kde4_appsdir}/artikulate/
%{_kde4_applicationsdir}/artikulate.desktop
%{_kde4_htmldir}/en/artikulate/
%{_kde4_configdir}/artikulate.knsrc
%{_kde4_configkcfgdir}/artikulate.kcfg
%{_kde4_appsdir}/artikulateui.rc
%{_kde4_iconsdir}/hicolor/*/*/artikulate*.*
%{_kf5_bindir}/artikulate
%{_kf5_bindir}/artikulate_editor
%{_kf5_libdir}/libartikulatelearnerprofile.so*
%{_kf5_libdir}/libartikulatecore.so*
%{_kf5_libdir}/libartikulatesound.so*
%{_datadir}/artikulate/
%{_kf5_applicationsdir}/org.kde.artikulate.desktop
%{_kf5_htmldir}/en/artikulate/
%{_kf5_configdir}/artikulate.knsrc
%dir %{_kf5_configkcfgdir}
%{_kf5_configkcfgdir}/artikulate.kcfg
%{_kf5_iconsdir}/hicolor/*/*/artikulate*.*
%{_datadir}/appdata/
%changelog