commit 099fb5cfacbeb776e52911a5bdc2f47c555188f53a357cda1733291a59c79c45 Author: Hrvoje Senjan Date: Fri Aug 1 21:36:06 2014 +0000 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kde-gtk-config5?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/append5.diff b/append5.diff new file mode 100644 index 0000000..84d0090 --- /dev/null +++ b/append5.diff @@ -0,0 +1,94 @@ +diff --git a/gtk3proxies/CMakeLists.txt b/gtk3proxies/CMakeLists.txt +index 62becb4..2e8d236 100644 +--- a/gtk3proxies/CMakeLists.txt ++++ b/gtk3proxies/CMakeLists.txt +@@ -2,7 +2,7 @@ find_package(GTK3 REQUIRED) + + include_directories(${GTK3_INCLUDE_DIRS}) + +-add_executable(gtk3_preview preview3.c) +-target_compile_definitions(gtk3_preview PRIVATE "-DDATA_DIR=\"${DATA_INSTALL_DIR}/kcm-gtk-module/\"") +-target_link_libraries(gtk3_preview ${GTK3_LIBRARY} ${GOBJECT2_LIBRARY} ${GLIB2_LIBRARY}) +-install(TARGETS gtk3_preview RUNTIME DESTINATION "${LIBEXEC_INSTALL_DIR}") ++add_executable(gtk3_preview5 preview3.c) ++target_compile_definitions(gtk3_preview5 PRIVATE "-DDATA_DIR=\"${DATA_INSTALL_DIR}/kcm-gtk-module/\"") ++target_link_libraries(gtk3_preview5 ${GTK3_LIBRARY} ${GOBJECT2_LIBRARY} ${GLIB2_LIBRARY}) ++install(TARGETS gtk3_preview5 RUNTIME DESTINATION "${LIBEXEC_INSTALL_DIR}") +diff --git a/gtk3proxies/preview3.c b/gtk3proxies/preview3.c +index f5b10d0..a8b80fb 100644 +--- a/gtk3proxies/preview3.c ++++ b/gtk3proxies/preview3.c +@@ -32,7 +32,7 @@ void printHelp() + "Small utility for previewing Gtk3 theme.\n" + "\n" + "Using:\n" +- "gtk3_preview \n" ++ "gtk3_preview5 \n" + "\n" + "Arguments:\n" + " -h, --help\tShows this help\n" +@@ -62,7 +62,7 @@ int main(int argc, char **argv) + return 0; + } + else if(strcmp("-V", argv[i])==0 || strcmp("--version", argv[i])==0) { +- printf("gtk2_preview version 1.0\n"); ++ printf("gtk2_preview5 version 1.0\n"); + return 0; + } else if(argc>1) + sscanf(argv[1], "%ld", &wid); +diff --git a/gtkproxies/CMakeLists.txt b/gtkproxies/CMakeLists.txt +index fe8e1a0..1ff5a78 100644 +--- a/gtkproxies/CMakeLists.txt ++++ b/gtkproxies/CMakeLists.txt +@@ -7,10 +7,10 @@ target_link_libraries(reload_gtk_apps ${GTK2_LIBRARIES}) + install(TARGETS reload_gtk_apps RUNTIME DESTINATION "${LIBEXEC_INSTALL_DIR}") + + +-add_executable(gtk_preview preview.c) +-target_compile_definitions(gtk_preview PRIVATE "-DDATA_DIR=\"${DATA_INSTALL_DIR}/kcm-gtk-module/\"") +-target_link_libraries(gtk_preview ${GTK2_LIBRARIES} ${GTK2_GIOMM_LIBRARY}) +-install(TARGETS gtk_preview RUNTIME DESTINATION "${LIBEXEC_INSTALL_DIR}") ++add_executable(gtk_preview5 preview.c) ++target_compile_definitions(gtk_preview5 PRIVATE "-DDATA_DIR=\"${DATA_INSTALL_DIR}/kcm-gtk-module/\"") ++target_link_libraries(gtk_preview5 ${GTK2_LIBRARIES} ${GTK2_GIOMM_LIBRARY}) ++install(TARGETS gtk_preview5 RUNTIME DESTINATION "${LIBEXEC_INSTALL_DIR}") + + # preview file used for the gtk3 version too + install(FILES preview.ui +diff --git a/gtkproxies/preview.c b/gtkproxies/preview.c +index 5b40a44..55825b6 100644 +--- a/gtkproxies/preview.c ++++ b/gtkproxies/preview.c +@@ -55,7 +55,7 @@ void printHelp() + "Small utility for previewing Gtk2 theme.\n" + "\n" + "Using:\n" +- "gtk_preview \n" ++ "gtk_preview5 \n" + "\n" + "Arguments:\n" + " -h, --help\tShows this help\n" +@@ -76,7 +76,7 @@ int main(int argc, char **argv) + return 0; + } + else if(strcmp("-V", argv[i])==0 || strcmp("--version", argv[i])==0) { +- printf("gtk_preview version 1.0\n"); ++ printf("gtk_preview5 version 1.0\n"); + return 0; + } else if(argc>1) + sscanf(argv[1], "%ld", &wid); +diff --git a/src/gtkconfigkcmodule.cpp b/src/gtkconfigkcmodule.cpp +index aea7f1c..a65a2a7 100644 +--- a/src/gtkconfigkcmodule.cpp ++++ b/src/gtkconfigkcmodule.cpp +@@ -82,8 +82,8 @@ GTKConfigKCModule::GTKConfigKCModule(QWidget* parent, const QVariantList& args ) + ui->gtk2Preview->setIcon(previewIcon); + ui->gtk3Preview->setIcon(previewIcon); + +- QString gtk2Preview = QStandardPaths::findExecutable("gtk_preview"); +- QString gtk3Preview = QStandardPaths::findExecutable("gtk3_preview"); ++ QString gtk2Preview = QStandardPaths::findExecutable("gtk_preview5"); ++ QString gtk3Preview = QStandardPaths::findExecutable("gtk3_preview5"); + + m_p2 = new KProcess(this); + m_p2->setEnv("GTK2_RC_FILES", m_tempGtk2Preview, true); diff --git a/kde-gtk-config-2.9.90.tar.xz b/kde-gtk-config-2.9.90.tar.xz new file mode 100644 index 0000000..9f955f5 --- /dev/null +++ b/kde-gtk-config-2.9.90.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce75b7e157e583ebf79c9694c8ec3d9439c77fb1b9f5cbae3448282db2fd6d51 +size 185576 diff --git a/kde-gtk-config5.changes b/kde-gtk-config5.changes new file mode 100644 index 0000000..92383eb --- /dev/null +++ b/kde-gtk-config5.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Aug 1 21:34:38 UTC 2014 - hrvoje.senjan@gmail.com + +- Activate kde-gtk-config5 package + diff --git a/kde-gtk-config5.spec b/kde-gtk-config5.spec new file mode 100644 index 0000000..e7aea76 --- /dev/null +++ b/kde-gtk-config5.spec @@ -0,0 +1,78 @@ +# +# spec file for package kde-gtk-config5 +# +# 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: kde-gtk-config5 +Version: 2.9.90 +Release: 0 +Summary: A small IDE +License: LGPL-2.0+ +Group: System/GUI/KDE +Url: https://projects.kde.org/projects/extragear/sdk/kde-gtk-config +Source: kde-gtk-config-%{version}.tar.xz +Patch0: append5.diff +BuildRequires: extra-cmake-modules +BuildRequires: karchive-devel +BuildRequires: kauth-devel +BuildRequires: kcmutils-devel +BuildRequires: kconfigwidgets-devel +BuildRequires: kf5-filesystem +BuildRequires: ki18n-devel +BuildRequires: knewstuff-devel +BuildRequires: xz +BuildRequires: pkgconfig(Qt5Sql) >= 5.2.0 +BuildRequires: pkgconfig(Qt5Test) >= 5.2.0 +BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0 +BuildRequires: pkgconfig(Qt5X11Extras) >= 5.2.0 +BuildRequires: pkgconfig(Qt5Xml) >= 5.2.0 +BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: pkgconfig(gtk+-3.0) +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +A small IDE taylored for development of Plasma components, +such as Widgets, Runners, Dataengines. + +%prep +%setup -q -n kde-gtk-config-%{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) +%config %{_kf5_configdir}/cgcicon.knsrc +%config %{_kf5_configdir}/cgctheme.knsrc +%config %{_kf5_configdir}/cgcgtk3.knsrc +%{_kf5_servicesdir}/ +%{_kf5_plugindir}/ +%{_kf5_libdir}/libexec/ +%{_kf5_sharedir}/kcm-gtk-module/ +%dir %{_kf5_sharedir}/icons/hicolor/8x8 +%dir %{_kf5_sharedir}/icons/hicolor/8x8/actions +%{_kf5_sharedir}/icons/hicolor/*/*/*.* + +%changelog