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