88 lines
2.2 KiB
RPMSpec
88 lines
2.2 KiB
RPMSpec
%global framework kiconthemes
|
|
|
|
Name: kf5-%{framework}
|
|
Version: 5.55.0
|
|
Release: 1
|
|
Summary: KDE Frameworks 5 Tier 3 integration module with icon themes
|
|
|
|
License: LGPLv2+ and GPLv2+
|
|
URL: https://api.kde.org/frameworks/kiconthemes/
|
|
|
|
%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
|
|
|
|
## upstream patches
|
|
|
|
BuildRequires: extra-cmake-modules >= %{majmin}
|
|
BuildRequires: kf5-karchive-devel >= %{majmin}
|
|
BuildRequires: kf5-kconfigwidgets-devel >= %{majmin}
|
|
BuildRequires: kf5-kconfigwidgets-devel >= %{majmin}
|
|
BuildRequires: kf5-kcoreaddons-devel >= %{majmin}
|
|
BuildRequires: kf5-ki18n-devel >= %{majmin}
|
|
BuildRequires: kf5-kitemviews-devel >= %{majmin}
|
|
BuildRequires: kf5-kwidgetsaddons-devel >= %{majmin}
|
|
BuildRequires: kf5-rpm-macros
|
|
BuildRequires: qt5-qtbase-devel
|
|
BuildRequires: qt5-qtsvg-devel
|
|
|
|
Requires: hicolor-icon-theme
|
|
|
|
%description
|
|
KDE Frameworks 5 Tier 3 integration module with icon themes
|
|
|
|
%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} -p1
|
|
|
|
|
|
%build
|
|
mkdir %{_target_platform}
|
|
pushd %{_target_platform}
|
|
%{cmake_kf5} ..
|
|
popd
|
|
|
|
%make_build -C %{_target_platform}
|
|
|
|
|
|
%install
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
%find_lang %{name} --all-name
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files -f %{name}.lang
|
|
%doc README.md
|
|
%license COPYING.LIB
|
|
%{_kf5_sysconfdir}/xdg/%{framework}.*
|
|
%{_kf5_bindir}/kiconfinder5
|
|
%{_kf5_libdir}/libKF5IconThemes.so.*
|
|
%{_kf5_qtplugindir}/iconengines/KIconEnginePlugin.so
|
|
|
|
%files devel
|
|
%{_kf5_includedir}/kiconthemes_version.h
|
|
%{_kf5_includedir}/KIconThemes/
|
|
%{_kf5_libdir}/libKF5IconThemes.so
|
|
%{_kf5_libdir}/cmake/KF5IconThemes/
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_KIconThemes.pri
|
|
|
|
|
|
%changelog
|
|
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
|
|
- Initial release for OpenEuler
|