75 lines
1.7 KiB
RPMSpec
75 lines
1.7 KiB
RPMSpec
|
|
%global framework kplotting
|
||
|
|
|
||
|
|
Name: kf5-%{framework}
|
||
|
|
Version: 5.55.0
|
||
|
|
Release: 1
|
||
|
|
Summary: KDE Frameworks 5 Tier 1 addon for plotting
|
||
|
|
|
||
|
|
License: GPLv2+ and LGPLv2+
|
||
|
|
URL: https://cgit.kde.org/%{framework}.git
|
||
|
|
|
||
|
|
%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/%{majmin}/%{framework}-%{version}.tar.xz
|
||
|
|
|
||
|
|
BuildRequires: extra-cmake-modules >= %{majmin}
|
||
|
|
BuildRequires: kf5-rpm-macros >= %{majmin}
|
||
|
|
BuildRequires: pcre-devel
|
||
|
|
BuildRequires: perl-interpreter
|
||
|
|
BuildRequires: qt5-qtbase-devel
|
||
|
|
|
||
|
|
Requires: kf5-filesystem >= %{majmin}
|
||
|
|
|
||
|
|
%description
|
||
|
|
KPlotting provides classes to do plotting.
|
||
|
|
|
||
|
|
%package devel
|
||
|
|
Summary: Development files for %{name}
|
||
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||
|
|
Requires: qt5-qtbase-devel
|
||
|
|
%description devel
|
||
|
|
The %{name}-devel package contains libraries and header files for
|
||
|
|
developing applications that use %{name}.
|
||
|
|
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n %{framework}-%{version}
|
||
|
|
|
||
|
|
|
||
|
|
%build
|
||
|
|
mkdir %{_target_platform}
|
||
|
|
pushd %{_target_platform}
|
||
|
|
%{cmake_kf5} ..
|
||
|
|
popd
|
||
|
|
|
||
|
|
%make_build -C %{_target_platform}
|
||
|
|
|
||
|
|
|
||
|
|
%install
|
||
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||
|
|
|
||
|
|
|
||
|
|
%ldconfig_scriptlets
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc README.md
|
||
|
|
%license COPYING.LIB
|
||
|
|
%{_kf5_libdir}/libKF5Plotting.so.*
|
||
|
|
|
||
|
|
%files devel
|
||
|
|
%{_kf5_includedir}/kplotting_version.h
|
||
|
|
%{_kf5_includedir}/KPlotting/
|
||
|
|
%{_kf5_libdir}/libKF5Plotting.so
|
||
|
|
%{_kf5_libdir}/cmake/KF5Plotting/
|
||
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_KPlotting.pri
|
||
|
|
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
|
||
|
|
- Initial release for OpenEuler
|