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