From d2c653727660e9af37c6f56230f63cff472e8767 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Wed, 14 Oct 2015 06:42:46 -0500 Subject: [PATCH] 5.4.2-2 - .spec cosmetics - own %{_kf5_qtplugindir}/org.kde.kdecoration2/ --- kdecoration.spec | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/kdecoration.spec b/kdecoration.spec index 7c7a5b3..ae0071e 100644 --- a/kdecoration.spec +++ b/kdecoration.spec @@ -1,10 +1,10 @@ -Name: kdecoration -Summary: A plugin-based library to create window decorations +Name: kdecoration +Summary: A plugin-based library to create window decorations Version: 5.4.2 Release: 1%{?dist} -License: LGPLv2 -URL: https://projects.kde.org/projects/kde/workspace/kdecoration +License: LGPLv2 +URL: https://projects.kde.org/projects/kde/workspace/kdecoration %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 @@ -12,8 +12,9 @@ URL: https://projects.kde.org/projects/kde/workspace/kdecoration %else %global stable stable %endif -Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz +Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz +BuildRequires: cmake BuildRequires: extra-cmake-modules BuildRequires: kf5-rpm-macros BuildRequires: qt5-qtbase-devel @@ -24,9 +25,8 @@ Requires: kf5-filesystem %{summary}. %package devel -Summary: Developer files for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} - +Summary: Developer files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. @@ -39,7 +39,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} # 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 -mkdir -p %{_target_platform} +mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd @@ -50,22 +50,31 @@ make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +# create/own plugin dir +mkdir -p %{buildroot}%{_kf5_qtplugindir}/org.kde.kdecoration2/ + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -%doc COPYING.LIB +%license COPYING.LIB %{_kf5_libdir}/libkdecorations2.so.* %{_kf5_libdir}/libkdecorations2private.so.* +%dir %{_kf5_qtplugindir}/org.kde.kdecoration2/ %files devel %{_kf5_libdir}/libkdecorations2.so %{_kf5_libdir}/libkdecorations2private.so -%{_kf5_libdir}/cmake/KDecoration2 -%{_kf5_includedir}/KDecoration2 +%{_kf5_libdir}/cmake/KDecoration2/ +%{_kf5_includedir}/KDecoration2/ %{_kf5_includedir}/kdecoration2_version.h + %changelog +* Wed Oct 14 2015 Rex Dieter - 5.4.2-2 +- .spec cosmetics +- own %%{_kf5_qtplugindir}/org.kde.kdecoration2/ + * Thu Oct 01 2015 Rex Dieter - 5.4.2-1 - 5.4.2