3 %bcond_with webcam # build with webcam barcode recognition
4 %bcond_with arts # build with aRts support
5 %bcond_without kcddb # disable KCDDB
7 Summary: A collection manager
8 Summary(pl.UTF-8): Zarządca zbiorów wideo, audio i książek
13 Group: X11/Applications
14 Source0: http://tellico-project.org/files/%{name}-%{version}.tar.gz
15 # Source0-md5: 7e1af02c1375e4d20e199f6fb06391d0
16 Patch0: %{name}-u64.patch
17 Patch1: %{name}-desktop.patch
19 URL: http://www.tellico-project.org/
20 BuildRequires: automake
21 BuildRequires: exempi-devel
22 BuildRequires: kdelibs-devel >= 9:3.3.1
23 %{?with_kcddb:BuildRequires: kdemultimedia-devel}
24 BuildRequires: kdepim-devel
25 BuildRequires: libxml2-devel
26 BuildRequires: libxml2-progs
27 BuildRequires: libxslt-devel >= 1.0.19
28 BuildRequires: poppler-qt-devel
29 BuildRequires: rpmbuild(macros) >= 1.129
30 BuildRequires: taglib-devel
31 BuildRequires: yaz-devel
32 Requires: desktop-file-utils
33 Requires: libxslt >= 1.0.19
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Tellico is a personal catalog application for your book, video and
41 %description -l pl.UTF-8
42 Tellico to osobista aplikacja katalogowa przeznaczona do
43 księgozbiorów, archiwów wideo i audio.
52 cp -f /usr/share/automake/config.sub admin
54 %{?with_webcam:--enable-webcam} \
55 --with%{!?with_arts:out}-arts \
56 %{!?with_kcddb:--disable-libkcddb} \
57 --with-qt-libraries=%{_libdir}
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_desktopdir}
66 DESTDIR=$RPM_BUILD_ROOT \
67 kde_htmldir=%{_kdedocdir} \
68 kde_libs_htmldir=%{_kdedocdir}
70 mv $RPM_BUILD_ROOT%{_datadir}/locale/{ee,et}
72 %find_lang %{name} --with-kde
75 rm -rf $RPM_BUILD_ROOT
78 %update_desktop_database_post
82 %update_desktop_database_postun
85 %files -f %{name}.lang
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog README TODO
88 %attr(755,root,root) %{_bindir}/*
89 %{_datadir}/mimelnk/application/x-%{name}.desktop
90 %{_datadir}/apps/kconf_update/%{name}-rename.upd
91 %{_datadir}/apps/kconf_update/tellico.upd
92 %{_datadir}/apps/kconf_update/tellico-1-3-update.pl
93 %{_datadir}/apps/%{name}
94 %{_datadir}/config/tellicorc
95 %{_datadir}/config.kcfg/tellico_config.kcfg
96 %{_datadir}/mime/packages/*.xml
97 %{_desktopdir}/kde/%{name}.desktop
98 %{_iconsdir}/*/*/*/*.png