X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=tellico.spec;h=a44534d41f65d6df5ac6301ff7844c952a95f25f;hb=653906c456007861cf32f4e5ee12173d4ba1731d;hp=550609954c753a175e02f739d4e91c5815b55984;hpb=e50b0f0df3c02c564d2911e52b2ae3b0f50ff022;p=packages%2Ftellico.git diff --git a/tellico.spec b/tellico.spec index 5506099..a44534d 100644 --- a/tellico.spec +++ b/tellico.spec @@ -1,15 +1,22 @@ +# +# Conditional build: +%bcond_with webcam # build with webcam barcode recognition +# Summary: A collection manager Summary(pl.UTF-8): Zarządca zbiorów wideo, audio i książek Name: tellico -Version: 1.2.14 -Release: 1 +Version: 1.3 +Release: 2 License: GPL v2 Group: X11/Applications Source0: http://www.periapsis.org/tellico/download/%{name}-%{version}.tar.gz -# Source0-md5: 38047e27d482757fae977fa49809a784 +# Source0-md5: e14286bc16a639a4e956edee4f1a9100 +Patch0: %{name}-u64.patch +Patch1: %{name}-desktop.patch URL: http://www.periapsis.org/tellico/ BuildRequires: autoconf BuildRequires: automake +BuildRequires: exempi-devel BuildRequires: kdelibs-devel >= 9:3.3.1 BuildRequires: kdemultimedia-devel BuildRequires: kdepim-devel @@ -17,6 +24,7 @@ BuildRequires: libtool BuildRequires: libxml2-devel BuildRequires: libxml2-progs BuildRequires: libxslt-devel >= 1.0.19 +BuildRequires: poppler-qt-devel BuildRequires: rpmbuild(macros) >= 1.129 BuildRequires: taglib-devel BuildRequires: yaz-devel @@ -36,6 +44,8 @@ księgozbiorów, archiwów wideo i audio. %prep %setup -q +%patch0 -p1 +%patch1 -p1 %build cp -f /usr/share/automake/config.sub admin @@ -47,6 +57,7 @@ cp -f /usr/share/automake/config.sub admin %{__perl} admin/am_edit %configure \ --enable-final \ + %{?with_webcam:--enable-webcam} \ --with-qt-libraries=%{_libdir} %{__make} @@ -69,9 +80,11 @@ rm -rf $RPM_BUILD_ROOT %post %update_desktop_database_post +%update_mime_database %postun %update_desktop_database_postun +%update_mime_database %files -f %{name}.lang %defattr(644,root,root,755) @@ -80,8 +93,10 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/mimelnk/application/x-%{name}.desktop %{_datadir}/apps/kconf_update/%{name}-rename.upd %{_datadir}/apps/kconf_update/tellico.upd +%{_datadir}/apps/kconf_update/tellico-1-3-update.pl %{_datadir}/apps/%{name} %{_datadir}/config/tellicorc %{_datadir}/config.kcfg/tellico_config.kcfg +%{_datadir}/mime/packages/*.xml %{_desktopdir}/kde/%{name}.desktop -%{_iconsdir}/*/*/*/%{name}.png +%{_iconsdir}/*/*/*/*.png