[SCM] libav-extra/master: Add Built-Using fields
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Wed Sep 28 21:24:30 UTC 2011
The following commit has been merged in the master branch:
commit a0255fffd9e1d92e149a770f6855faf69931081e
Author: Reinhard Tartler <siretart at tauware.de>
Date: Wed Sep 28 17:26:15 2011 +0200
Add Built-Using fields
This is to indicate what exact package version was used at package built
time. This information is required for instance for GPL compliance.
diff --git a/debian/control b/debian/control
index c7d3f22..97acbfb 100644
--- a/debian/control
+++ b/debian/control
@@ -56,6 +56,7 @@ Depends: ${shlibs:Depends},
${misc:Depends}
Conflicts: libavutil51
Replaces: libavutil51
+Built-Using: ${libav:Built-Using}
Description: Libav utility library
This is the common utility library from the Libav project. It is required
by all other Libav libraries.
@@ -72,6 +73,7 @@ Depends: ${shlibs:Depends},
Suggests: libfaad0
Conflicts: libavcodec53
Replaces: libavcodec53
+Built-Using: ${libav:Built-Using}
Description: Libav codec library
This package contains the ffplay multimedia player, the ffserver streaming
server and the Libav audio and video encoder. They support most existing
@@ -89,6 +91,7 @@ Depends: ${shlibs:Depends},
${misc:Depends}
Conflicts: libavdevice53
Replaces: libavdevice53
+Built-Using: ${libav:Built-Using}
Description: Libav device handling library
This is the device handling library from the Libav project.
.
@@ -103,6 +106,7 @@ Depends: ${shlibs:Depends},
${misc:Depends}
Conflicts: libavfilter2
Replaces: libavfilter2
+Built-Using: ${libav:Built-Using}
Description: Libav filter library
This is the video postprocessing library from Libav.
.
@@ -117,6 +121,7 @@ Depends: ${shlibs:Depends},
${misc:Depends}
Conflicts: libpostproc52
Replaces: libpostproc52
+Built-Using: ${libav:Built-Using}
Description: Libav video postprocessing library
This is the video postprocessing library from the Libav project.
.
@@ -131,6 +136,7 @@ Depends: ${shlibs:Depends},
${misc:Depends}
Conflicts: libavformat53
Replaces: libavformat53
+Built-Using: ${libav:Built-Using}
Description: Libav file format library
This is the demuxer library from the Libav project. It supports most
existing file formats (AVI, MPEG, OGG, Matroska, ASF...).
@@ -146,6 +152,7 @@ Depends: ${shlibs:Depends},
${misc:Depends}
Conflicts: libswscale-extra-1 (>> 4:0.7~), libswscale2
Replaces: libswscale-extra-1 (>> 4:0.7~), libswscale2
+Built-Using: ${libav:Built-Using}
Description: Libav video scaling library
This is the video scaling library from the Libav project.
.
diff --git a/debian/rules b/debian/rules
index 6242642..8972be2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,8 @@ DEB_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed -r 's/[^:]+://; s/-[^-]+$$//')
SHLIBS_VERSION := 4:0.7-1
+BUILT_USING=$(shell dpkg-query --showformat='$${Source} (= $${Version})' --show libav-source)
+
LIB_PKGS := $(shell sed -nr 's/^Package:[[:space:]]*(lib(avutil|avcodec|avdevice|avformat|avfilter|postproc|swscale)(-extra-)?[0-9]+)[[:space:]]*$$/\1/p' debian/control)
# Support multiple makes at once
@@ -26,6 +28,7 @@ $(info FLAVORS = $(FLAVORS))
$(info DEB_BUILD_OPTIONS = $(DEB_BUILD_OPTIONS))
$(info CFLAGS = $(CFLAGS))
$(info LDFLAGS = $(LDFLAGS))
+$(info BUILT_USING = $(BUILT_USING))
libav/configure:
tar xvf /usr/src/libav-source.tar.gz
@@ -120,7 +123,7 @@ binary-arch: build install codecs.txt formats.txt
dh_makeshlibs -p"$$pkg" -V"$$pkg (>= $(SHLIBS_VERSION))"; \
done
dh_installdeb
- dh_gencontrol -- -Vlib1394-dev="$(lib1394-dev)"
+ dh_gencontrol -- -Vlib1394-dev="$(lib1394-dev)" -Vlibav:Built-Using="$(BUILT_USING)"
dh_md5sums
dh_builddeb
--
libav-extra packaging
More information about the pkg-multimedia-commits
mailing list