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+ 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
@ -32,11 +35,11 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: kf5-ki18n-devel Requires: kf5-ki18n-devel
Requires: kf5-kconfig-devel Requires: kf5-kconfig-devel
%description devel %description 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}
@ -53,10 +56,8 @@ make %{?_smp_mflags} -C %{_target_platform}
%find_lang kunitconversion5_qt --with-qt --all-name %find_lang kunitconversion5_qt --with-qt --all-name
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files -f kunitconversion5_qt.lang %files -f kunitconversion5_qt.lang
%doc COPYING.LIB README.md %doc COPYING.LIB README.md
%{_kf5_libdir}/libKF5UnitConversion.so.* %{_kf5_libdir}/libKF5UnitConversion.so.*

Loading…
Cancel
Save