Correct sed, add missing post and postun section for novdoc
OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/geekodoc?expand=0&rev=3
This commit is contained in:
parent
812d906be7
commit
73c7a6253e
@ -38,7 +38,7 @@ RELAX NG schema files for SUSE documentation.
|
||||
|
||||
%package -n novdoc
|
||||
Version: 1.0_%{version}
|
||||
Summary: Schema Files for NovDoc
|
||||
Summary: Schema Files for old SUSE Documentation (NovDoc)
|
||||
Group: Productivity/Publishing/DocBook
|
||||
Conflicts: suse-xsl-stylesheets < 2.0.6
|
||||
|
||||
@ -57,7 +57,7 @@ cp -R geekodoc novdoc %{buildroot}%{_datadir}/xml/
|
||||
cp catalog.d/* %{buildroot}%{_sysconfdir}/xml/catalog.d/
|
||||
|
||||
# Fixup catalog paths
|
||||
sed -i'' 's#"../#"%{_datadir}/xml/#' %{buildroot}%{_sysconfdir}/xml/catalog.d/*
|
||||
sed -i'' 's#"\.\./#"%{_datadir}/xml/#' %{buildroot}%{_sysconfdir}/xml/catalog.d/*
|
||||
|
||||
%post
|
||||
update-xml-catalog
|
||||
@ -65,6 +65,12 @@ update-xml-catalog
|
||||
%postun
|
||||
update-xml-catalog
|
||||
|
||||
%post -n novdoc
|
||||
update-xml-catalog
|
||||
|
||||
%postun -n novdoc
|
||||
update-xml-catalog
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%config %{_sysconfdir}/xml/catalog.d/geekodoc.xml
|
||||
|
Loading…
x
Reference in New Issue
Block a user