]> git.pld-linux.org Git - packages/tellico.git/blob - tellico.spec
- kcddb bcond
[packages/tellico.git] / tellico.spec
1 #
2 # Conditional build:
3 %bcond_with     webcam  # build with webcam barcode recognition
4 %bcond_with     arts                    # build with aRts support
5 %bcond_without  kcddb   # disable KCDDB
6
7 Summary:        A collection manager
8 Summary(pl.UTF-8):      Zarządca zbiorów wideo, audio i książek
9 Name:           tellico
10 Version:        1.3.6
11 Release:        2
12 License:        GPL v2
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
18 Patch2:         gcc44.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
34 Obsoletes:      bookcase
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 Tellico is a personal catalog application for your book, video and
39 audio collection.
40
41 %description -l pl.UTF-8
42 Tellico to osobista aplikacja katalogowa przeznaczona do
43 księgozbiorów, archiwów wideo i audio.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48 %patch1 -p1
49 %patch2 -p1
50
51 %build
52 cp -f /usr/share/automake/config.sub admin
53 %configure \
54         %{?with_webcam:--enable-webcam} \
55         --with%{!?with_arts:out}-arts \
56         %{!?with_kcddb:--disable-libkcddb} \
57         --with-qt-libraries=%{_libdir}
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_desktopdir}
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT \
67         kde_htmldir=%{_kdedocdir} \
68         kde_libs_htmldir=%{_kdedocdir}
69
70 mv $RPM_BUILD_ROOT%{_datadir}/locale/{ee,et}
71
72 %find_lang %{name} --with-kde
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %post
78 %update_desktop_database_post
79 %update_mime_database
80
81 %postun
82 %update_desktop_database_postun
83 %update_mime_database
84
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
This page took 0.037236 seconds and 3 git commands to generate.