diff --git a/kf5-kcrash.spec b/kf5-kcrash.spec index 8af71ac..cef7322 100644 --- a/kf5-kcrash.spec +++ b/kf5-kcrash.spec @@ -1,4 +1,3 @@ -#%define snapshot 20140205 %define framework kcrash Name: kf5-%{framework} @@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 2 addon for handling application crashes 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: libX11-devel @@ -56,11 +58,10 @@ make %{?_smp_mflags} -C %{_target_platform} %install %make_install -C %{_target_platform} -%post -p /sbin/ldconfig +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig - %files %doc COPYING.LIB README.md %{_kf5_libdir}/libKF5Crash.so.* @@ -72,6 +73,7 @@ make %{?_smp_mflags} -C %{_target_platform} %{_kf5_libdir}/cmake/KF5Crash %{_kf5_archdatadir}/mkspecs/modules/qt_KCrash.pri + %changelog * Mon Nov 03 2014 Daniel Vrátil - 5.4.0-1 - KDE Frameworks 5.4.0