summaryrefslogtreecommitdiffstats
path: root/redhat/applications/tellico
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/tellico')
-rw-r--r--redhat/applications/tellico/tellico-14.0.0.spec17
1 files changed, 14 insertions, 3 deletions
diff --git a/redhat/applications/tellico/tellico-14.0.0.spec b/redhat/applications/tellico/tellico-14.0.0.spec
index 6ee31ce1b..5f48161c2 100644
--- a/redhat/applications/tellico/tellico-14.0.0.spec
+++ b/redhat/applications/tellico/tellico-14.0.0.spec
@@ -74,6 +74,18 @@ BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: fdupes
+# POPPLER support
+%if 0%{?rhel} >=6 || 0%{?fedora} >= 15 || 0%{?suse_version}
+BuildRequires: poppler-devel >= 0.12
+%endif
+%if 0%{?mgaversion} || 0%{?mdkversion}
+BuildRequires: %{_lib}poppler-devel
+%endif
+%if 0%{?rhel} >= 4 && 0%{?rhel} <= 5
+# On RHEL 5, the distro-provided poppler is too old. We built a newer one.
+BuildRequires: trinity-poppler-devel >= 0.12
+%endif
+
# SUSE desktop files utility
%if 0%{?suse_version}
BuildRequires: update-desktop-files
@@ -159,7 +171,6 @@ It also makes it easy for other softwares to use the Tellico data.
%files -f %{tde_pkg}.lang
%defattr(-,root,root,-)
%{tde_bindir}/tellico
-#%{tde_datadir}/pixmaps
%{tde_datadir}/applications
%{tde_confdir}/tellicorc
@@ -301,8 +312,8 @@ export PATH="%{tde_bindir}:${PATH}"
%__make install DESTDIR=$RPM_BUILD_ROOT -C build
# Add svg icons to xdg directories
-%__install -D -c -p -m 644 icons/tellico.svg %{?buildroot}%{tde_datadir}/icons/hicolor/scalable/apps/tellico.svg
-%__install -D -c -p -m 644 icons/tellico_mime.svg %{?buildroot}%{tde_datadir}/icons/hicolor/scalable/mimetypes/application-x-tellico.svg
+%__install -D -c -p -m 644 "icons/tellico.svg" "%{?buildroot}%{tde_datadir}/icons/hicolor/scalable/apps/tellico.svg"
+%__install -D -c -p -m 644 "icons/tellico_mime.svg" "%{?buildroot}%{tde_datadir}/icons/hicolor/scalable/mimetypes/application-x-tellico.svg"
%find_lang %{tde_pkg}