diff --git a/kf5-karchive.spec b/kf5-karchive.spec index 3b91d3d..aee9d26 100644 --- a/kf5-karchive.spec +++ b/kf5-karchive.spec @@ -8,7 +8,13 @@ Summary: KDE Frameworks 5 Tier 1 addon with archive functions License: LGPLv2+ and BSD URL: http://www.kde.org -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: zlib-devel BuildRequires: bzip2-devel @@ -47,11 +53,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 AUTHORS COPYING COPYING.LIB README.md %{_kf5_libdir}/libKF5Archive.so.* @@ -63,6 +68,7 @@ make %{?_smp_mflags} -C %{_target_platform} %{_kf5_libdir}/cmake/KF5Archive %{_kf5_archdatadir}/mkspecs/modules/qt_KArchive.pri + %changelog * Mon Nov 03 2014 Daniel Vrátil - 5.4.0-1 - KDE Frameworks 5.4.0