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