From 77b167d7021a85ad04b62af7502977613832236e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Mon, 3 Nov 2014 12:54:11 +0100 Subject: [PATCH] Clean up spec file, autodetect stable/unstable download folder --- kf5-kdnssd.spec | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/kf5-kdnssd.spec b/kf5-kdnssd.spec index 16f0316..a85ce7c 100644 --- a/kf5-kdnssd.spec +++ b/kf5-kdnssd.spec @@ -1,4 +1,3 @@ -#%define snapshot 20140205 %define framework kdnssd Name: kf5-%{framework} @@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 1 integration module for DNS-SD services ( License: LGPLv2+ URL: http://www.kde.org -# git archive --format=tar --prefix=%{framework}-framework-%{version}/ \ -# --remote=git://anongit.kde.org/%{framework}-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: avahi-devel @@ -50,11 +52,10 @@ make %{?_smp_mflags} -C %{_target_platform} %make_install -C %{_target_platform} %find_lang kdnssd5_qt --with-qt --all-name -%post -p /sbin/ldconfig +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig - %files -f kdnssd5_qt.lang %doc COPYING.LIB README.md %{_kf5_libdir}/libKF5DNSSD.so.* @@ -65,6 +66,7 @@ make %{?_smp_mflags} -C %{_target_platform} %{_kf5_libdir}/cmake/KF5DNSSD %{_kf5_archdatadir}/mkspecs/modules/qt_KDNSSD.pri + %changelog * Mon Nov 03 2014 Daniel Vrátil - 5.4.0-1 - KDE Frameworks 5.4.0