From b3d4adfdb3c51895c7f37b0e96e3b854d663a0c3f0df8c076f5c815318721548 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Thu, 5 Jun 2014 17:38:15 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/milou5?expand=0&rev=2 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + coexist.patch | 41 +++++++++++++++++++++ milou-kf5-4.97.0.tar.xz | 3 ++ milou5.changes | 5 +++ milou5.spec | 81 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 154 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 coexist.patch create mode 100644 milou-kf5-4.97.0.tar.xz create mode 100644 milou5.changes create mode 100644 milou5.spec 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/coexist.patch b/coexist.patch new file mode 100644 index 0000000..d6ea0c7 --- /dev/null +++ b/coexist.patch @@ -0,0 +1,41 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4bf25ae..a94f345 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -20,6 +20,15 @@ include(GenerateExportHeader) + # URL "http://www.kde.org" + # TYPE REQUIRED PURPOSE "Support for Email previews") + ++ ++set(MILOU_VERSION_MAJOR 4) ++set(MILOU_VERSION_MINOR 96) ++set(MILOU_VERSION_PATCH 0) ++set(MILOU_VERSION ${MILOU_VERSION_MAJOR}.${MILOU_VERSION_MINOR}.${MILOU_VERSION_PATCH} ) ++ ++set(GENERIC_LIB_SOVERSION 5) ++set(GENERIC_LIB_VERSION "${MILOU_VERSION_MAJOR}.${MILOU_VERSION_MINOR}.${MILOU_VERSION_PATCH}") ++ + add_subdirectory(lib) + add_subdirectory(plasmoid) + +diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt +index 657e9dc..23bde3a 100644 +--- a/lib/CMakeLists.txt ++++ b/lib/CMakeLists.txt +@@ -6,6 +6,7 @@ set (lib_SRCS + ) + + add_library(milou SHARED ${lib_SRCS}) ++set_target_properties(milou PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} ) + + target_link_libraries (milou + KF5::KIOWidgets +@@ -20,7 +21,7 @@ install( + + generate_export_header(milou BASE_NAME MILOU EXPORT_FILE_NAME milou_export.h) + +-install(TARGETS milou EXPORT MilouLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) ++install(TARGETS milou EXPORT MilouLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) + + add_subdirectory(qml) + # add_subdirectory(previews) diff --git a/milou-kf5-4.97.0.tar.xz b/milou-kf5-4.97.0.tar.xz new file mode 100644 index 0000000..0119e41 --- /dev/null +++ b/milou-kf5-4.97.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0011391edac3b647528728bd760c22e85e6b660cec5256f6eb816b4a3bb0cdc6 +size 26700 diff --git a/milou5.changes b/milou5.changes new file mode 100644 index 0000000..4d75123 --- /dev/null +++ b/milou5.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Jun 5 17:37:36 UTC 2014 - hrvoje.senjan@gmail.com + +- Activate milou5 package + diff --git a/milou5.spec b/milou5.spec new file mode 100644 index 0000000..1f95de7 --- /dev/null +++ b/milou5.spec @@ -0,0 +1,81 @@ +# +# spec file for package milou5 +# +# 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: milou5 +Version: 4.97.0 +Release: 0 +Summary: Framework for searching and managing metadata +License: GPL-2.0+ and LGPL-2.1+ and LGPL-3.0 +Group: System/GUI/KDE +Source0: milou-kf5-%{version}.tar.xz +Patch0: coexist.patch +BuildRequires: baloo5-devel +BuildRequires: extra-cmake-modules +BuildRequires: kdeclarative-devel +BuildRequires: kdelibs4support-devel +BuildRequires: kf5-filesystem +BuildRequires: ki18n-devel +BuildRequires: krunner-devel +BuildRequires: plasma-framework-devel +BuildRequires: pkgconfig(Qt5Qml) >= 5.2.0 +BuildRequires: pkgconfig(Qt5Script) >= 5.2.0 +BuildRequires: pkgconfig(Qt5Sql) >= 5.2.0 +BuildRequires: pkgconfig(Qt5Test) >= 5.2.0 +BuildRequires: pkgconfig(Qt5WebKitWidgets) >= 5.2.0 +BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0 +BuildRequires: pkgconfig(Qt5Xml) >= 5.2.0 +Requires: baloo5-runner +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Baloo is a framework for searching and managing metada + +%package devel +Summary: Development package for milou5 +Group: System/GUI/KDE +Requires: %{name} = %{version} + +%description devel +Development package for milou5 + +%prep +%setup -q -n milou-%{version} +%patch0 -p1 + +%build + %cmake_kf5 -d build + %make_jobs + +%install + %kf5_makeinstall -C build + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%defattr(-,root,root) +%{_kf5_servicetypesdir}/miloupreviewplugin.desktop +%{_kf5_libdir}/libmilou.so.* +%{_kf5_qmldir}/org/ +%{_kf5_plasmadir}/plasmoids/ +%{_kf5_servicesdir}/plasma-applet-org.kde.milou.desktop + +%changelog