cleanup, use %majmin %autosetup

epel9
Rex Dieter 7 years ago
parent c328ead263
commit 058de6d68c

@ -10,32 +10,32 @@
Name: kf5-%{framework} Name: kf5-%{framework}
Version: 5.47.0 Version: 5.47.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 3 addon with extra API to write KConfigModules Summary: KDE Frameworks 5 Tier 3 addon with extra API to write KConfigModules
License: LGPLv2+ License: LGPLv2+
URL: https://cgit.kde.org/%{framework}.git URL: https://cgit.kde.org/%{framework}.git
%global versiondir %(echo %{version} | cut -d. -f1-2) %global majmin %(echo %{version} | cut -d. -f1-2)
%global revision %(echo %{version} | cut -d. -f3) %global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50 %if %{revision} >= 50
%global stable unstable %global stable unstable
%else %else
%global stable stable %global stable stable
%endif %endif
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= %{version} BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-kconfigwidgets-devel >= %{version} BuildRequires: kf5-kconfigwidgets-devel >= %{majmin}
BuildRequires: kf5-kcoreaddons-devel >= %{version} BuildRequires: kf5-kcoreaddons-devel >= %{majmin}
BuildRequires: kf5-kdeclarative-devel >= %{version} BuildRequires: kf5-kdeclarative-devel >= %{majmin}
BuildRequires: kf5-ki18n-devel >= %{version} BuildRequires: kf5-ki18n-devel >= %{majmin}
BuildRequires: kf5-kiconthemes-devel >= %{version} BuildRequires: kf5-kiconthemes-devel >= %{majmin}
BuildRequires: kf5-kitemviews-devel >= %{version} BuildRequires: kf5-kitemviews-devel >= %{majmin}
BuildRequires: kf5-kpackage-devel >= %{version} BuildRequires: kf5-kpackage-devel >= %{majmin}
BuildRequires: kf5-kservice-devel >= %{version} BuildRequires: kf5-kservice-devel >= %{majmin}
BuildRequires: kf5-kxmlgui-devel >= %{version} BuildRequires: kf5-kxmlgui-devel >= %{majmin}
BuildRequires: kf5-rpm-macros >= %{version} BuildRequires: kf5-rpm-macros
BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtdeclarative-devel BuildRequires: qt5-qtdeclarative-devel
@ -53,15 +53,15 @@ created with the KConfigWidgets framework.
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: kf5-kconfigwidgets-devel >= %{version} Requires: kf5-kconfigwidgets-devel >= %{majmin}
Requires: kf5-kservice-devel >= %{version} Requires: kf5-kservice-devel >= %{majmin}
%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} %autosetup -n %{framework}-%{version} -p1
%build %build
@ -111,6 +111,9 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%changelog %changelog
* Thu Jun 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-2
- cleanup, use %%majmin %%autosetup
* Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1 * Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1
- 5.47.0 - 5.47.0

Loading…
Cancel
Save