format spec
This commit is contained in:
parent
9bf19178bb
commit
22ec762bb1
@ -1,12 +1,11 @@
|
|||||||
%global framework kiconthemes
|
%global framework kiconthemes
|
||||||
|
|
||||||
Name: kf5-%{framework}
|
Name: kf5-%{framework}
|
||||||
Version: 5.55.0
|
Version: 5.55.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: KDE Frameworks 5 Tier 3 integration module with icon themes
|
Summary: KDE Frameworks 5 Tier 3 integration module with icon themes
|
||||||
|
License: LGPLv2+ and GPLv2+
|
||||||
License: LGPLv2+ and GPLv2+
|
URL: https://api.kde.org/frameworks/kiconthemes/
|
||||||
URL: https://api.kde.org/frameworks/kiconthemes/
|
|
||||||
|
|
||||||
%global majmin %(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)
|
||||||
@ -15,31 +14,17 @@ URL: https://api.kde.org/frameworks/kiconthemes/
|
|||||||
%else
|
%else
|
||||||
%global stable stable
|
%global stable stable
|
||||||
%endif
|
%endif
|
||||||
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
|
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
|
||||||
|
|
||||||
## upstream patches
|
BuildRequires: extra-cmake-modules >= %{majmin} kf5-karchive-devel >= %{majmin} kf5-kconfigwidgets-devel >= %{majmin} kf5-kconfigwidgets-devel >= %{majmin} kf5-kcoreaddons-devel >= %{majmin} kf5-ki18n-devel >= %{majmin} kf5-kitemviews-devel >= %{majmin} kf5-kwidgetsaddons-devel >= %{majmin} kf5-rpm-macros qt5-qtbase-devel qt5-qtsvg-develRequires: hicolor-icon-theme
|
||||||
|
|
||||||
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
|
%description
|
||||||
KDE Frameworks 5 Tier 3 integration module with icon themes
|
KDE Frameworks 5 Tier 3 integration module with icon themes
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release} qt5-qtbase-devel
|
||||||
Requires: qt5-qtbase-devel
|
|
||||||
%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}.
|
||||||
@ -54,18 +39,15 @@ mkdir %{_target_platform}
|
|||||||
pushd %{_target_platform}
|
pushd %{_target_platform}
|
||||||
%{cmake_kf5} ..
|
%{cmake_kf5} ..
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%make_build -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 %{name} --all-name
|
%find_lang %{name} --all-name
|
||||||
|
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license COPYING.LIB
|
%license COPYING.LIB
|
||||||
@ -85,3 +67,4 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
|
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
|
||||||
- Initial release for OpenEuler
|
- Initial release for OpenEuler
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user