cleanup, use %majmin %make_build %ldconfig_scriptlets

epel9
Rex Dieter 7 years ago
parent 131a440a77
commit 1ec449857d

46
.gitignore vendored

@ -1,47 +1 @@
/kjsembed-4.100.0.tar.xz
/kjsembed-5.0.0.tar.xz
/kjsembed-5.1.0.tar.xz
/kjsembed-5.2.0.tar.xz
/kjsembed-5.3.0.tar.xz
/kjsembed-5.4.0.tar.xz
/kjsembed-5.5.0.tar.xz
/kjsembed-5.6.0.tar.xz
/kjsembed-5.7.0.tar.xz
/kjsembed-5.8.0.tar.xz
/kjsembed-5.9.0.tar.xz
/kjsembed-5.10.0.tar.xz
/kjsembed-5.11.0.tar.xz
/kjsembed-5.12.0.tar.xz
/kjsembed-5.13.0.tar.xz
/kjsembed-5.14.0.tar.xz
/kjsembed-5.15.0.tar.xz
/kjsembed-5.16.0.tar.xz
/kjsembed-5.17.0.tar.xz
/kjsembed-5.18.0.tar.xz
/kjsembed-5.19.0.tar.xz
/kjsembed-5.20.0.tar.xz
/kjsembed-5.21.0.tar.xz
/kjsembed-5.22.0.tar.xz
/kjsembed-5.23.0.tar.xz
/kjsembed-5.24.0.tar.xz
/kjsembed-5.25.0.tar.xz
/kjsembed-5.26.0.tar.xz
/kjsembed-5.27.0.tar.xz
/kjsembed-5.29.0.tar.xz
/kjsembed-5.31.0.tar.xz
/kjsembed-5.32.0.tar.xz
/kjsembed-5.33.0.tar.xz
/kjsembed-5.34.0.tar.xz
/kjsembed-5.35.0.tar.xz
/kjsembed-5.36.0.tar.xz
/kjsembed-5.37.0.tar.xz
/kjsembed-5.38.0.tar.xz
/kjsembed-5.39.0.tar.xz
/kjsembed-5.40.0.tar.xz
/kjsembed-5.41.0.tar.xz
/kjsembed-5.42.0.tar.xz
/kjsembed-5.43.0.tar.xz
/kjsembed-5.44.0.tar.xz
/kjsembed-5.45.0.tar.xz
/kjsembed-5.46.0.tar.xz
/kjsembed-5.47.0.tar.xz /kjsembed-5.47.0.tar.xz

@ -1,33 +1,31 @@
%global framework kjsembed %global framework kjsembed
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 for binding JS objects to QObjects Summary: KDE Frameworks 5 Tier 3 addon for binding JS objects to QObjects
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}/portingAids/%{framework}-%{version}.tar.xz Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/portingAids/%{framework}-%{version}.tar.xz
BuildRequires: extra-cmake-modules >= %{version} BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-kdoctools-devel >= %{version} BuildRequires: kf5-kdoctools-devel >= %{majmin}
BuildRequires: kf5-ki18n-devel >= %{version} BuildRequires: kf5-ki18n-devel >= %{majmin}
BuildRequires: kf5-kjs-devel >= %{version} BuildRequires: kf5-kjs-devel >= %{majmin}
BuildRequires: kf5-rpm-macros >= %{version} BuildRequires: kf5-rpm-macros
BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qttools-static BuildRequires: qt5-qttools-static
Requires: kf5-filesystem >= %{version}
%description %description
KSJEmbed provides a method of binding JavaScript objects to QObjects, so you KSJEmbed provides a method of binding JavaScript objects to QObjects, so you
can script your applications. can script your applications.
@ -35,8 +33,8 @@ can script your applications.
%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-kjs-devel >= %{version} Requires: kf5-kjs-devel >= %{majmin}
Requires: kf5-ki18n-devel >= %{version} Requires: kf5-ki18n-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}.
@ -52,19 +50,18 @@ pushd %{_target_platform}
%{cmake_kf5} .. %{cmake_kf5} ..
popd popd
make %{?_smp_mflags} -C %{_target_platform} %make_build -C %{_target_platform}
%install %install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang kjsembed5_qt --with-man --with-qt --all-name %find_lang %{name} --all-name --with-man
%post -p /sbin/ldconfig %ldconfig_scriptlets
%postun -p /sbin/ldconfig
%files -f kjsembed5_qt.lang %files -f %{name}.lang
%doc README.md %doc README.md
%license COPYING.LIB %license COPYING.LIB
%{_kf5_bindir}/kjscmd5 %{_kf5_bindir}/kjscmd5
@ -80,6 +77,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%changelog %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 * Sat Jun 02 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.47.0-1
- 5.47.0 - 5.47.0

Loading…
Cancel
Save