]> git.pld-linux.org Git - packages/digikam.git/blob - digikam.spec
- libpng fix; rel 5
[packages/digikam.git] / digikam.spec
1 Summary:        A KDE frontend for gphoto2
2 Summary(pl.UTF-8):      Interfejs KDE do gphoto2
3 Name:           digikam
4 Version:        0.9.4
5 Release:        5
6 License:        GPL
7 Group:          X11/Applications/Graphics
8 Source0:        http://downloads.sourceforge.net/digikam/%{name}-%{version}.tar.bz2
9 # Source0-md5:  b0f3fa00bd054b0497146e6ce24dab7c
10 Patch0:         kde-ac260-lt.patch
11 Patch1:         kde-am.patch
12 Patch2:         digikam-libpng.patch
13 URL:            http://digikam.sourceforge.net/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  exiv2-devel >= 0.14
17 BuildRequires:  jasper-devel >= 1.7.0
18 BuildRequires:  kdelibs-devel
19 BuildRequires:  libgphoto2-devel
20 BuildRequires:  libkdcraw-devel >= 0.1.2
21 BuildRequires:  libkexiv2-devel >= 0.1.5
22 BuildRequires:  libkipi-devel >= 0.1
23 BuildRequires:  libstdc++-devel
24 BuildRequires:  libtiff-devel
25 BuildRequires:  pkgconfig >= 1:0.9.0
26 BuildRequires:  rpmbuild(macros) >= 1.129
27 BuildRequires:  sed >= 4.0
28 BuildRequires:  sqlite3-devel
29 Obsoletes:      digikamimageplugins
30 # sr@Latn vs. sr@latin
31 Conflicts:      glibc-misc < 6:2.7
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 # build broken with spaces in CC
35 %undefine       with_ccache
36
37 %description
38 Designed to be a standalone application to preview and download images
39 from a digital camera on a Linux machine.
40
41 %description -l pl.UTF-8
42 Samodzielna aplikacja do oglądania i ściągania obrazków z aparatów
43 cyfrowych pod Linuksem.
44
45 %package devel
46 Summary:        A KDE frontend for gphoto2 - header files
47 Summary(pl.UTF-8):      Interfejs KDE do gphoto2 - pliki nagłówkowe
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       kdelibs-devel
51 Requires:       libgphoto2-devel
52
53 %description devel
54 A KDE frontend for gphoto2 - header files.
55
56 %description devel -l pl.UTF-8
57 Interfejs KDE do gphoto2 - pliki nagłówkowe.
58
59 %prep
60 %setup -q
61 %patch0 -p1
62 %patch1 -p1
63 %patch2 -p1
64
65 %{__sed} -i -e "s,Categories.*,Categories=Qt;KDE;Graphics;Photograph;," \
66         ./digikam/digikam/digikam.desktop \
67         ./digikam/showfoto/showfoto.desktop
68
69 %build
70 cp -f /usr/share/automake/config.sub admin
71 %{__make} -f admin/Makefile.common cvs
72
73 %configure \
74 %if "%{_lib}" == "lib64"
75         --enable-libsuffix=64 \
76 %endif
77         --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
78         --disable-rpath \
79         --with-qt-libraries=%{_libdir}
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT \
87         kde_htmldir=%{_kdedocdir} \
88         kde_libs_htmldir=%{_kdedocdir}
89
90 rm $RPM_BUILD_ROOT%{_libdir}/kde3/*.la
91
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
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files -f %{name}.lang
103 %defattr(644,root,root,755)
104 %doc AUTHORS ChangeLog README
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
111 %attr(755,root,root) %{_libdir}/kde3/*.so
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
123 %{_datadir}/services/*.protocol
124 %{_datadir}/services/*.desktop
125 %{_datadir}/servicetypes/*.desktop
126 %{_datadir}/apps/showfoto
127 %{_datadir}/apps/konqueror/servicemenus/digikam-*.desktop
128 %{_desktopdir}/kde/*.desktop
129 %{_iconsdir}/*/*/*/*.png
130 %{_mandir}/man1/digitaglinktree.1*
131
132 %files devel
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/*.so
135 %{_libdir}/*.la
136 %{_includedir}/*.h
137 %{_includedir}/digikam
This page took 0.055711 seconds and 4 git commands to generate.