cleanup, use %majmin %make_build %ldconfig_scriptlets

epel9
Rex Dieter 7 years ago
parent 61f5706317
commit 9dee968574

27
.gitignore vendored

@ -1,28 +1 @@
/ktextwidgets-5.18.0.tar.xz
/ktextwidgets-5.19.0.tar.xz
/ktextwidgets-5.20.0.tar.xz
/ktextwidgets-5.21.0.tar.xz
/ktextwidgets-5.22.0.tar.xz
/ktextwidgets-5.23.0.tar.xz
/ktextwidgets-5.24.0.tar.xz
/ktextwidgets-5.25.0.tar.xz
/ktextwidgets-5.26.0.tar.xz
/ktextwidgets-5.27.0.tar.xz
/ktextwidgets-5.29.0.tar.xz
/ktextwidgets-5.31.0.tar.xz
/ktextwidgets-5.32.0.tar.xz
/ktextwidgets-5.33.0.tar.xz
/ktextwidgets-5.34.0.tar.xz
/ktextwidgets-5.35.0.tar.xz
/ktextwidgets-5.36.0.tar.xz
/ktextwidgets-5.37.0.tar.xz
/ktextwidgets-5.38.0.tar.xz
/ktextwidgets-5.39.0.tar.xz
/ktextwidgets-5.40.0.tar.xz
/ktextwidgets-5.41.0.tar.xz
/ktextwidgets-5.42.0.tar.xz
/ktextwidgets-5.43.0.tar.xz
/ktextwidgets-5.44.0.tar.xz
/ktextwidgets-5.45.0.tar.xz
/ktextwidgets-5.46.0.tar.xz
/ktextwidgets-5.47.0.tar.xz

@ -1,33 +1,33 @@
%global framework ktextwidgets
Name: kf5-%{framework}
Name: kf5-%{framework}
Version: 5.47.0
Release: 1%{?dist}
Summary: KDE Frameworks 5 Tier 3 addon with advanced text editing widgets
Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 3 addon with advanced text editing widgets
License: LGPLv2+
URL: https://cgit.kde.org/%{framework}.git
License: LGPLv2+
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-kcompletion-devel >= %{version}
BuildRequires: kf5-kconfig-devel >= %{version}
BuildRequires: kf5-kconfigwidgets-devel >= %{version}
BuildRequires: kf5-ki18n-devel >= %{version}
BuildRequires: kf5-kiconthemes-devel >= %{version}
BuildRequires: kf5-kservice-devel >= %{version}
BuildRequires: kf5-kwidgetsaddons-devel >= %{version}
BuildRequires: kf5-kwindowsystem-devel >= %{version}
BuildRequires: kf5-rpm-macros >= %{version}
BuildRequires: kf5-sonnet-devel >= %{version}
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-kcompletion-devel >= %{majmin}
BuildRequires: kf5-kconfig-devel >= %{majmin}
BuildRequires: kf5-kconfigwidgets-devel >= %{majmin}
BuildRequires: kf5-ki18n-devel >= %{majmin}
BuildRequires: kf5-kiconthemes-devel >= %{majmin}
BuildRequires: kf5-kservice-devel >= %{majmin}
BuildRequires: kf5-kwidgetsaddons-devel >= %{majmin}
BuildRequires: kf5-kwindowsystem-devel >= %{majmin}
BuildRequires: kf5-rpm-macros
BuildRequires: kf5-sonnet-devel >= %{majmin}
BuildRequires: qt5-qtbase-devel
%if !0%{?bootstrap}
@ -40,8 +40,8 @@ KDE Frameworks 5 Tier 3 addon with advanced text edting widgets.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: kf5-ki18n-devel >= %{version}
Requires: kf5-sonnet-devel >= %{version}
Requires: kf5-ki18n-devel >= %{majmin}
Requires: kf5-sonnet-devel >= %{majmin}
Requires: qt5-qtbase-devel
%description devel
The %{name}-devel package contains libraries and header files for
@ -58,19 +58,18 @@ pushd %{_target_platform}
%{cmake_kf5} ..
popd
make %{?_smp_mflags} -C %{_target_platform}
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang ktextwidgets5_qt --with-qt --all-name
%find_lang %{name} --all-name
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files -f ktextwidgets5_qt.lang
%files -f %{name}.lang
%doc README.md
%license COPYING.LIB
%{_kf5_libdir}/libKF5TextWidgets.so.*
@ -85,6 +84,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%changelog
* Fri Jun 08 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-2
- cleanup, use %%majmin %%make_build %%ldconfig_scriptlets
* Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1
- 5.47.0

Loading…
Cancel
Save