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