summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorrsiddall <rsiddall>2009-06-29 22:48:51 +0000
committerrsiddall <rsiddall>2009-06-29 22:48:51 +0000
commitf544c8f095cfb2e844810d31b6230b96033cb1e8 (patch)
tree5f2e5b6d41f01a7c665747166406e8176a534fc8 /rpm
parent5571989e5ca4e76951caed237d07e51ffaed71a3 (diff)
Fix PDF invoice generation, including requirement for ghostscript.
Diffstat (limited to 'rpm')
-rw-r--r--rpm/freeside.spec12
1 files changed, 12 insertions, 0 deletions
diff --git a/rpm/freeside.spec b/rpm/freeside.spec
index e29511b20..e245fd37a 100644
--- a/rpm/freeside.spec
+++ b/rpm/freeside.spec
@@ -17,8 +17,10 @@ Requires: %{name}-frontend
Requires: %{name}-backend
%if "%{_vendor}" != "suse"
Requires: tetex-latex
+Requires: ghostscript
%else
Requires: te_latex
+Requires: ghostscript-library
%endif
Requires: perl-Fax-Hylafax-Client
@@ -48,6 +50,8 @@ Requires: perl-Fax-Hylafax-Client
%define fs_cron_user fs_daily
%define db_types Pg mysql
+%define texmflocal /usr/share/texmf
+
%define _rpmlibdir /usr/lib/rpm
%define rpmfiles rpm
@@ -328,6 +332,9 @@ cd ../..
%{__install} %{rpmfiles}/freeside-selfservice.conf $RPM_BUILD_ROOT%{apache_confdir}/%{name}-selfservice.conf
%{__perl} -pi -e "s|%%%%%%FREESIDE_SELFSERVICE_DOCUMENT_ROOT%%%%%%|%{freeside_selfservice_document_root}|g" $RPM_BUILD_ROOT%{apache_confdir}/%{name}-selfservice.conf
+# This is part of Makefile's install-texmf. The rest is in triggers. These files are not in the filelist
+%{__install} -D etc/fslongtable.sty $RPM_BUILD_ROOT%{texmflocal}/tex/generic/fslongtable.sty
+
%pre
if ! %{__id} freeside &>/dev/null; then
%if "%{_vendor}" == "suse"
@@ -405,6 +412,10 @@ if ! %{__grep} TEXINPUTS /etc/init.d/apache2 >/dev/null; then
fi
%endif
+%triggerin -- tetex
+#texhash `kpsewhich -expand-var \$TEXMFLOCAL`
+texhash %{texmflocal}
+
%clean
%{__rm} -rf %{buildroot}
@@ -418,6 +429,7 @@ fi
%attr(-,freeside,freeside) %dir %{freeside_log}
%attr(0711,freeside,freeside) %config(noreplace) %{freeside_conf}/default_conf
%attr(0644,freeside,freeside) %config(noreplace) %{freeside_conf}/default_conf/*
+%attr(444,root,root) %{texmflocal}/tex/generic/fslongtable.sty
%files mason -f %{name}-%{version}-%{release}-mason-filelist
%defattr(-, freeside, freeside, 0755)