From 21ced2fa742b139668271c78f04421575d12d117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Mon, 26 Jan 2015 19:15:49 +0100 Subject: [PATCH] Import package - Plasma 5.2.0 --- .gitignore | 1 + kdecoration.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 78 insertions(+) create mode 100644 kdecoration.spec diff --git a/.gitignore b/.gitignore index e69de29..95a6279 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/kdecoration-5.2.0.tar.xz diff --git a/kdecoration.spec b/kdecoration.spec new file mode 100644 index 0000000..c8bdab0 --- /dev/null +++ b/kdecoration.spec @@ -0,0 +1,76 @@ +Name: kdecoration +Summary: A plugin-based library to create window decorations +Version: 5.2.0 +Release: 1%{?dist} + +License: LGPLv2 +URL: https://projects.kde.org/projects/kde/workspace/kdecoration + +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz + +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros +BuildRequires: qt5-qtbase-devel + +Requires: kf5-filesystem + +%description +%{summary}. + +%package devel +Summary: Developer files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +%{summary}. + + +%prep +%setup -q -n %{name}-%{version} + + +%build +# 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} +pushd %{_target_platform} +%{cmake_kf5} .. +popd + +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc COPYING.LIB +%{_kf5_libdir}/libkdecorations2.so.* +%{_kf5_libdir}/libkdecorations2private.so.* + +%files devel +%{_kf5_libdir}/libkdecorations2.so +%{_kf5_libdir}/libkdecorations2private.so +%{_kf5_libdir}/cmake/KDecoration2 +%{_kf5_includedir}/KDecoration2 +%{_kf5_includedir}/kdecoration2_version.h + +%changelog +* Mon Jan 26 2015 Daniel Vrátil - 5.2.0-1 +- Plasma 5.2.0 + +* Tue Jan 20 2015 Daniel Vrátil - 5.1.95-2.beta +- improved sed macro + +* Mon Jan 12 2015 Daniel Vrátil - 5.1.95-1.beta +- Plasma 5.1.95 Beta diff --git a/sources b/sources index e69de29..40490da 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a07bbaff1d102e1dfd58bcf328992fe4 kdecoration-5.2.0.tar.xz