Clean up spec file, autodetect stable/unstable download folder

epel8
Dan Vrátil 10 years ago
parent 372602e845
commit b9caa2affa

@ -8,7 +8,13 @@ Summary: KDE Frameworks 5 Tier 1 addon with archive functions
License: LGPLv2+ and BSD License: LGPLv2+ and BSD
URL: http://www.kde.org URL: http://www.kde.org
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: zlib-devel BuildRequires: zlib-devel
BuildRequires: bzip2-devel BuildRequires: bzip2-devel
@ -47,11 +53,10 @@ make %{?_smp_mflags} -C %{_target_platform}
%install %install
%make_install -C %{_target_platform} %make_install -C %{_target_platform}
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%doc AUTHORS COPYING COPYING.LIB README.md %doc AUTHORS COPYING COPYING.LIB README.md
%{_kf5_libdir}/libKF5Archive.so.* %{_kf5_libdir}/libKF5Archive.so.*
@ -63,6 +68,7 @@ make %{?_smp_mflags} -C %{_target_platform}
%{_kf5_libdir}/cmake/KF5Archive %{_kf5_libdir}/cmake/KF5Archive
%{_kf5_archdatadir}/mkspecs/modules/qt_KArchive.pri %{_kf5_archdatadir}/mkspecs/modules/qt_KArchive.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