Clean up spec file, autodetect stable/unstable download folder

epel9
Dan Vrátil 10 years ago
parent ce39260fe4
commit c9a8fa21b1

@ -7,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 2 addon for unit conversions
License: 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
@ -32,11 +35,11 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: kf5-ki18n-devel
Requires: kf5-kconfig-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{framework}-%{version}
@ -53,10 +56,8 @@ make %{?_smp_mflags} -C %{_target_platform}
%find_lang kunitconversion5_qt --with-qt --all-name
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f kunitconversion5_qt.lang
%doc COPYING.LIB README.md
%{_kf5_libdir}/libKF5UnitConversion.so.*

Loading…
Cancel
Save