Clean up spec file, autodetect stable/unstable download folder

epel8
Dan Vrátil 10 years ago
parent 25fec3b3a9
commit 38fcff41fe

@ -1,4 +1,3 @@
#%define snapshot 20140205
%define framework kwidgetsaddons
Name: kf5-%{framework}
@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 1 addon with various classes on top of QtW
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
@ -50,17 +52,15 @@ make %{?_smp_mflags} -C %{_target_platform}
%make_install -C %{_target_platform}
%find_lang kwidgetsaddons5_qt --with-qt --all-name
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f kwidgetsaddons5_qt.lang
%doc COPYING.LIB README.md
%{_kf5_libdir}/libKF5WidgetsAddons.so.*
%{_kf5_datadir}/kf5/kcharselect
%files devel
%{_kf5_includedir}/kwidgetsaddons_version.h
%{_kf5_includedir}/KWidgetsAddons

Loading…
Cancel
Save