commit c83062f281c35850347c60142c3d149fdef7ad0a2d2cfd44cfd8554e851213a7 Author: Stephan Kulow Date: Thu Feb 28 20:40:50 2019 +0000 Accepting request 676688 from KDE:Extra - Initial stand-alone package, based on digikam-5.9.0 kipi-plugins will not be part of digikam 6.0.0 anymore, but it is still used by other applications (gwenview, spectacle, kphotoalbum), so we need this to avoid feature loss there. OBS-URL: https://build.opensuse.org/request/show/676688 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kipi-plugins?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/kipi-plugins-5.9.0.tar.gz b/kipi-plugins-5.9.0.tar.gz new file mode 100644 index 0000000..7bb6af6 --- /dev/null +++ b/kipi-plugins-5.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d15339b8e8e955b20eeb1e1cd0af06edcfc1f97809ee71c159fc175fb61e1cf2 +size 2110230 diff --git a/kipi-plugins-lang.tar.xz b/kipi-plugins-lang.tar.xz new file mode 100644 index 0000000..f5b4321 --- /dev/null +++ b/kipi-plugins-lang.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a179112fcb0b8d2def1e7fda378e2a5fa2113151025cd8da45767c169bfd96a +size 702744 diff --git a/kipi-plugins.changes b/kipi-plugins.changes new file mode 100644 index 0000000..9a59e76 --- /dev/null +++ b/kipi-plugins.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Feb 12 06:21:32 UTC 2019 - wbauer@tmo.at + +- Initial stand-alone package, based on digikam-5.9.0 + diff --git a/kipi-plugins.spec b/kipi-plugins.spec new file mode 100644 index 0000000..3d38bcb --- /dev/null +++ b/kipi-plugins.spec @@ -0,0 +1,121 @@ +# +# spec file for package kipi-plugins +# +# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/ +# + + +Name: kipi-plugins +Version: 5.9.0 +Release: 0 +Summary: KDE Plug-Ins for Image Manipulation +License: GPL-2.0-or-later +Group: Productivity/Graphics/Other +URL: http://www.digikam.org/ +Source0: https://github.com/KDE/kipi-plugins/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: %{name}-lang.tar.xz +BuildRequires: extra-cmake-modules +BuildRequires: karchive-devel +BuildRequires: kconfig-devel +BuildRequires: kf5-filesystem +BuildRequires: ki18n-devel +BuildRequires: kio-devel +BuildRequires: kwindowsystem-devel +BuildRequires: kxmlgui-devel +BuildRequires: libkipi-devel >= 16.04.0 +BuildRequires: libmediawiki-devel +BuildRequires: pkgconfig +BuildRequires: pkgconfig(Qt5Concurrent) +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Network) +BuildRequires: pkgconfig(Qt5PrintSupport) +BuildRequires: pkgconfig(Qt5Svg) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5Xml) +BuildRequires: pkgconfig(Qt5XmlPatterns) +Recommends: %{name}-lang +Recommends: ImageMagick +Recommends: enblend-enfuse +Recommends: hugin +Recommends: kipi-plugins-lang = %{version} +Obsoletes: kipi-plugins-acquireimage < %{version} +Obsoletes: kipi-plugins-geolocation < %{version} +Obsoletes: kipi-plugins5 < %{version} +Provides: kipi-plugins5 = %{version} +Obsoletes: kipi-plugin-icons < %{version} +Provides: kipi-plugin-icons = %{version} +%if 0%{?suse_version} < 1500 +# It does not build with the default compiler (GCC 4.8) on Leap 42.x +BuildRequires: gcc7-c++ +%endif + +%description +A set of plug-ins for the KDE KIPI interface, used by some KDE imaging +applications. + +%lang_package + +%prep +%setup -q -a1 +echo "add_subdirectory(po)" >> CMakeLists.txt + +# Remove build time references so build-compare can do its work +FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') +sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/g" common/libkipiplugins/tools/kpversion.h.cmake.in + +# Workaround for kde#369517 - vkontakte installs translations even if not built +rm -f po/*/kipiplugin_vkontakte.po + +%build +%if 0%{?suse_version} < 1500 +# gcc 4.8.5 is too old +export CC=gcc-7 +export CXX=g++-7 +%endif +%cmake_kf5 -d build +%make_jobs VERBOSE=1 + +%install +%kf5_makeinstall -C build + +# Not needed, the package doesn't actually provide any shared libraries +rm -f %{buildroot}%{_kf5_libdir}/libKF5kipiplugins.so + +%find_lang kipiplugins %{name}.lang + +for i in dropbox googleservices sendimages facebook flashexport flickr imageshack imgur kmlexport piwigo printimages rajce remotestorage sendimages smug yandexfotki +do + %find_lang kipiplugin_$i %{name}.lang +done + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%license COPYING* +%doc AUTHORS ChangeLog NEWS README TODO +%dir %{_kf5_iconsdir}/hicolor/24x24 +%dir %{_kf5_iconsdir}/hicolor/24x24/apps +%{_kf5_applicationsdir}/kipiplugins.desktop +%{_kf5_iconsdir}/hicolor/*/apps/kipi-*.* +%{_kf5_kxmlguidir}/kipi/ +%{_kf5_libdir}/libKF5kipiplugins.so* +%{_kf5_plugindir}/kipiplugin_*.so +%{_kf5_sharedir}/kipiplugin_*/ +%{_kf5_servicesdir}/kipiplugin_*.desktop + +%files lang -f %{name}.lang + +%changelog