- Fix cut&paste error.

- Plugins: Set rpath for libperl (bnc#612766).

OBS-URL: https://build.opensuse.org/package/show/graphics/graphviz?expand=0&rev=19
This commit is contained in:
Philipp Thomas
2010-06-14 12:17:04 +00:00
committed by Git OBS Bridge
parent f0623ab027
commit 88275d76a8
6 changed files with 63 additions and 4 deletions

View File

@@ -15,7 +15,8 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
#name of the plugin config file that dot creates
%define config_file config6
Name: graphviz
BuildRequires: fdupes libexpat-devel libjpeg-devel libpng-devel zlib-devel
@@ -37,6 +38,7 @@ Patch11: graphviz-2.20.2-interpreter_names.patch
Patch13: graphviz-stddefs.patch
Patch14: graphviz-gd_png_check_sig.patch
Patch15: graphviz-wrong_index.patch
Patch16: graphviz-sequence_point.patch
Url: http://www.graphviz.org/
License: IBM Public License ..
Prefix: /usr
@@ -95,6 +97,7 @@ Authors:
%patch13
%patch14
%patch15
%patch16
# Fix path in generated man pages
sed -e 's$@LIB_DIR@$%{_libdir}$g' tclpkg/gv/gv_doc_langs.tcl >tclpkg/gv/gv_doc_langs.tcl.new && mv tclpkg/gv/gv_doc_langs.tcl.new tclpkg/gv/gv_doc_langs.tcl
# remove broken macros
@@ -174,11 +177,11 @@ rm -f %{_libdir}/graphviz/libgvplugin_gtk*
/sbin/ldconfig
# run "dot -c" to generate plugin config %_libdir/graphviz/config
dot -c
test -s %{_libdir}/graphviz/config || echo "%{_libdir}/graphviz/config doesn't exist! Check installation."
test -s %{_libdir}/graphviz/%{config_file} || echo "%{_libdir}/graphviz/%{config_file} doesn't exist! Check installation."
%postun
/sbin/ldconfig
if ! test -x $RPM_INSTALL_PREFIX0/bin/dot; then rm -f $RPM_INSTALL_PREFIX0/%{_lib}/graphviz/config; fi
eblif ! test -x $RPM_INSTALL_PREFIX0/bin/dot; then rm -f $RPM_INSTALL_PREFIX0/%{_lib}/graphviz/%{config_file}; fi
%files
%defattr(-,root,root)