forked from pool/sonnet
This commit is contained in:
parent
dde308c86e
commit
a0aab1868d
19
sonnet.spec
19
sonnet.spec
@ -16,19 +16,22 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without lang
|
||||
%define sonum 5
|
||||
%define _tar_path 5.9
|
||||
Name: sonnet
|
||||
Version: %{_tar_path}.0
|
||||
Version: 5.9.0
|
||||
Release: 0
|
||||
#BuildRequires: aspell-devel
|
||||
BuildRequires: cmake >= 2.8.12
|
||||
# Enchant plugin is currently disabled upstream
|
||||
#BuildRequires: enchant-devel
|
||||
BuildRequires: extra-cmake-modules >= %{version}
|
||||
BuildRequires: extra-cmake-modules >= %{_tar_path}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: kf5-filesystem
|
||||
%if %{with lang}
|
||||
BuildRequires: libqt5-linguist-devel >= 5.2.0
|
||||
%endif
|
||||
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
|
||||
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
|
||||
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
|
||||
@ -52,7 +55,9 @@ HSpell, Enchant, ASpell and HUNSPELL.
|
||||
Summary: KDE spell checking library
|
||||
Group: System/GUI/KDE
|
||||
Obsoletes: libKF5SonnetCore4
|
||||
%if %{with lang}
|
||||
Recommends: libKF5SonnetCore%sonum-lang = %{version}
|
||||
%endif
|
||||
%requires_ge libQt5Core5
|
||||
|
||||
%description -n libKF5SonnetCore%sonum
|
||||
@ -96,13 +101,11 @@ HSpell, Enchant, ASpell and HUNSPELL. Development files.
|
||||
|
||||
%install
|
||||
%kf5_makeinstall -C build
|
||||
%fdupes %{buildroot}%{_kf5_sharedir}
|
||||
%fdupes -s %{buildroot}
|
||||
|
||||
if [ -e po ]; then
|
||||
%if %{with lang}
|
||||
%find_lang %{name}5 --with-qt --without-mo
|
||||
else
|
||||
touch %{name}5.lang
|
||||
fi
|
||||
%endif
|
||||
|
||||
%post -n libKF5SonnetCore%sonum -p /sbin/ldconfig
|
||||
|
||||
@ -112,7 +115,9 @@ fi
|
||||
|
||||
%postun -n libKF5SonnetUi%sonum -p /sbin/ldconfig
|
||||
|
||||
%if %{with lang}
|
||||
%files -n libKF5SonnetCore%sonum-lang -f %{name}5.lang
|
||||
%endif
|
||||
|
||||
%files -n libKF5SonnetCore%sonum
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user