From 8306632df0bd90af21ef7700899e00f5f8984a77 Mon Sep 17 00:00:00 2001 From: Dan Vrátil Date: Nov 03 2014 12:55:42 +0000 Subject: Clean up spec file, autodetect stable/unstable download folder --- diff --git a/kf5-kservice.spec b/kf5-kservice.spec index 7f7c162..bc9c9f3 100644 --- a/kf5-kservice.spec +++ b/kf5-kservice.spec @@ -1,4 +1,3 @@ -#%define snapshot 20140205 %define framework kservice Name: kf5-%{framework} @@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 3 solution for advanced plugin and service License: GPLv2+ and 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: kf5-rpm-macros BuildRequires: extra-cmake-modules @@ -31,7 +33,6 @@ Requires: kf5-filesystem KDE Frameworks 5 Tier 3 solution for advanced plugin and service introspection. - %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} @@ -46,6 +47,7 @@ Requires: kf5-kdoctools-devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. + %prep %setup -q -n %{framework}-%{version} @@ -63,11 +65,10 @@ make %{?_smp_mflags} -C %{_target_platform} mv %{buildroot}/%{_kf5_sysconfdir}/xdg/menus/applications.menu %{buildroot}/%{_kf5_sysconfdir}/xdg/menus/kf5-applications.menu -%post -p /sbin/ldconfig +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig - %files -f kservice5_qt.lang %doc COPYING COPYING.LIB README.md %config %{_kf5_sysconfdir}/xdg/menus/kf5-applications.menu