cleanup, use %majmin

epel8
Rex Dieter 7 years ago
parent 87e163f328
commit 5d60931cfe

@ -2,31 +2,31 @@
Name: kf5-%{framework}
Version: 5.47.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 3 addon for creating configuration dialogs
License: GPLv2+ and LGPLv2+ and MIT
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)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/%{framework}-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= %{version}
BuildRequires: kf5-kauth-devel >= %{version}
BuildRequires: kf5-kcodecs-devel >= %{version}
BuildRequires: kf5-kconfig-devel >= %{version}
BuildRequires: kf5-kcoreaddons-devel >= %{version}
BuildRequires: kf5-kdoctools-devel >= %{version}
BuildRequires: kf5-kguiaddons-devel >= %{version}
BuildRequires: kf5-ki18n-devel >= %{version}
BuildRequires: kf5-kwidgetsaddons-devel >= %{version}
BuildRequires: kf5-rpm-macros >= %{version}
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-kauth-devel >= %{majmin}
BuildRequires: kf5-kcodecs-devel >= %{majmin}
BuildRequires: kf5-kconfig-devel >= %{majmin}
BuildRequires: kf5-kcoreaddons-devel >= %{majmin}
BuildRequires: kf5-kdoctools-devel >= %{majmin}
BuildRequires: kf5-kguiaddons-devel >= %{majmin}
BuildRequires: kf5-ki18n-devel >= %{majmin}
BuildRequires: kf5-kwidgetsaddons-devel >= %{majmin}
BuildRequires: kf5-rpm-macros
BuildRequires: qt5-qtbase-devel
%description
@ -36,10 +36,10 @@ well as a set of widgets which uses KConfig to store their settings.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: kf5-kauth-devel >= %{version}
Requires: kf5-kcodecs-devel >= %{version}
Requires: kf5-kconfig-devel >= %{version}
Requires: kf5-kwidgetsaddons-devel >= %{version}
Requires: kf5-kauth-devel >= %{majmin}
Requires: kf5-kcodecs-devel >= %{majmin}
Requires: kf5-kconfig-devel >= %{majmin}
Requires: kf5-kwidgetsaddons-devel >= %{majmin}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
@ -72,7 +72,7 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%{_kf5_sysconfdir}/xdg/%{framework}*
%{_kf5_libdir}/libKF5ConfigWidgets.so.*
%{_kf5_bindir}/preparetips5
%{_kf5_mandir}/man1/*
%{_kf5_mandir}/man1/preparetips5.1*
## fixme: %%lang'ify these -- rex
%{_kf5_datadir}/locale/*/kf5_entry.desktop
@ -85,6 +85,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%changelog
* Thu Jun 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-2
- cleanup, use %%majmin
* Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1
- 5.47.0

Loading…
Cancel
Save