kdecoration/kdecoration.spec

120 lines
2.9 KiB
RPMSpec
Raw Normal View History

2022-02-11 14:37:38 +08:00
%undefine __cmake_in_source_build
2020-08-12 17:27:39 +08:00
# uncomment to enable bootstrap mode
#global bootstrap 1
%if !0%{?bootstrap}
# avoid slow arm archs for now
%ifnarch %{arm}
%global tests 1
%endif
%endif
2022-02-11 14:37:38 +08:00
Name: kdecoration
Summary: A plugin-based library to create window decorations
2024-01-08 09:28:17 +08:00
Version: 5.27.10
Release: 2
2020-08-12 17:27:39 +08:00
2022-02-11 14:37:38 +08:00
License: LGPLv2
URL: https://cgit.kde.org/%{name}.git
2020-08-12 17:27:39 +08:00
2023-08-07 10:33:53 +08:00
%global majmin %majmin_ver_kf5
%global stable %stable_kf5
2022-02-11 14:37:38 +08:00
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz
2020-08-12 17:27:39 +08:00
BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
BuildRequires: qt5-qtbase-devel
%if 0%{?tests}
2022-02-11 14:37:38 +08:00
BuildRequires: dbus-x11
BuildRequires: xorg-x11-server-Xvfb
2020-08-12 17:27:39 +08:00
%endif
# For AutoReq cmake-filesystem
2022-02-11 14:37:38 +08:00
BuildRequires: cmake
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: make
2020-08-12 17:27:39 +08:00
Requires: kf5-filesystem
%description
%{summary}.
%package devel
Summary: Developer files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
%{summary}.
%prep
%autosetup -p1
## still needed? -- rex
# Cleanup includes mess, install everything into %%{_kf5_includedir}/KDecoration2
sed -i "s/set(KDECORATION2_INCLUDEDIR \"\${CMAKE_INSTALL_INCLUDEDIR}\/KDecoration2\")/set(KDECORATION2_INCLUDEDIR \"\${KF5_INCLUDE_INSTALL_DIR}\/KDecoration2\")/" CMakeLists.txt
%build
%{cmake_kf5}
%{cmake_build}
2020-08-12 17:27:39 +08:00
%install
%{cmake_install}
2020-08-12 17:27:39 +08:00
# create/own plugin dir
mkdir -p %{buildroot}%{_kf5_qtplugindir}/org.kde.kdecoration2/
%check
%{ctest}
2020-08-12 17:27:39 +08:00
%ldconfig_scriptlets
%files
2022-02-11 14:37:38 +08:00
%license LICENSES/*.txt
2020-08-12 17:27:39 +08:00
%{_kf5_libdir}/libkdecorations2.so.*
%{_kf5_libdir}/libkdecorations2private.so.*
%{_datadir}/locale/*/LC_MESSAGES/kdecoration.mo
%dir %{_kf5_qtplugindir}/org.kde.kdecoration2/
%files devel
%{_kf5_libdir}/libkdecorations2.so
%{_kf5_libdir}/libkdecorations2private.so
%{_kf5_libdir}/cmake/KDecoration2/
%{_kf5_includedir}/kdecoration2_version.h
%{_includedir}/KDecoration2
%changelog
* Fri Nov 15 2024 ChenYanpan <chenyanpan@xfusion.com> - 5.27.10-2
- adapt to the new CMake macros to fix build failure
2024-01-08 09:28:17 +08:00
* Mon Jan 08 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 5.27.10-1
- Update package to version 5.27.10
2023-08-07 10:33:53 +08:00
* Mon Aug 07 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 5.27.6-1
- Update package to version 5.27.6
2022-12-12 15:13:41 +08:00
* Mon Dec 12 2022 liqiuyu <liqiuyu@kylinos.cn> - 5.26.4-1
- Update package to version 5.26.4
2022-09-05 13:57:25 +08:00
* Mon Sep 05 2022 liweiganga <liweiganga@uniontech.com> - 5.25.4-1
- update to upstream version 5.25.4
2022-07-26 22:43:02 +08:00
* Tue Jul 5 2022 peijiankang<peijiankang@kylinos.com> - 5.25.2-1
- update to upstream version 5.25.2
* Fri Feb 11 2022 peijiankang<peijiankang@kylinos.com> - 5.24.0-1
2022-02-11 14:37:38 +08:00
- update to upstream version 5.24.0
2022-07-26 22:43:02 +08:00
* Fri Jan 28 2022 peijiankang<peijiankang@kylinos.com> - 5.18.5-1
- revert to upstream version 5.18.5
* Tue Jan 18 2022 peijiankang<peijiankang@kylinos.com> - 5.23.3-1
- update to upstream version 5.23.3
2020-08-12 17:27:39 +08:00
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 5.15.4-1
- Initial release for OpenEuler