]> git.pld-linux.org Git - packages/digikam.git/blame - digikam.spec
- release 4
[packages/digikam.git] / digikam.spec
CommitLineData
542fb54c 1#
53105e77 2%define qtver 4.6.2
3%define kdever 4.4.0
b939ed32 4
71912001 5Summary: A KDE frontend for gphoto2
9336ef07 6Summary(pl.UTF-8): Interfejs KDE do gphoto2
71912001 7Name: digikam
4d48596b 8Version: 1.1.0
1b22f2de 9Release: 4
71912001 10License: GPL
bbee21d4 11Group: X11/Applications/Graphics
c34b6b99 12Source0: http://dl.sourceforge.net/digikam/%{name}-%{version}.tar.bz2
4d48596b 13# Source0-md5: 94a536e7387325c7b73ab2ac7b0a9a62
c97fe0ce 14URL: http://www.digikam.org/
f1d85640 15Patch0: %{name}-link.patch
b9a8bc33 16Patch1: %{name}-libpng.patch
ad6a12d4 17BuildRequires: Qt3Support-devel >= %{qtver}
b939ed32 18BuildRequires: QtCore-devel >= %{qtver}
2e4093ff 19BuildRequires: QtDesigner-devel >= %{qtver}
b939ed32 20BuildRequires: QtSql-devel >= %{qtver}
ad6a12d4 21BuildRequires: QtSvg-devel >= %{qtver}
54e075b6 22BuildRequires: automoc4
53105e77 23BuildRequires: cmake >= 2.8.0
4d8f9783 24BuildRequires: gettext-devel
ad6a12d4 25BuildRequires: jasper-devel
0a708609 26BuildRequires: kde4-kdeedu-devel >= %{kdever}
f1d85640 27BuildRequires: kde4-kdegraphics-devel >= %{kdever}
0459e5cb 28BuildRequires: kde4-kdelibs-devel >= %{kdever}
f1d85640 29BuildRequires: kde4-kdepimlibs-devel >= %{kdever}
ad6a12d4 30BuildRequires: lcms-devel
29465dd2 31BuildRequires: lensfun-devel
ad6a12d4 32BuildRequires: libgphoto2-devel
8fed4c5b 33BuildRequires: liblqr-devel >= 0.4.0
0459e5cb 34BuildRequires: libtiff-devel
4bd81adb 35BuildRequires: pkgconfig >= 1:0.9.0
53105e77 36BuildRequires: qt4-build >= %{qtver}
ad6a12d4 37BuildRequires: qt4-qmake >= %{qtver}
16f9da1b 38BuildRequires: rpmbuild(macros) >= 1.129
08c8f1c6 39BuildRequires: sed >= 4.0
0459e5cb 40BuildRequires: soprano-devel
b76f708a 41Requires: QtSql-sqlite3
09901b94 42Obsoletes: digikamimageplugins
71912001 43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
71912001 45%description
46Designed to be a standalone application to preview and download images
5d9f4722
JB
47from a digital camera on a Linux machine.
48
c2abdcf5
JR
49%description -l pl.UTF-8
50Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów
5d9f4722 51cyfrowych pod Linuksem.
71912001 52
16378764 53%package devel
54Summary: A KDE frontend for gphoto2 - header files
9336ef07 55Summary(pl.UTF-8): Interfejs KDE do gphoto2 - pliki nagłówkowe
16378764 56Group: Development/Libraries
b58138fb 57Requires: %{name} = %{version}-%{release}
16378764 58
59%description devel
b58138fb 60A KDE frontend for gphoto2 - header files.
16378764 61
c2abdcf5
JR
62%description devel -l pl.UTF-8
63Interfejs KDE do gphoto2 - pliki nagłówkowe.
16378764 64
71912001 65%prep
c34b6b99 66%setup -q
f1d85640 67%patch0 -p0
b9a8bc33 68%patch1 -p1
71912001 69
028efeaa 70%build
8fed4c5b
AM
71# explicitely remove hne language support (re-add when glibc supports it)
72%{__sed} -i -e 's/add_subdirectory(hne)//g' po/CMakeLists.txt
54e075b6
AM
73install -d build
74cd build
75%cmake \
b939ed32 76 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
e8010219 77 -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
b939ed32 78 -DSYSCONF_INSTALL_DIR=%{_sysconfdir} \
af5d9803 79%if "%{_lib}" == "lib64"
b939ed32 80 -DLIB_SUFFIX=64 \
af5d9803 81%endif
b939ed32 82 ../
54e075b6 83
71912001 84%{__make}
85
71912001 86%install
87rm -rf $RPM_BUILD_ROOT
5d9f4722 88
25125ed6 89%{__make} -C build install \
20118f11 90 DESTDIR=$RPM_BUILD_ROOT \
b91f9341 91 kde_htmldir=%{_kdedocdir} \
92 kde_libs_htmldir=%{_kdedocdir}
93
08c8f1c6 94%find_lang %{name} --with-kde --all-name
71912001 95
96%clean
97rm -rf $RPM_BUILD_ROOT
98
e8f56759 99%post -p /sbin/ldconfig
100%postun -p /sbin/ldconfig
b58138fb 101
23238fb9 102%files -f %{name}.lang
71912001 103%defattr(644,root,root,755)
08c8f1c6 104%doc AUTHORS ChangeLog README
8fed4c5b 105%attr(755,root,root) %{_bindir}/cleanup_digikamdb
25125ed6 106%attr(755,root,root) %{_bindir}/digikam
e5426923 107%dir %{_datadir}/apps/digikam/utils
f1d85640 108%attr(755,root,root) %{_datadir}/apps/digikam/utils/digikam-camera
25125ed6
RT
109%attr(755,root,root) %{_bindir}/digitaglinktree
110%attr(755,root,root) %{_bindir}/showfoto
7499557c 111%attr(755,root,root) %ghost %{_libdir}/libdigikamdatabase.so.1
25125ed6 112%attr(755,root,root) %{_libdir}/libdigikamdatabase.so.*.*.*
7499557c 113%attr(755,root,root) %ghost %{_libdir}/libdigikamcore.so.1
a7ef1db7 114%attr(755,root,root) %{_libdir}/libdigikamcore.so.*.*.*
25125ed6 115%attr(755,root,root) %{_libdir}/kde4/digikamimageplugin_*.so
8fed4c5b 116%attr(755,root,root) %{_libdir}/kde4/digikamnepomukservice.so
25125ed6
RT
117%attr(755,root,root) %{_libdir}/kde4/kio_digikamalbums.so
118%attr(755,root,root) %{_libdir}/kde4/kio_digikamdates.so
119%attr(755,root,root) %{_libdir}/kde4/kio_digikamsearch.so
120%attr(755,root,root) %{_libdir}/kde4/kio_digikamtags.so
53105e77 121%attr(755,root,root) %{_libdir}/kde4/plugins/marble/ExternalDraw.so
7499557c 122%{_mandir}/man1/digitaglinktree.1*
8fed4c5b 123%{_mandir}/man1/cleanup_digikamdb.1*
c36996c2 124%dir %{_datadir}/apps/digikam
c36996c2 125%{_datadir}/apps/digikam/about
7499557c 126%{_datadir}/apps/digikam/cameraui.rc
c36996c2 127%{_datadir}/apps/digikam/data
25125ed6
RT
128%{_datadir}/apps/digikam/digikamimageplugin_*.rc
129%{_datadir}/apps/digikam/digikamimagewindowui.rc
130%{_datadir}/apps/digikam/digikamui.rc
7499557c 131%{_datadir}/apps/digikam/icons
25125ed6 132%{_datadir}/apps/digikam/lighttablewindowui.rc
8fed4c5b 133%{_datadir}/apps/digikam/queuemgrwindowui.rc
7499557c
ER
134%{_datadir}/apps/digikam/themes
135%{_datadir}/apps/digikam/tips
319a89db 136%{_datadir}/apps/showfoto
25125ed6
RT
137%{_datadir}/kde4/services/digikamalbums.protocol
138%{_datadir}/kde4/services/digikamdates.protocol
7499557c 139%{_datadir}/kde4/services/digikamimageplugin_*.desktop
8fed4c5b 140%{_datadir}/kde4/services/digikamnepomukservice.desktop
25125ed6
RT
141%{_datadir}/kde4/services/digikamsearch.protocol
142%{_datadir}/kde4/services/digikamtags.protocol
8fed4c5b 143%{_datadir}/apps/digikam/digikam.notifyrc
f1d85640 144%{_datadir}/apps/solid/actions/digikam-opencamera.desktop
25125ed6 145%{_datadir}/kde4/servicetypes/digikamimageplugin.desktop
8fed4c5b 146%{_iconsdir}/*/*/apps/*.png
25125ed6 147%{_desktopdir}/kde4/*.desktop
16378764 148
149%files devel
b58138fb 150%defattr(644,root,root,755)
a7ef1db7 151%attr(755,root,root) %{_libdir}/libdigikamcore.so
25125ed6 152%attr(755,root,root) %{_libdir}/libdigikamdatabase.so
78244360 153%{_includedir}/*.h
b58138fb 154%{_includedir}/digikam
This page took 0.092297 seconds and 4 git commands to generate.