Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1
kipi-plugins
kipi-plugins.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kipi-plugins.spec of Package kipi-plugins
# # spec file for package kipi-plugins # # Copyright (c) 2011 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: kipi-plugins Version: 2.2.0 Release: 0 License: GPL-2.0+ and Adobe Summary: KDE Plug-Ins for Image Manipulation Url: http://www.kipi-plugins.org/ Group: Productivity/Graphics/Other Source: http://sourceforge.net/projects/digikam/files/digikam/%{version}/digikam-%{version}.tar.bz2 # PATCH-FIX-OPENSUSE desktop-files.diff -- Remove Icon= entry (the icon is missing) Patch0: desktop-files.diff # PATCH-FIX-OPENSUSE non-executable-script.patch asterios.dramis@gmail.com -- Fix rpmlint warning "non-executable-script" Patch1: non-executable-script.patch # PATCH-FIX-OPENSUSE remove-gplv2-only.patch idoenmez@suse.de bnc #711963 -- Remove GPLv2 only files from the build system Patch2: remove-gplv2-only.patch # CHECK ON NEXT VERSION UPDATE: reference to missing icon Patch3: fix-broken-icon-reference.diff BuildRequires: ImageMagick BuildRequires: fdupes %if 0%{?suse_version} == 1130 BuildRequires: pkgconfig(gtk+-2.0) %else BuildRequires: gdk-pixbuf-devel %endif BuildRequires: libexpat-devel BuildRequires: libgpod-devel BuildRequires: libkdcraw-devel >= 4.7.0 BuildRequires: libkdepimlibs4-devel BuildRequires: libkexiv2-devel BuildRequires: libkgeomap-devel BuildRequires: libkipi-devel BuildRequires: libqjson-devel BuildRequires: libksane-devel BuildRequires: libmediawiki-devel BuildRequires: libqca2-devel BuildRequires: libqjson-devel BuildRequires: opencv-devel BuildRequires: pkgconfig(glib-2.0) Recommends: %{name}-lang = %{version} Recommends: ImageMagick Recommends: enblend-enfuse Recommends: hugin BuildRoot: %{_tmppath}/%{name}-%{version}-build %kde4_runtime_requires %kde4_pimlibs_requires %description A set of plug-ins for the KDE KIPI interface, used by some KDE imaging applications. # split out acquireimage plugin in order to allow the main # kipi-plugins package to be included on livecd (acquireimage # requires sane-backends, which is blocked for livecd) %package acquireimage License: GPL-2.0+ and Adobe Summary: KDE Plug-Ins for Image Manipulation Group: Productivity/Graphics/Other Requires: %{name} = %{version} Supplements: packageand(kipi-plugins:sane-backends) %kde4_runtime_requires %description acquireimage This is the Acquireimage plugin from the kipi plugins package. # split out geolocation plugin in order to allow the main # kipi-plugins package to be included on livecd (geolocation # requires marble, which is blocked for livecd) %package geolocation License: GPLv2+ and LGPLv2+ and X11 (BSD like) and BSD3c (or similar) and MIT License (or similar) and DNG SDK (Adobe) and GFDL Summary: KDE Plug-Ins for Image Manipulation Group: Productivity/Graphics/Other Requires: %{name} = %{version} Supplements: packageand(kipi-plugins:marble) %kde4_runtime_requires %description geolocation This is the Geolocation plugin from the kipi plugins package. %lang_package %prep %setup -q -n digikam-%{version} mv doc/kipi-plugins extra/kipi-plugins/doc cp -r po extra/kipi-plugins/po find extra/kipi-plugins/po -name digikam.po | xargs rm %patch1 %patch2 %patch3 cd extra/kipi-plugins %patch0 # 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/pluginsversion.h.cmake # Add docs & translations echo "find_package(Gettext)" >> CMakeLists.txt echo "add_subdirectory( doc )" >> CMakeLists.txt echo "add_subdirectory( po )" >> CMakeLists.txt # Remove GPL-v2 only files rm gpssync/borrowed/modeltest.cpp rm gpssync/borrowed/modeltest.h %build cd extra/kipi-plugins %cmake_kde4 -d build %make_jobs cd .. %install cd extra/kipi-plugins/build %kde4_makeinstall cd .. # Not needed, the package doesn't actually provide any shared libraries rm -f %{buildroot}%{_kde4_libdir}/libkipiplugins.so # Not needed rm -f %{buildroot}%{_kde4_libdir}/libPropertyBrowser.a # Fix "wrong-icon-size" rpmlint warning mogrify -scale 22x22 -background transparent %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/slideshow.png mogrify -extent 64x64 -background transparent -gravity "center" %{buildroot}%{_kde4_iconsdir}/hicolor/64x64/actions/metadataedit.png # Make a link in hicolor icon theme to dngconverter.png from oxygen icon theme in order to fix an rpm post build error "Icon file not installed for dngconverter.desktop" for res in 16 22 32 48 64 128 do install -dp -m 0755 %{buildroot}%{_kde4_iconsdir}/hicolor/"$res"x"$res"/apps ln -s %{_kde4_iconsdir}/oxygen/"$res"x"$res"/apps/dngconverter.png %{buildroot}%{_kde4_iconsdir}/hicolor/"$res"x"$res"/apps/dngconverter.png done %if 0%{?suse_version} %suse_update_desktop_file -r dngconverter Qt KDE Graphics Photography %suse_update_desktop_file -r expoblending Qt KDE Graphics Photography %suse_update_desktop_file -r panoramagui Qt KDE Graphics Photography %suse_update_desktop_file -r scangui Qt KDE Graphics Scanning %endif %find_lang %{name} --all-name %fdupes -s %{buildroot} %kde_post_install %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc extra/kipi-plugins/AUTHORS %doc extra/kipi-plugins/ChangeLog %doc extra/kipi-plugins/COPYING %doc extra/kipi-plugins/COPYING-ADOBE %doc extra/kipi-plugins/NEWS %doc extra/kipi-plugins/README %doc extra/kipi-plugins/TODO %{_kde4_applicationsdir}/*.desktop %exclude %{_kde4_applicationsdir}/scangui.desktop %{_kde4_appsdir}/kipiplugin_* %{_kde4_bindir}/dngconverter %{_kde4_bindir}/dnginfo %{_kde4_bindir}/expoblending %{_kde4_bindir}/panoramagui %{_kde4_bindir}/photolayoutseditor %{_kde4_iconsdir}/hicolor/*/actions/*.* %exclude %{_kde4_iconsdir}/hicolor/*/actions/gpsimagetag.png %{_kde4_iconsdir}/hicolor/*/apps/dngconverter.* %{_kde4_iconsdir}/hicolor/*/apps/photolayoutseditor.* %{_kde4_iconsdir}/oxygen/*/apps/dngconverter.* %{_kde4_iconsdir}/oxygen/*/apps/rawconverter.* %{_kde4_modulesdir}/kipiplugin_*.so %exclude %{_kde4_modulesdir}/kipiplugin_acquireimages.so %exclude %{_kde4_modulesdir}/kipiplugin_gpssync.so %{_kde4_servicesdir}/kipiplugin_*.desktop %exclude %{_kde4_servicesdir}/kipiplugin_acquireimages.desktop %exclude %{_kde4_servicesdir}/kipiplugin_acquireimages.desktop %{_kde4_libdir}/libkipiplugins.so.* %doc %{_kde4_htmldir}/en/kipi-plugins/ %{_kde4_modulesdir}/photolayoutseditorborderplugin_*.so %{_kde4_servicesdir}/photolayoutseditorborderplugin_*.desktop %{_kde4_appsdir}/photolayoutseditor %{_kde4_configkcfgdir}/PLEConfigSkeleton.kcfgc %{_kde4_servicetypesdir}/photolayoutseditorborderplugin.desktop %{_kde4_servicetypesdir}/photolayoutseditoreffectplugin.desktop %files acquireimage %defattr(-,root,root,-) %{_kde4_applicationsdir}/scangui.desktop %{_kde4_bindir}/scangui %{_kde4_modulesdir}/kipiplugin_acquireimages.so %{_kde4_servicesdir}/kipiplugin_acquireimages.desktop %files geolocation %defattr(-,root,root) %{_kde4_appsdir}/gpssync %{_kde4_iconsdir}/hicolor/*/actions/gpsimagetag.png %{_kde4_modulesdir}/kipiplugin_gpssync.so %{_kde4_servicesdir}/kipiplugin_gpssync.desktop %files lang -f extra/kipi-plugins/%{name}.lang %defattr(-,root,root,-) %exclude %{_kde4_htmldir}/en/kipi-plugins/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor