Clean up spec file, autodetect stable/unstable download folder

epel9
Dan Vrátil 10 years ago
parent 962b9c864b
commit 05a9de6ef9

@ -1,4 +1,3 @@
#%define snapshot 20140205
%define framework solid %define framework solid
Name: kf5-%{framework} Name: kf5-%{framework}
@ -8,11 +7,14 @@ Summary: KDE Frameworks 5 Tier 1 integration module that provides hardwar
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: libupnp-devel BuildRequires: libupnp-devel
BuildRequires: systemd-devel BuildRequires: systemd-devel
@ -60,11 +62,10 @@ make %{?_smp_mflags} -C %{_target_platform}
%make_install -C %{_target_platform} %make_install -C %{_target_platform}
%find_lang solid5_qt --with-qt --all-name %find_lang solid5_qt --with-qt --all-name
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files -f solid5_qt.lang %files -f solid5_qt.lang
%doc COPYING.LIB README.md TODO %doc COPYING.LIB README.md TODO
%{_kf5_qmldir}/org/kde/solid %{_kf5_qmldir}/org/kde/solid
@ -78,6 +79,7 @@ make %{?_smp_mflags} -C %{_target_platform}
%{_kf5_libdir}/cmake/KF5Solid %{_kf5_libdir}/cmake/KF5Solid
%{_kf5_archdatadir}/mkspecs/modules/qt_Solid.pri %{_kf5_archdatadir}/mkspecs/modules/qt_Solid.pri
%changelog %changelog
* Mon Nov 03 2014 Daniel Vrátil <dvratil@redhat.com> - 5.4.0-1 * Mon Nov 03 2014 Daniel Vrátil <dvratil@redhat.com> - 5.4.0-1
- KDE Frameworks 5.4.0 - KDE Frameworks 5.4.0

Loading…
Cancel
Save