]> git.pld-linux.org Git - packages/tellico.git/blob - tellico.spec
975671a2a3e60ee814e00d22d79845d7f016d69b
[packages/tellico.git] / tellico.spec
1 #
2 # Conditional build:
3 %bcond_with     webcam  # build with webcam barcode recognition
4 #
5 Summary:        A collection manager
6 Summary(pl.UTF-8):      Zarządca zbiorów wideo, audio i książek
7 Name:           tellico
8 Version:        2.3.8
9 Release:        2
10 License:        GPL v3
11 Group:          X11/Applications
12 Source0:        http://tellico-project.org/files/%{name}-%{version}.tar.bz2
13 # Source0-md5:  3f85002f6f369bdcf72ac7499d39297a
14 Patch1:         %{name}-desktop.patch
15 Patch2:         libkcddb.patch
16 URL:            http://tellico-project.org/
17 BuildRequires:  cmake
18 BuildRequires:  exempi-devel
19 BuildRequires:  kde4-kdepimlibs-devel
20 BuildRequires:  kde4-libksane-devel
21 BuildRequires:  kde4-libkcddb-devel
22 BuildRequires:  libxml2-devel
23 BuildRequires:  libxml2-progs
24 BuildRequires:  libxslt-devel >= 1.0.19
25 BuildRequires:  poppler-Qt-devel
26 BuildRequires:  qimageblitz-devel
27 BuildRequires:  qjson-devel
28 BuildRequires:  rpmbuild(macros) >= 1.129
29 BuildRequires:  shared-desktop-ontologies-devel
30 BuildRequires:  soprano-devel
31 BuildRequires:  taglib-devel
32 BuildRequires:  yaz-devel
33 Requires:       desktop-file-utils
34 Requires:       libxslt >= 1.0.19
35 Obsoletes:      bookcase
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 Tellico is a personal catalog application for your book, video and
40 audio collection.
41
42 %description -l pl.UTF-8
43 Tellico to osobista aplikacja katalogowa przeznaczona do
44 księgozbiorów, archiwów wideo i audio.
45
46 %prep
47 %setup -q
48 %patch1 -p1
49 %patch2 -p1
50
51 %build
52 %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{_desktopdir}
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT \
61         kde_htmldir=%{_kdedocdir} \
62         kde_libs_htmldir=%{_kdedocdir}
63
64 rm -rf $RPM_BUILD_ROOT/nogo
65
66 %find_lang %{name} --with-kde
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post
72 %update_desktop_database_post
73 %update_mime_database
74
75 %postun
76 %update_desktop_database_postun
77 %update_mime_database
78
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog README
82 %attr(755,root,root) %{_bindir}/*
83 %{_datadir}/apps/kconf_update/%{name}-rename.upd
84 %{_datadir}/apps/kconf_update/tellico.upd
85 %{_datadir}/apps/kconf_update/tellico-1-3-update.pl
86 %{_datadir}/apps/%{name}
87 %{_datadir}/config/tellicorc
88 %{_datadir}/config/tellico-script.knsrc
89 %{_datadir}/config/tellico-template.knsrc
90 %{_datadir}/config.kcfg/tellico_config.kcfg
91 %{_datadir}/mime/packages/*.xml
92 %{_desktopdir}/kde4/%{name}.desktop
93 %{_iconsdir}/*/*/*/*.png
This page took 0.056322 seconds and 2 git commands to generate.