]>
Commit | Line | Data |
---|---|---|
71912001 | 1 | Summary: A KDE frontend for gphoto2 |
bc0309da | 2 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 |
71912001 | 3 | Name: digikam |
bc0309da | 4 | Version: 0.9.4 |
8cc94b93 | 5 | Release: 5 |
71912001 | 6 | License: GPL |
bc0309da | 7 | Group: X11/Applications/Graphics |
3228d5c9 | 8 | Source0: http://downloads.sourceforge.net/digikam/%{name}-%{version}.tar.bz2 |
bc0309da | 9 | # Source0-md5: b0f3fa00bd054b0497146e6ce24dab7c |
10 | Patch0: kde-ac260-lt.patch | |
3228d5c9 | 11 | Patch1: kde-am.patch |
8cc94b93 | 12 | Patch2: digikam-libpng.patch |
71912001 | 13 | URL: http://digikam.sourceforge.net/ |
08c8f1c6 | 14 | BuildRequires: autoconf |
5f76072b | 15 | BuildRequires: automake |
bc0309da | 16 | BuildRequires: exiv2-devel >= 0.14 |
17 | BuildRequires: jasper-devel >= 1.7.0 | |
71912001 | 18 | BuildRequires: kdelibs-devel |
b58138fb | 19 | BuildRequires: libgphoto2-devel |
bc0309da | 20 | BuildRequires: libkdcraw-devel >= 0.1.2 |
21 | BuildRequires: libkexiv2-devel >= 0.1.5 | |
454a3792 | 22 | BuildRequires: libkipi-devel >= 0.1 |
bc0309da | 23 | BuildRequires: libstdc++-devel |
454a3792 | 24 | BuildRequires: libtiff-devel |
4bd81adb | 25 | BuildRequires: pkgconfig >= 1:0.9.0 |
16f9da1b | 26 | BuildRequires: rpmbuild(macros) >= 1.129 |
08c8f1c6 | 27 | BuildRequires: sed >= 4.0 |
1c187f6a | 28 | BuildRequires: sqlite3-devel |
bc0309da | 29 | Obsoletes: digikamimageplugins |
30 | # sr@Latn vs. sr@latin | |
31 | Conflicts: glibc-misc < 6:2.7 | |
71912001 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
3228d5c9 ER |
34 | # build broken with spaces in CC |
35 | %undefine with_ccache | |
36 | ||
71912001 | 37 | %description |
38 | Designed to be a standalone application to preview and download images | |
5d9f4722 JB |
39 | from a digital camera on a Linux machine. |
40 | ||
bc0309da | 41 | %description -l pl.UTF-8 |
42 | Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów | |
5d9f4722 | 43 | cyfrowych pod Linuksem. |
71912001 | 44 | |
16378764 | 45 | %package devel |
46 | Summary: A KDE frontend for gphoto2 - header files | |
bc0309da | 47 | Summary(pl.UTF-8): Interfejs KDE do gphoto2 - pliki nagłówkowe |
16378764 | 48 | Group: Development/Libraries |
b58138fb | 49 | Requires: %{name} = %{version}-%{release} |
a5ee0298 JB |
50 | Requires: kdelibs-devel |
51 | Requires: libgphoto2-devel | |
16378764 | 52 | |
53 | %description devel | |
b58138fb | 54 | A KDE frontend for gphoto2 - header files. |
16378764 | 55 | |
bc0309da | 56 | %description devel -l pl.UTF-8 |
57 | Interfejs KDE do gphoto2 - pliki nagłówkowe. | |
16378764 | 58 | |
71912001 | 59 | %prep |
23238fb9 | 60 | %setup -q |
bc0309da | 61 | %patch0 -p1 |
3228d5c9 | 62 | %patch1 -p1 |
8cc94b93 | 63 | %patch2 -p1 |
bc0309da | 64 | |
08c8f1c6 | 65 | %{__sed} -i -e "s,Categories.*,Categories=Qt;KDE;Graphics;Photograph;," \ |
b91f9341 | 66 | ./digikam/digikam/digikam.desktop \ |
08c8f1c6 | 67 | ./digikam/showfoto/showfoto.desktop |
71912001 | 68 | |
21af346a | 69 | %build |
5f76072b | 70 | cp -f /usr/share/automake/config.sub admin |
b91f9341 | 71 | %{__make} -f admin/Makefile.common cvs |
16378764 | 72 | |
73 | %configure \ | |
bc0309da | 74 | %if "%{_lib}" == "lib64" |
75 | --enable-libsuffix=64 \ | |
76 | %endif | |
77 | --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \ | |
cc5be4fe | 78 | --disable-rpath \ |
3228d5c9 | 79 | --with-qt-libraries=%{_libdir} |
71912001 | 80 | %{__make} |
81 | ||
71912001 | 82 | %install |
83 | rm -rf $RPM_BUILD_ROOT | |
5d9f4722 JB |
84 | |
85 | %{__make} install \ | |
20118f11 | 86 | DESTDIR=$RPM_BUILD_ROOT \ |
b91f9341 | 87 | kde_htmldir=%{_kdedocdir} \ |
88 | kde_libs_htmldir=%{_kdedocdir} | |
89 | ||
bc0309da | 90 | rm $RPM_BUILD_ROOT%{_libdir}/kde3/*.la |
71912001 | 91 | |
bc0309da | 92 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
93 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
94 | %find_lang %{name} --with-kde --all-name | |
73fa36a2 | 95 | |
71912001 | 96 | %clean |
97 | rm -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 |
3228d5c9 ER |
105 | %attr(755,root,root) %{_bindir}/digikam |
106 | %attr(755,root,root) %{_bindir}/digikamthemedesigner | |
107 | %attr(755,root,root) %{_bindir}/digitaglinktree | |
108 | %attr(755,root,root) %{_bindir}/showfoto | |
109 | %attr(755,root,root) %{_libdir}/libdigikam.so.*.*.* | |
110 | %attr(755,root,root) %ghost %{_libdir}/libdigikam.so.0 | |
b58138fb | 111 | %attr(755,root,root) %{_libdir}/kde3/*.so |
bc0309da | 112 | %attr(755,root,root) %{_datadir}/apps/digikam/utils/digikam-camera |
113 | %dir %{_datadir}/apps/digikam | |
114 | %dir %{_datadir}/apps/digikam/utils | |
115 | %{_datadir}/apps/digikam/icons | |
116 | %{_datadir}/apps/digikam/themes | |
117 | %{_datadir}/apps/digikam/about | |
118 | %{_datadir}/apps/digikam/data | |
119 | %{_datadir}/apps/digikam/profiles | |
120 | %{_datadir}/apps/digikam/tips | |
121 | %{_datadir}/apps/digikam/digikam-splash.png | |
122 | %{_datadir}/apps/digikam/*.rc | |
3228d5c9 ER |
123 | %{_datadir}/services/*.protocol |
124 | %{_datadir}/services/*.desktop | |
125 | %{_datadir}/servicetypes/*.desktop | |
319a89db | 126 | %{_datadir}/apps/showfoto |
bc0309da | 127 | %{_datadir}/apps/konqueror/servicemenus/digikam-*.desktop |
20118f11 | 128 | %{_desktopdir}/kde/*.desktop |
3228d5c9 | 129 | %{_iconsdir}/*/*/*/*.png |
bc0309da | 130 | %{_mandir}/man1/digitaglinktree.1* |
16378764 | 131 | |
132 | %files devel | |
b58138fb JB |
133 | %defattr(644,root,root,755) |
134 | %attr(755,root,root) %{_libdir}/*.so | |
16378764 | 135 | %{_libdir}/*.la |
78244360 | 136 | %{_includedir}/*.h |
b58138fb | 137 | %{_includedir}/digikam |