Clean up spec file, autodetect stable/unstable download folder

epel9
Dan Vrátil 10 years ago
parent f52e32ccb3
commit 2fdc2c0a47

@ -1,7 +1,5 @@
#%define snapshot 20140206
%define framework attica
Name: kf5-attica
Version: 5.4.0
Release: 1%{?dist}
@ -11,7 +9,13 @@ Group: Development/Libraries
License: LGPLv2+
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: kf5-rpm-macros
BuildRequires: extra-cmake-modules
@ -34,7 +38,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%prep
%setup -q -n %{framework}-%{version}
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
@ -43,7 +46,6 @@ popd
make %{?_smp_mflags} -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}

Loading…
Cancel
Save