From 8eb547afe47f1ba6fbc9fd1c21c97410171a535e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 24 Oct 2012 00:35:09 -0400 Subject: Use substitution variables in control files. NOTE: Requires opkbuild 3.0.0-alpha3 (not yet released) or at least commit ac831a4f in opkbuild's Git repository. --- diff --git a/libexpat.1-dbg.pkg/control b/libexpat.1-dbg.pkg/control index 3e1f970..5e195e4 100644 --- a/libexpat.1-dbg.pkg/control +++ b/libexpat.1-dbg.pkg/control @@ -1,9 +1,7 @@ Architecture: any Platform: all -Depends: libexpat.1 (= 2.1.0-1) +Depends: libexpat.1 (= ${Binary-Version}) Description: XML parser library - debugging symbols - Expat is an XML parser library written in C. It is a stream-oriented parser in - which an application registers handlers for things the parser might find in the - XML document (like start tags). + ${Common-Description} . This package provides debugging symbols for Expat. diff --git a/libexpat.1-dev.pkg/control b/libexpat.1-dev.pkg/control index 4ae2a5f..3855796 100644 --- a/libexpat.1-dev.pkg/control +++ b/libexpat.1-dev.pkg/control @@ -1,9 +1,7 @@ Architecture: any Platform: all -Depends: libexpat.1 (= 2.1.0-1) +Depends: libexpat.1 (= ${Binary-Version}) Description: XML parser library - development files - Expat is an XML parser library written in C. It is a stream-oriented parser in - which an application registers handlers for things the parser might find in the - XML document (like start tags). + ${Common-Description} . This package provides development files for Expat. diff --git a/libexpat.1.pkg/control b/libexpat.1.pkg/control index d9f987a..a77d8a6 100644 --- a/libexpat.1.pkg/control +++ b/libexpat.1.pkg/control @@ -1,6 +1,4 @@ Architecture: any Platform: all Description: XML parser library - Expat is an XML parser library written in C. It is a stream-oriented parser in - which an application registers handlers for things the parser might find in the - XML document (like start tags). + ${Common-Description} diff --git a/substvars b/substvars new file mode 100644 index 0000000..18484c5 --- /dev/null +++ b/substvars @@ -0,0 +1,4 @@ +Common-Description: + Expat is an XML parser library written in C. It is a stream-oriented parser in + which an application registers handlers for things the parser might find in the + XML document (like start tags). diff --git a/xmlwf-doc.pkg/control b/xmlwf-doc.pkg/control index 7f4e1af..0a4c009 100644 --- a/xmlwf-doc.pkg/control +++ b/xmlwf-doc.pkg/control @@ -1,6 +1,6 @@ Architecture: all Platform: all -Depends: libexpat.1 (= 2.1.0-1), xmlwf +Depends: libexpat.1 (= ${Binary-Version}), xmlwf Description: XML parser library - example application documentation files This package provides the manual page for xmlwf, an example application of Expat that determines if an XML document is well-formed. diff --git a/xmlwf.pkg/control b/xmlwf.pkg/control index 89ecd2a..f1d6c4b 100644 --- a/xmlwf.pkg/control +++ b/xmlwf.pkg/control @@ -1,6 +1,6 @@ Architecture: any Platform: all -Depends: libexpat.1 (= 2.1.0-1) +Depends: libexpat.1 (= ${Binary-Version}) Description: XML parser library - example application This package provides an example application of Expat that determines if an XML document is well-formed. -- cgit v0.9.1