SHA256
1
0
forked from pool/kwrited5

osc copypac from project:KDE:Unstable:Frameworks package:kwrited5 revision:26

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kwrited5?expand=0&rev=1
This commit is contained in:
Hrvoje Senjan 2014-06-12 18:14:40 +00:00 committed by Git OBS Bridge
commit 7ca02d8e61
7 changed files with 211 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

12
_service Normal file
View File

@ -0,0 +1,12 @@
<services>
<service name="tar_scm">
<param name="url">git://anongit.kde.org/kwrited.git</param>
<param name="scm">git</param>
<param name="versionformat">4.95.0~%cd~%h</param>
</service>
<service name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version"/>
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6cd04ebebd3fdcd9c2cf06024a1f9310366058003b95c470668620db08782341
size 19412

View File

@ -0,0 +1,63 @@
#
# spec file for package kwrited5
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kwrited5
Version: 4.95.0~20140605~44e805b
Release: 0
Summary: Provides the interface and basic tools for the KDE workspace
License: LGPL-2.0+
Group: System/GUI/KDE
Url: git://anongit.kde.org/kde-workspace.git
Source0: kwrited-%{version}.tar.xz
Patch0: adjust_build.diff
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: kpty-devel
BuildRequires: kdelibs4support-devel
BuildRequires: kf5-filesystem
BuildRequires: kdbusaddons-devel
BuildRequires: xz
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
#BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Provides the interface and basic tools for the KDE workspace.
%prep
%setup -q -n kwrited-%{version}
%patch0 -p1
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_kf5_plugindir}/
%{_kf5_servicesdir}/
%{_kf5_notifydir}/
%changelog

46
adjust_build.diff Normal file
View File

@ -0,0 +1,46 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9952a3c..627ea9b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Core
)
find_package(KF5 REQUIRED COMPONENTS
+ DBusAddons
Pty
KDE4Support
)
@@ -28,9 +29,8 @@ find_package(KF5 REQUIRED COMPONENTS
# (and thus be useful, as kwrited does not work at all if it
# cannot login to the terminal device that it opens).
-if (NOT KDE4_KPTY_BUILT_WITH_UTEMPTER)
- set(BUILD_AS_EXECUTABLE 1)
-endif ()
+# HACK needs adjusting of macro in KPty framework
+set(BUILD_AS_EXECUTABLE 0)
configure_file(config-kwrited.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kwrited.h)
@@ -65,7 +65,7 @@ if (BUILD_AS_EXECUTABLE)
else ()
add_library(kded_kwrited MODULE kwrited.cpp)
target_compile_definitions(kded_kwrited PRIVATE -DKWRITED_STRING_VERSION="${KWRITED_STRING_VERSION}")
- target_link_libraries(kded_kwrited KF5::KDE4Support KF5::Pty)
+ target_link_libraries(kded_kwrited KF5::DBusAddons KF5::KDE4Support KF5::Pty)
install(TARGETS kded_kwrited DESTINATION ${PLUGIN_INSTALL_DIR} )
install(FILES kwrited.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded)
diff --git a/kwrited.cpp b/kwrited.cpp
index 205d6af..6112751 100644
--- a/kwrited.cpp
+++ b/kwrited.cpp
@@ -149,7 +149,7 @@ void KWrited::block_in()
KNotification *notification = new KNotification("NewMessage", 0, KNotification::Persistent);
#if !defined(BUILD_AS_EXECUTABLE)
- notification->setComponentData( KWritedFactory::componentData() );
+ notification->setComponentName( QStringLiteral("kwrited") );
#endif
notification->setText( msg );
connect(notification, SIGNAL(closed()), notification, SLOT(deleteLater()) );

63
kwrited5.spec Normal file
View File

@ -0,0 +1,63 @@
#
# spec file for package kwrited5
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kwrited5
Version: 4.95.0~git
Release: 0
Summary: Provides the interface and basic tools for the KDE workspace
License: LGPL-2.0+
Group: System/GUI/KDE
Url: git://anongit.kde.org/kde-workspace.git
Source0: kwrited-%{version}.tar.xz
Patch0: adjust_build.diff
BuildRequires: extra-cmake-modules
BuildRequires: gcc-c++
BuildRequires: kpty-devel
BuildRequires: kdelibs4support-devel
BuildRequires: kf5-filesystem
BuildRequires: kdbusaddons-devel
BuildRequires: xz
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
#BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Provides the interface and basic tools for the KDE workspace.
%prep
%setup -q -n kwrited-%{version}
%patch0 -p1
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_kf5_plugindir}/
%{_kf5_servicesdir}/
%{_kf5_notifydir}/
%changelog