summaryrefslogtreecommitdiff
path: root/debian.upstream
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-10-03 11:21:45 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-10-03 11:21:45 +0200
commit276a73c1e1804dd507a006b7666e8984c8a74727 (patch)
tree380ed5c3660d65c7e29213c517a3f206cd444945 /debian.upstream
parentd96d03ac529a80c5d630e753cfc645f598de587c (diff)
debian: generate packing files from configure.
Use configure script substitution capabilities to handle Debian packaging files, hence removing custom replacement functions at make dist time. This also makes it possible to automatically generate the correct library major version in package names. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'debian.upstream')
-rw-r--r--debian.upstream/Makefile.am35
-rw-r--r--debian.upstream/changelog.in2
-rw-r--r--debian.upstream/control.in10
-rw-r--r--debian.upstream/libva-dev.dirs2
-rw-r--r--debian.upstream/libva.install.in (renamed from debian.upstream/libva1.install)0
-rw-r--r--debian.upstream/libva1.dirs1
6 files changed, 19 insertions, 31 deletions
diff --git a/debian.upstream/Makefile.am b/debian.upstream/Makefile.am
index 87a571a..46accc4 100644
--- a/debian.upstream/Makefile.am
+++ b/debian.upstream/Makefile.am
@@ -1,20 +1,19 @@
DEBIANFILES = \
- README.Debian \
- changelog.in \
- compat \
- control.in \
- copyright \
- libva-dev.dirs \
- libva-dev.install \
- libva1.dirs \
- libva1.install \
- rules \
- vainfo.install \
+ README.Debian \
+ changelog.in \
+ compat \
+ control.in \
+ copyright \
+ libva-dev.install \
+ libva.install.in \
+ rules \
+ vainfo.install \
$(NULL)
-DEBIANGENFILES = \
- changelog \
- control \
+DEBIANGENFILES = \
+ changelog \
+ control \
+ libva$(LIBVA_MAJOR_VERSION).install \
$(NULL)
EXTRA_DIST = $(DEBIANFILES)
@@ -23,11 +22,3 @@ dist_noinst_DATA = $(DEBIANGENFILES)
# Extra clean files so that maintainer-clean removes *everything*
MAINTAINERCLEANFILES = Makefile.in $(DEBIANGENFILES)
-
-$(DEBIANGENFILES): %: %.in Makefile
- -sed \
- -e 's|\@DATE\@|'"`LC_ALL=C date +'%a, %d %b %Y %X %z'`"'|' \
- -e 's|\@LIBDRM_VERSION\@|$(LIBDRM_VERSION)|' \
- -e 's|\@LIBVA_PACKAGE_VERSION\@|$(LIBVA_PACKAGE_VERSION)|' \
- -e 's|\@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|' \
- $< > $@
diff --git a/debian.upstream/changelog.in b/debian.upstream/changelog.in
index 397b5eb..f5482c4 100644
--- a/debian.upstream/changelog.in
+++ b/debian.upstream/changelog.in
@@ -2,4 +2,4 @@ libva (@PACKAGE_VERSION@-1) unstable; urgency=low
* Autogenerated package, see NEWS file for ChangeLog.
- -- Gwenole Beauchesne <gwenole.beauchesne@intel.com> @DATE@
+ -- Gwenole Beauchesne <gwenole.beauchesne@intel.com> @TODAY@
diff --git a/debian.upstream/control.in b/debian.upstream/control.in
index c6bb652..54555a0 100644
--- a/debian.upstream/control.in
+++ b/debian.upstream/control.in
@@ -18,7 +18,7 @@ Section: libs
Package: libva-dev
Section: libdevel
Architecture: any
-Depends: libva1 (= ${binary:Version}),
+Depends: libva@LIBVA_MAJOR_VERSION@ (= ${binary:Version}),
libdrm-dev (>= @LIBDRM_VERSION@),
libgl-dev,
pkg-config
@@ -28,7 +28,7 @@ Description: Video Acceleration (VA) API for Linux -- development files
.
This package provides the development environment for libva.
-Package: libva1
+Package: libva@LIBVA_MAJOR_VERSION@
Section: libs
Architecture: any
Depends: ${shlibs:Depends}
@@ -36,10 +36,10 @@ Description: Video Acceleration (VA) API for Linux -- runtime
The libva library implements the Video Acceleration (VA) API for Linux.
The library loads a hardware dependendent driver.
-Package: libva1-dbg
+Package: libva@LIBVA_MAJOR_VERSION@-dbg
Section: libdevel
Architecture: any
-Depends: libva1 (= ${Source-Version})
+Depends: libva@LIBVA_MAJOR_VERSION@ (= ${Source-Version})
Description: Video Acceleration (VA) API for Linux -- runtime
The libva library implements the Video Acceleration (VA) API for Linux.
The library loads a hardware dependendent driver.
@@ -48,7 +48,7 @@ Description: Video Acceleration (VA) API for Linux -- runtime
Package: vainfo
Architecture: any
-Depends: libva1 (= ${Source-Version})
+Depends: libva@LIBVA_MAJOR_VERSION@ (= ${Source-Version})
Description: Video Acceleration (VA) API for Linux -- info program
The libva library implements the Video Acceleration (VA) API for Linux.
The library loads a hardware dependendent driver.
diff --git a/debian.upstream/libva-dev.dirs b/debian.upstream/libva-dev.dirs
deleted file mode 100644
index 4418816..0000000
--- a/debian.upstream/libva-dev.dirs
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/lib
-usr/include
diff --git a/debian.upstream/libva1.install b/debian.upstream/libva.install.in
index ddfd8ed..ddfd8ed 100644
--- a/debian.upstream/libva1.install
+++ b/debian.upstream/libva.install.in
diff --git a/debian.upstream/libva1.dirs b/debian.upstream/libva1.dirs
deleted file mode 100644
index 6845771..0000000
--- a/debian.upstream/libva1.dirs
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib