Clean up spec file, autodetect stable/unstable download folder

epel9
Dan Vrátil 10 years ago
parent f73d9b06b9
commit 5c2f520789

@ -1,4 +1,3 @@
#%define snapshot 20140205
%define framework kded %define framework kded
Name: kf5-%{framework} Name: kf5-%{framework}
@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 3 addon with extensible daemon for system-
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: kf5-rpm-macros BuildRequires: kf5-rpm-macros
BuildRequires: extra-cmake-modules BuildRequires: extra-cmake-modules
@ -36,7 +38,6 @@ tasks are built in, others are started on demand.
Custom KDED modules can be provided by 3rd party frameworks and Custom KDED modules can be provided by 3rd party frameworks and
applications. applications.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
@ -52,10 +53,10 @@ Requires: kf5-kservice-devel
The %{name}-devel package contains libraries and header files for The %{name}-devel package contains libraries and header files for
developing applications that use %{name}. developing applications that use %{name}.
%prep %prep
%setup -q -n %{framework}-%{version} %setup -q -n %{framework}-%{version}
%build %build
mkdir -p %{_target_platform} mkdir -p %{_target_platform}
pushd %{_target_platform} pushd %{_target_platform}
@ -67,11 +68,10 @@ make %{?_smp_mflags} -C %{_target_platform}
%install %install
%make_install -C %{_target_platform} %make_install -C %{_target_platform}
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%doc COPYING.LIB README.md %doc COPYING.LIB README.md
%{_kf5_bindir}/kded5 %{_kf5_bindir}/kded5

Loading…
Cancel
Save