diff --git a/kmouth.spec b/kmouth.spec index 66733e1..87df67a 100644 --- a/kmouth.spec +++ b/kmouth.spec @@ -17,6 +17,12 @@ Name: kmouth +BuildRequires: alsa-devel +BuildRequires: libkde4-devel +BuildRequires: libspeechd-devel +BuildRequires: oxygen-icon-theme-large +BuildRequires: sbl +BuildRequires: xz Version: 17.03.80 Release: 0 %define kf5_version 5.26.0 @@ -27,28 +33,10 @@ License: GPL-2.0+ Group: System/GUI/KDE Url: http://www.kde.org Source0: %{name}-%{version}.tar.xz -BuildRequires: alsa-devel -BuildRequires: extra-cmake-modules -BuildRequires: kcompletion-devel -BuildRequires: kconfig-devel -BuildRequires: kconfigwidgets-devel -BuildRequires: kcoreaddons-devel -BuildRequires: kcrash-devel -BuildRequires: kdoctools-devel -BuildRequires: ki18n-devel -BuildRequires: kio-devel -BuildRequires: kwidgetsaddons-devel -BuildRequires: kxmlgui-devel -BuildRequires: libspeechd-devel -BuildRequires: pkgconfig -BuildRequires: sbl -BuildRequires: update-desktop-files -BuildRequires: pkgconfig(Qt5Core) -BuildRequires: pkgconfig(Qt5PrintSupport) -BuildRequires: pkgconfig(Qt5TextToSpeech) -BuildRequires: pkgconfig(Qt5Widgets) -BuildRequires: pkgconfig(Qt5Xml) BuildRoot: %{_tmppath}/%{name}-%{version}-build +Provides: kde4-kmouth = 4.3.0 +Obsoletes: kde4-kmouth < 4.3.0 +%kde4_runtime_requires %description The computer "speaks" the entered text for talking with people. @@ -57,12 +45,14 @@ The computer "speaks" the entered text for talking with people. %setup -q %build - %cmake_kf5 -d build + %cmake_kde4 -d build %make_jobs %install - %kf5_makeinstall -C build - %suse_update_desktop_file org.kde.kmouth Utility Accessibility + cd build + %kde4_makeinstall + %suse_update_desktop_file kmouth Utility Accessibility + %kde_post_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -70,13 +60,12 @@ The computer "speaks" the entered text for talking with people. %files %defattr(-,root,root) %doc COPYING COPYING.DOC -%{_kf5_bindir}/kmouth -%{_kf5_applicationsdir}/*.desktop -%{_kf5_htmldir}/en/kmouth/ -%{_kf5_iconsdir}/hicolor/*/*/*.png -%{_kf5_appsdir}/kmouth/ -%{_mandir}/man1/kmouth.1%{ext_man} -%{_kf5_configdir}/kmouthrc -%{_kf5_kxmlguidir}/kmouth/ +%config %_kde_config_dir/kmouthrc +%_kde4_bindir/kmouth +%_kde4_applicationsdir/*.desktop +%_kde4_htmldir/en/kmouth/ +%_kde4_iconsdir/hicolor/*/*/*.png +%_kde4_appsdir/kmouth/ +%_mandir/man1/kmouth.1.gz %changelog