Parcourir la source

delete catalogs with the package

Michael van Elst il y a 22 ans
Parent
commit
16da01e19a
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      sgml/sgml.spec

+ 7 - 2
sgml/sgml.spec

@@ -32,8 +32,8 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [PLUS]
 Group:        SGML
 License:      PD
-Version:      20030605
-Release:      20030605
+Version:      20030614
+Release:      20030614
 
 #   list of sources
 Source0:      mkcatalog
@@ -83,3 +83,8 @@ AutoReqProv:  no
 %clean
     rm -rf $RPM_BUILD_ROOT
 
+%preun
+    if [ $1 -eq 0 ]; then
+        rm -f %{l_prefix}/share/sgml/catalog
+        rm -f %{l_prefix}/share/sgml/catalog.xml
+    fi