|
|
|
@ -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}
|
|
|
|
|
|
|
|
|
|