Bug 1194901 - Build digikam for EPEL7
Summary: Build digikam for EPEL7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: digikam
Version: epel7
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1195397
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-20 21:52 UTC by Orion Poplawski
Modified: 2015-06-10 19:16 UTC (History)
3 users (show)

Fixed In Version: digikam-4.10.0-5.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-10 19:16:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch for epel support (2.12 KB, patch)
2015-02-25 21:46 UTC, Orion Poplawski
no flags Details | Diff

Description Orion Poplawski 2015-02-20 21:52:37 UTC
Description of problem:

I'd like to have digikam for EPEL7.  There is an old build of 4.0.0: http://koji.fedoraproject.org/koji/buildinfo?buildID=540305 but that's probably uninteresting.

Building digikam-4.7.0-2.fc23 results in:

DEBUG util.py:389:  Error: No Package found for baloo-devel
DEBUG util.py:389:  Error: No Package found for kfilemetadata-devel
DEBUG util.py:389:  Error: No Package found for pkgconfig(opencv) >= 2.4.7
DEBUG util.py:389:  Error: No Package found for qtsoap-devel

Comment 1 Orion Poplawski 2015-02-20 23:00:26 UTC
Well, looks like the opencv version in EL7 (2.4.5) will only support digikam 4.0.0 (4.1.0 requires 2.4.9.  Perhaps we should should just push the 4.0.0 build.

Comment 2 Orion Poplawski 2015-02-23 22:47:11 UTC
Needs libpgf too. baloo, kfilemetadata-devel and qtsoap-devel appear to be optional.

Am now trying with hack to accept opencv 2.4.5 - http://copr-fe.cloud.fedoraproject.org/coprs/orion/digikam/build/78983/

Comment 3 Orion Poplawski 2015-02-24 03:09:49 UTC
Builds okay with the opencv hack:

https://copr-be.cloud.fedoraproject.org/results/orion/digikam/epel-7-x86_64/digikam-4.7.0-2.fc23/

It doesn't build the dlnaexport kipi plugin due to missing deps.

diff --git a/digikam.spec b/digikam.spec
index c6cb7be..bbb0094 100644
--- a/digikam.spec
+++ b/digikam.spec
@@ -1,7 +1,7 @@
 #define pre rc
 
 %if 0%{?fedora}
-%define videoslideshow 1
+%global videoslideshow 1
 %endif
 
 Name:    digikam
@@ -29,10 +29,12 @@ BuildRequires: eigen3-devel
 BuildRequires: desktop-file-utils
 BuildRequires: doxygen
 BuildRequires: gettext
+%if 0%{?fedora}
 BuildRequires: baloo-devel
 BuildRequires: kfilemetadata-devel
 # for DLNAExport
 BuildRequires: qtsoap-devel
+%endif
 # marble integration, http://bugzilla.redhat.com/470578
 BuildRequires: marble-devel >= 1:4.6.80 
 # updated FindKipi.cmake https://bugs.kde.org/show_bug.cgi?id=307213
@@ -62,7 +64,7 @@ BuildRequires: sane-backends-devel
 ## htmlexport plugin
 BuildRequires: pkgconfig(libxslt)
 ## RemoveRedeye
-BuildRequires: pkgconfig(opencv) >= 2.4.7
+BuildRequires: pkgconfig(opencv) >= 2.4.5
 ## Shwup
 BuildRequires: pkgconfig(qca2)
 ## debianscreenshorts
@@ -80,9 +82,11 @@ BuildRequires: bison
 BuildRequires: herqq-devel
 BuildRequires: pkgconfig(lensfun) >= 0.2.6
 BuildRequires: pkgconfig(lqr-1)
+%endif
+%if 0%{?fedora} || 0%{?epel} >= 7
 %define libgpod 1
 BuildRequires: pkgconfig(libgpod-1.0)
-BuildRequires: pkgconfig(libpgf) >= 6.11.42
+BuildRequires: pkgconfig(libpgf) >= 6.12.24
 %endif

 # when lib(-devel) subpkgs were split
@@ -237,8 +241,8 @@ BuildArch: noarch

 ## HACK to allow building with older opencv (for now), see
 # https://bugzilla.redhat.com/show_bug.cgi?id=1119036
-sed -i.opencv_247 -e 's|^DETECT_OPENCV(2.4.9 |DETECT_OPENCV(2.4.7 |' extra/libkface/CMakeLists.txt
-sed -i.opencv_247 -e 's|OPENCV_MIN_VERSION "2.4.9"|OPENCV_MIN_VERSION "2.4.7"|' \
+sed -i.opencv_245 -e 's|^DETECT_OPENCV(2.4.9 |DETECT_OPENCV(2.4.5 |' extra/libkface/CMakeLists.txt
+sed -i.opencv_245 -e 's|OPENCV_MIN_VERSION "2.4.9"|OPENCV_MIN_VERSION "2.4.5"|' \
   core/CMakeLists.txt \
   extra/kipi-plugins/CMakeLists.txt

@@ -508,7 +512,9 @@ update-desktop-database -q &> /dev/null
 %{_kde4_libdir}/kde4/kipiplugin_vkontakte.so
 %{_kde4_libdir}/kde4/kipiplugin_yandexfotki.so
 %{_kde4_libdir}/kde4/kipiplugin_wikimedia.so
+%if 0%{?fedora}
 %{_kde4_libdir}/kde4/kipiplugin_dlnaexport.so
+%endif
 %{_kde4_libdir}/kde4/kipiplugin_jalbumexport.so
 # Plugin not yet ready for production
 #{_kde4_libdir}/kde4/kipiplugin_photivointegration.so
@@ -525,7 +531,9 @@ update-desktop-database -q &> /dev/null
 %{_kde4_appsdir}/kipiplugin_panorama/
 %{_kde4_appsdir}/kipiplugin_piwigoexport/
 %{_kde4_appsdir}/kipiplugin_printimages/
+%if 0%{?fedora}
 %{_kde4_appsdir}/kipiplugin_dlnaexport/
+%endif
 %{_kde4_datadir}/applications/kde4/dngconverter.desktop
 %{_kde4_datadir}/applications/kde4/kipiplugins.desktop
 %{_kde4_datadir}/applications/kde4/expoblending.desktop

Comment 4 Orion Poplawski 2015-02-24 20:47:03 UTC
Looks like qtsoap was ready to go, just not built, so we'll be able to enable that.

Comment 5 Orion Poplawski 2015-02-25 21:46:12 UTC
Created attachment 995350 [details]
patch for epel support

Current proposed patch to spec.

Comment 6 Orion Poplawski 2015-04-13 21:27:43 UTC
Rex - any comments?  I think you'll end up needing to have a version in your kde4 epel7 copr as well built with some of the newer libraries in there.

Comment 7 Rex Dieter 2015-04-13 22:37:54 UTC
thanks for the reminder, I'll try to work on this tomorrow.

Comment 8 Fedora Update System 2015-05-19 23:19:49 UTC
digikam-4.10.0-4.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/digikam-4.10.0-4.el7

Comment 9 Fedora Update System 2015-05-20 04:55:57 UTC
digikam-4.10.0-4.el7 has been pushed to the Fedora EPEL 7 testing repository.

Comment 10 Tuomo Soini 2015-05-23 15:32:11 UTC
There is one problem with digikam on epel7 testing.

package: kipi-plugins-4.10.0-4.el7.x86_64 from epel-testing
  unresolved deps: 
     hugin-base

hugin is not available on epel7/rhel7.

Comment 11 Fedora Update System 2015-05-26 21:27:37 UTC
digikam-4.10.0-5.el7 has been pushed to the Fedora EPEL 7 testing repository.

Comment 12 Orion Poplawski 2015-05-26 21:39:29 UTC
hugin appears to also need lensfun and libpano13 which are also missing.

Comment 13 Fedora Update System 2015-06-10 19:16:13 UTC
digikam-4.10.0-5.el7 has been pushed to the Fedora EPEL 7 stable repository.


Note You need to log in before you can comment on or make changes to this bug.