Clean up spec file, autodetect stable/unstable download folder

epel9
Dan Vrátil 10 years ago
parent 5982bef35c
commit eadee61c8f

@ -1,4 +1,3 @@
#%define snapshot 20140205
%define framework sonnet
Name: kf5-%{framework}
@ -8,18 +7,18 @@ Summary: KDE Frameworks 5 Tier 1 solution for spell checking
License: LGPLv2+
URL: http://www.kde.org
# git archive --format=tar --prefix=%{framework}-%{version}/ \
# --remote=git://anongit.kde.org/%{framework}.git master | \
# bzip2 -c > %{name}-%{version}-%{snapshot}git.tar.bz2
#Source0: %{name}-%{version}-%{snapshot}git.tar.bz2
Source0: http://download.kde.org/stable/frameworks/%{version}/%{framework}-%{version}.tar.xz
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/frameworks/%{version}/%{framework}-%{version}.tar.xz
BuildRequires: libupnp-devel
BuildRequires: systemd-devel
BuildRequires: hunspell-devel
# legacy spellcheckers: We don't want to drag these in, we use Hunspell.
#BuildRequires: aspell-devel
#BuildRequires: hspell-devel
BuildRequires: zlib-devel
BuildRequires: kf5-rpm-macros
@ -73,22 +72,21 @@ make %{?_smp_mflags} -C %{_target_platform}
%make_install -C %{_target_platform}
%find_lang sonnet5_qt --with-qt --all-name
%post core -p /sbin/ldconfig
%postun core -p /sbin/ldconfig
%post ui -p /sbin/ldconfig
%postun ui -p /sbin/ldconfig
%files
%doc COPYING.LIB README.md
%post core -p /sbin/ldconfig
%postun core -p /sbin/ldconfig
%files core
%{_kf5_libdir}/libKF5SonnetCore.so.*
%{_kf5_plugindir}/sonnet
%{_kf5_datadir}/kf5/sonnet/trigrams.map
%post ui -p /sbin/ldconfig
%postun ui -p /sbin/ldconfig
%files ui -f sonnet5_qt.lang
%{_kf5_libdir}/libKF5SonnetUi.so.*
@ -102,6 +100,7 @@ make %{?_smp_mflags} -C %{_target_platform}
%{_kf5_archdatadir}/mkspecs/modules/qt_SonnetCore.pri
%{_kf5_archdatadir}/mkspecs/modules/qt_SonnetUi.pri
%changelog
* Mon Nov 03 2014 Daniel Vrátil <dvratil@redhat.com> - 5.4.0-1
- KDE Frameworks 5.4.0

Loading…
Cancel
Save