Clean up spec file, autodetect stable/unstable download folder

epel8
Dan Vrátil 10 years ago
parent 9df10439d6
commit bd39b2839d

@ -1,4 +1,3 @@
#%define snapshot 20140205
%define framework kauth %define framework kauth
Name: kf5-%{framework} Name: kf5-%{framework}
@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 2 integration module to perform actions as
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: polkit-qt5-1-devel BuildRequires: polkit-qt5-1-devel
@ -55,11 +57,10 @@ make %{?_smp_mflags} -C %{_target_platform}
%make_install -C %{_target_platform} %make_install -C %{_target_platform}
%find_lang kauth5_qt --with-qt --all-name %find_lang kauth5_qt --with-qt --all-name
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files -f kauth5_qt.lang %files -f kauth5_qt.lang
%doc COPYING.LIB README.md %doc COPYING.LIB README.md
%{_kf5_libdir}/libKF5Auth.so.* %{_kf5_libdir}/libKF5Auth.so.*
@ -69,7 +70,6 @@ make %{?_smp_mflags} -C %{_target_platform}
%{_kf5_datadir}/kf5/kauth/ %{_kf5_datadir}/kf5/kauth/
%{_kf5_libexecdir}/kauth/kauth-policy-gen %{_kf5_libexecdir}/kauth/kauth-policy-gen
%files devel %files devel
%{_kf5_includedir}/kauth_version.h %{_kf5_includedir}/kauth_version.h
%{_kf5_includedir}/KAuth %{_kf5_includedir}/KAuth

Loading…
Cancel
Save