OBS User unknown 2009-01-29 23:28:46 +00:00 committed by Git OBS Bridge
parent b9afd9e8ed
commit 8ec4c31973
2 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 27 00:29:12 CET 2009 - crrodriguez@suse.de
- test if /usr/bin/edit-xml-catalog is executable before using it.
-------------------------------------------------------------------
Thu Mar 29 11:09:59 CEST 2007 - ke@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package xmlcharent (Version 0.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -29,7 +29,7 @@ Requires: sgml-skel libxml2
PreReq: %{regcat} /usr/bin/xmlcatalog /usr/bin/edit-xml-catalog
PreReq: sed grep awk
Version: 0.3
Release: 403
Release: 404
Summary: XML Character Entities
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: http://www.oasis-open.org/committees/docbook/%{name}/%{version}/%{name}-%{version}.zip
@ -136,8 +136,10 @@ xmlcatbin=usr/bin/xmlcatalog
exit 0
}
%endif
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
if [ -x /usr/bin/edit-xml-catalog ]; then
/usr/bin/edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
--add /etc/xml/%{FOR_ROOT_CAT}
fi
%postun
if [ "$1" = "0" -a -x %{regcat} ]; then
@ -146,8 +148,10 @@ if [ "$1" = "0" -a -x %{regcat} ]; then
done
fi
xmlcatbin=/usr/bin/xmlcatalog
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
if [ -x /usr/bin/edit-xml-catalog ]; then
/usr/bin/edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
--del %{name}-%{version}-%{release}
fi
%clean
rm -fr $RPM_BUILD_ROOT
@ -164,6 +168,8 @@ rm -fr $RPM_BUILD_ROOT
%dir %{xml_dir}/entities/xmlcharent
%changelog
* Tue Jan 27 2009 crrodriguez@suse.de
- test if /usr/bin/edit-xml-catalog is executable before using it.
* Thu Mar 29 2007 ke@suse.de
- Add BuildRequires: unzip
* Thu Jan 11 2007 ke@suse.de