]>
Commit | Line | Data |
---|---|---|
8b8c38ce | 1 | # |
2 | # Conditional build: | |
3 | %bcond_with webcam # build with webcam barcode recognition | |
3f1ae995 | 4 | %bcond_with arts # build with aRts support |
567fb2b1 | 5 | %bcond_without kcddb # disable KCDDB |
3f1ae995 | 6 | |
dbfa650d | 7 | Summary: A collection manager |
2d2c3519 | 8 | Summary(pl.UTF-8): Zarządca zbiorów wideo, audio i książek |
0afb29db | 9 | Name: tellico |
3f1ae995 | 10 | Version: 1.3.6 |
1a470b7d | 11 | Release: 2 |
22e2e5f9 | 12 | License: GPL v2 |
6f5a6570 | 13 | Group: X11/Applications |
3f1ae995 ER |
14 | Source0: http://tellico-project.org/files/%{name}-%{version}.tar.gz |
15 | # Source0-md5: 7e1af02c1375e4d20e199f6fb06391d0 | |
8b8c38ce | 16 | Patch0: %{name}-u64.patch |
653906c4 | 17 | Patch1: %{name}-desktop.patch |
2cf47644 | 18 | Patch2: gcc44.patch |
3f1ae995 | 19 | URL: http://www.tellico-project.org/ |
b2006ae0 | 20 | BuildRequires: automake |
8b8c38ce | 21 | BuildRequires: exempi-devel |
c8884139 | 22 | BuildRequires: kdelibs-devel >= 9:3.3.1 |
567fb2b1 | 23 | %{?with_kcddb:BuildRequires: kdemultimedia-devel} |
314c7a50 | 24 | BuildRequires: kdepim-devel |
b6749c5b | 25 | BuildRequires: libxml2-devel |
31ffc230 | 26 | BuildRequires: libxml2-progs |
240a454c | 27 | BuildRequires: libxslt-devel >= 1.0.19 |
8b8c38ce | 28 | BuildRequires: poppler-qt-devel |
adeb709e | 29 | BuildRequires: rpmbuild(macros) >= 1.129 |
314c7a50 | 30 | BuildRequires: taglib-devel |
31 | BuildRequires: yaz-devel | |
d895816a | 32 | Requires: desktop-file-utils |
9e1e39e1 | 33 | Requires: libxslt >= 1.0.19 |
0afb29db | 34 | Obsoletes: bookcase |
6f5a6570 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
6f5a6570 | 37 | %description |
e3c0c9e8 | 38 | Tellico is a personal catalog application for your book, video and |
dbfa650d | 39 | audio collection. |
6f5a6570 | 40 | |
6f14199b | 41 | %description -l pl.UTF-8 |
e3c0c9e8 | 42 | Tellico to osobista aplikacja katalogowa przeznaczona do |
6f14199b | 43 | księgozbiorów, archiwów wideo i audio. |
6f5a6570 | 44 | |
45 | %prep | |
653906c4 | 46 | %setup -q |
8b8c38ce | 47 | %patch0 -p1 |
653906c4 | 48 | %patch1 -p1 |
2cf47644 | 49 | %patch2 -p1 |
6f5a6570 | 50 | |
51 | %build | |
b6749c5b | 52 | cp -f /usr/share/automake/config.sub admin |
b6749c5b | 53 | %configure \ |
8b8c38ce | 54 | %{?with_webcam:--enable-webcam} \ |
3f1ae995 | 55 | --with%{!?with_arts:out}-arts \ |
567fb2b1 | 56 | %{!?with_kcddb:--disable-libkcddb} \ |
b6749c5b | 57 | --with-qt-libraries=%{_libdir} |
58 | ||
6f5a6570 | 59 | %{__make} |
60 | ||
61 | %install | |
314c7a50 | 62 | rm -rf $RPM_BUILD_ROOT |
b6749c5b | 63 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
adeb709e | 64 | |
6da15835 | 65 | %{__make} install \ |
b6749c5b | 66 | DESTDIR=$RPM_BUILD_ROOT \ |
67 | kde_htmldir=%{_kdedocdir} \ | |
68 | kde_libs_htmldir=%{_kdedocdir} | |
02fdf4da | 69 | |
7ec8f9ab | 70 | mv $RPM_BUILD_ROOT%{_datadir}/locale/{ee,et} |
71 | ||
314c7a50 | 72 | %find_lang %{name} --with-kde |
9e1e39e1 JB |
73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
6f5a6570 | 76 | |
314c7a50 | 77 | %post |
c8884139 | 78 | %update_desktop_database_post |
8b8c38ce | 79 | %update_mime_database |
314c7a50 | 80 | |
81 | %postun | |
c8884139 | 82 | %update_desktop_database_postun |
8b8c38ce | 83 | %update_mime_database |
314c7a50 | 84 | |
0afb29db | 85 | %files -f %{name}.lang |
6f5a6570 | 86 | %defattr(644,root,root,755) |
22e2e5f9 | 87 | %doc AUTHORS ChangeLog README TODO |
6f5a6570 | 88 | %attr(755,root,root) %{_bindir}/* |
0afb29db | 89 | %{_datadir}/mimelnk/application/x-%{name}.desktop |
90 | %{_datadir}/apps/kconf_update/%{name}-rename.upd | |
45fa6577 | 91 | %{_datadir}/apps/kconf_update/tellico.upd |
8b8c38ce | 92 | %{_datadir}/apps/kconf_update/tellico-1-3-update.pl |
6f5a6570 | 93 | %{_datadir}/apps/%{name} |
e50b0f0d | 94 | %{_datadir}/config/tellicorc |
c8884139 | 95 | %{_datadir}/config.kcfg/tellico_config.kcfg |
8b8c38ce | 96 | %{_datadir}/mime/packages/*.xml |
314c7a50 | 97 | %{_desktopdir}/kde/%{name}.desktop |
8b8c38ce | 98 | %{_iconsdir}/*/*/*/*.png |