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

Loading…
Cancel
Save