Clean up spec file, autodetect stable/unstable download folder

epel8
Dan Vrátil 10 years ago
parent 05c820fda5
commit 8aacf44366

@ -1,4 +1,3 @@
#%define snapshot 20140205
%define framework kiconthemes %define framework kiconthemes
Name: kf5-%{framework} Name: kf5-%{framework}
@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 3 integration module with icon themes
License: LGPLv2+ and GPLv2+ License: LGPLv2+ and GPLv2+
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
@ -42,6 +44,7 @@ Requires: kf5-kitemviews-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}
@ -57,11 +60,10 @@ make %{?_smp_mflags} -C %{_target_platform}
%make_install -C %{_target_platform} %make_install -C %{_target_platform}
%find_lang kiconthemes5_qt --with-qt --all-name %find_lang kiconthemes5_qt --with-qt --all-name
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files -f kiconthemes5_qt.lang %files -f kiconthemes5_qt.lang
%doc COPYING.LIB README.md %doc COPYING.LIB README.md
%{_kf5_bindir}/kiconfinder5 %{_kf5_bindir}/kiconfinder5

Loading…
Cancel
Save