diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2016-09-14 09:28:40 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2016-09-14 14:39:42 -0400 |
commit | e5630d47edfff26ec6b1a36a9234d7c9a89dc5b9 (patch) | |
tree | f1b7155e37edb3c7c15f5c129f7c1335cb97e342 /packages | |
parent | 54a479592dc327c36f514868588f4693e629bf27 (diff) |
packages: Centralize GStreamer package common values
This reduces the redundancy and quickly allow changing the
version.
Diffstat (limited to 'packages')
23 files changed, 35 insertions, 151 deletions
diff --git a/packages/base-crypto.package b/packages/base-crypto.package index c954323d..b4b168d1 100644 --- a/packages/base-crypto.package +++ b/packages/base-crypto.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'base-crypto' shortdesc = 'Crypto base dependencies' longdesc = 'Crypto base dependencies' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = 'b3a6046d-5a39-4d54-93ee-3770d2f316f5' deps = ['base-system-1.0'] diff --git a/packages/base-system-1.0.package b/packages/base-system-1.0.package index 8f078d41..89a3ce0d 100644 --- a/packages/base-system-1.0.package +++ b/packages/base-system-1.0.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'base-system-1.0' shortdesc = 'Base system dependencies' longdesc = 'Base system dependencies' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = 'fae6046d-5a39-4d54-93ee-3770d2f316f5' files = ['cairo:libs', 'expat:libs', 'fontconfig:libs:etc', diff --git a/packages/custom.py b/packages/custom.py new file mode 100644 index 00000000..cc88bdc2 --- /dev/null +++ b/packages/custom.py @@ -0,0 +1,13 @@ +# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python + +from cerbero.packages import package +from cerbero.enums import License + +class GStreamer: + + url = "http://gstreamer.freedesktop.org" + version = '1.9.2' + codename = 'Congo' + vendor = 'GStreamer Project' + licenses = [License.LGPL] + org = 'org.freedesktop.gstreamer' diff --git a/packages/gstreamer-1.0-capture.package b/packages/gstreamer-1.0-capture.package index 4b38fab6..03781dfd 100644 --- a/packages/gstreamer-1.0-capture.package +++ b/packages/gstreamer-1.0-capture.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-capture' shortdesc = 'GStreamer 1.0 plugins for capture' longdesc = 'GStreamer 1.0 plugins for capture' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = '1c85344d-5968-4e50-959e-5cf4379e0a40' deps = ['gstreamer-1.0-core', 'gstreamer-1.0-encoding'] diff --git a/packages/gstreamer-1.0-codecs-gpl.package b/packages/gstreamer-1.0-codecs-gpl.package index d4f04701..039264fa 100644 --- a/packages/gstreamer-1.0-codecs-gpl.package +++ b/packages/gstreamer-1.0-codecs-gpl.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-codecs-gpl' shortdesc = 'GStreamer 1.0 codecs under the GPL license and/or with patents issues' longdesc = 'GStreamer 1.0 codecs under the GPL license and/or with patents issues' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = 'f685219b-7ee8-46b9-af3c-338e3cbb4f94' deps = ['gstreamer-1.0-core'] diff --git a/packages/gstreamer-1.0-codecs-restricted.package b/packages/gstreamer-1.0-codecs-restricted.package index d3d60581..3c5a780f 100644 --- a/packages/gstreamer-1.0-codecs-restricted.package +++ b/packages/gstreamer-1.0-codecs-restricted.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-codecs-restricted' shortdesc = 'GStreamer 1.0 restricted codecs with potential patent issues in some countries' longdesc = 'GStreamer 1.0 restricted codecs with potential patent issues in some countries' - version = '1.9.2' - codename = 'Congo' - url = "http://gstreamer.freedesktop.org" - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = '0a4e77e8-3c8c-4e7d-890b-1538d36f1816' deps = ['gstreamer-1.0-core'] diff --git a/packages/gstreamer-1.0-codecs.package b/packages/gstreamer-1.0-codecs.package index 138e9f75..c867c5b4 100644 --- a/packages/gstreamer-1.0-codecs.package +++ b/packages/gstreamer-1.0-codecs.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-codecs' shortdesc = 'GStreamer 1.0 codecs' longdesc = 'GStreamer 1.0 codecs' - version = '1.9.2' - codename = 'Congo' - url = "http://gstreamer.freedesktop.org" - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = 'a2e545d5-7819-4636-9e86-3660542f08e5' deps = ['gstreamer-1.0-core', 'base-crypto'] diff --git a/packages/gstreamer-1.0-core.package b/packages/gstreamer-1.0-core.package index 2b412d87..ad4edea2 100644 --- a/packages/gstreamer-1.0-core.package +++ b/packages/gstreamer-1.0-core.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-core' shortdesc = 'GStreamer 1.0 core' longdesc = 'GStreamer 1.0 core' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = 'd9626750-e8b7-4e40-944d-98b67ed0c6bf' deps = ['base-system-1.0'] diff --git a/packages/gstreamer-1.0-devtools.package b/packages/gstreamer-1.0-devtools.package index b6aab771..c6799eef 100644 --- a/packages/gstreamer-1.0-devtools.package +++ b/packages/gstreamer-1.0-devtools.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-devtools' shortdesc = 'GStreamer 1.0 devtools' longdesc = 'GStreamer 1.0 devtools' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' deps = ['gstreamer-1.0-core'] files = ['gst-validate'] diff --git a/packages/gstreamer-1.0-dvd.package b/packages/gstreamer-1.0-dvd.package index 17dff47c..f8e72cfe 100644 --- a/packages/gstreamer-1.0-dvd.package +++ b/packages/gstreamer-1.0-dvd.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-dvd' shortdesc = 'GStreamer 1.0 DVD support' longdesc = 'GStreamer 1.0 DVD support' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = 'b92c270e-3d91-48ea-bedf-fdc01b41caba' deps = ['gstreamer-1.0-core'] diff --git a/packages/gstreamer-1.0-editing.package b/packages/gstreamer-1.0-editing.package index fd62e4f6..296740bd 100644 --- a/packages/gstreamer-1.0-editing.package +++ b/packages/gstreamer-1.0-editing.package @@ -2,16 +2,10 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-editing' shortdesc = 'GStreamer plugins and libraries for editing' longdesc = 'GStreamer plugins and libraries for editing' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = '4befe092-e10a-4500-9ac9-d9c6d18072a1' deps = ['gstreamer-1.0-core', 'gstreamer-1.0-devtools'] diff --git a/packages/gstreamer-1.0-effects.package b/packages/gstreamer-1.0-effects.package index 5ecac30d..0570b274 100644 --- a/packages/gstreamer-1.0-effects.package +++ b/packages/gstreamer-1.0-effects.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-effects' shortdesc = 'GStreamer 1.0 effects and instrumentation plugins' longdesc = 'GStreamer 1.0 effects and instrumentation plugins' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = '4be3f88b-b552-4cd7-aecd-cf935fe270f7' deps = ['gstreamer-1.0-core'] diff --git a/packages/gstreamer-1.0-encoding.package b/packages/gstreamer-1.0-encoding.package index ec6a63cd..7e7b155f 100644 --- a/packages/gstreamer-1.0-encoding.package +++ b/packages/gstreamer-1.0-encoding.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-encoding' shortdesc = 'GStreamer 1.0 plugins for encoding' longdesc = 'GStreamer 1.0 plugins for encoding' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = '0c91cd49-7dd2-4b48-aa7a-3f71d17c09b4' deps = ['gstreamer-1.0-core', 'gstreamer-1.0-playback'] diff --git a/packages/gstreamer-1.0-libav.package b/packages/gstreamer-1.0-libav.package index b1af8e9a..a58e999d 100644 --- a/packages/gstreamer-1.0-libav.package +++ b/packages/gstreamer-1.0-libav.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-libav' shortdesc = 'GStreamer 1.0 libav wrapper' longdesc = 'GStreamer 1.0 libav wrapper' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = '5581acc2-d38c-491b-83c9-14b7011c3c06' deps = ['gstreamer-1.0-core'] diff --git a/packages/gstreamer-1.0-net-restricted.package b/packages/gstreamer-1.0-net-restricted.package index f8c1816c..56a4c34d 100644 --- a/packages/gstreamer-1.0-net-restricted.package +++ b/packages/gstreamer-1.0-net-restricted.package @@ -2,16 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-net-restricted' shortdesc = 'GStreamer 1.0 plugins for network protocols with potential patent issues in some countries' longdesc = 'GStreamer 1.0 plugins for network protocols with potential patent issues in some countries' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' org = 'org.freedesktop.gstreamer' uuid = '8cf57a89-3ba3-4db0-8b66-15e79b541ffe' deps = ['gstreamer-1.0-core', 'base-crypto'] diff --git a/packages/gstreamer-1.0-net.package b/packages/gstreamer-1.0-net.package index 28e9b9f9..f3c3237c 100644 --- a/packages/gstreamer-1.0-net.package +++ b/packages/gstreamer-1.0-net.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-net' shortdesc = 'GStreamer 1.0 plugins for network protocols' longdesc = 'GStreamer 1.0 plugins for network protocols' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = '2f9ca3f5-3b3b-4b4d-8cc9-6c08f21af807' deps = ['gstreamer-1.0-core', 'base-crypto'] diff --git a/packages/gstreamer-1.0-playback.package b/packages/gstreamer-1.0-playback.package index ee981b94..51298f30 100644 --- a/packages/gstreamer-1.0-playback.package +++ b/packages/gstreamer-1.0-playback.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-playback' shortdesc = 'GStreamer 1.0 plugins for playback' longdesc = 'GStreamer 1.0 plugins for playback' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = '74bc4aad-2463-4be5-9a8b-41d132fa7bd5' deps = ['gstreamer-1.0-core'] diff --git a/packages/gstreamer-1.0-system.package b/packages/gstreamer-1.0-system.package index 30129e4a..0f4673aa 100644 --- a/packages/gstreamer-1.0-system.package +++ b/packages/gstreamer-1.0-system.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-system' shortdesc = 'GStreamer 1.0 system plugins' longdesc = 'GStreamer 1.0 system plugins' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = 'fe9b6b9e-0817-4a2f-9838-44e1d9377435' deps = ['gstreamer-1.0-core'] diff --git a/packages/gstreamer-1.0-visualizers.package b/packages/gstreamer-1.0-visualizers.package index 7f9409f6..5f0a6098 100644 --- a/packages/gstreamer-1.0-visualizers.package +++ b/packages/gstreamer-1.0-visualizers.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gstreamer-1.0-visualizers' shortdesc = 'GStreamer 1.0 visualization plugins' longdesc = 'GStreamer 1.0 visualization plugins' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = 'b8800fa1-44bb-4a95-87e1-6814cdc62ec3' deps = ['gstreamer-1.0-core'] diff --git a/packages/gstreamer-1.0-vs-templates.package b/packages/gstreamer-1.0-vs-templates.package index 4190f5e8..45742f14 100644 --- a/packages/gstreamer-1.0-vs-templates.package +++ b/packages/gstreamer-1.0-vs-templates.package @@ -3,17 +3,11 @@ from cerbero.packages.wix import VSTemplatePackage
-class Package(VSTemplatePackage):
+class Package(custom.GStreamer, VSTemplatePackage):
name = 'gstreamer-1.0-vs-templates'
shortdesc = 'GStreamer 1.0 VS templates'
longdesc = 'GStreamer 1.0 Visual Studio templates'
- url = "http://gstreamer.freedesktop.org"
- version = '1.9.2'
- codename = 'Congo'
- license = License.LGPL
- vendor = 'GStreamer Project'
- org = 'org.freedesktop.gstreamer'
uuid = '42b3ba90-bd6a-4d94-a40d-5f2adf7ce441'
vs_template_dir = 'share/vs/2010/gst-sdk-template'
vs_wizard_dir = 'share/vs/2010/wizard'
diff --git a/packages/gstreamer-1.0/gstreamer-1.0.package b/packages/gstreamer-1.0/gstreamer-1.0.package index adf315a2..e95742d2 100644 --- a/packages/gstreamer-1.0/gstreamer-1.0.package +++ b/packages/gstreamer-1.0/gstreamer-1.0.package @@ -1,20 +1,14 @@ # -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python -class SDKPackage(package.SDKPackage): +class SDKPackage(custom.GStreamer, package.SDKPackage): name = "gstreamer-1.0" shortdesc = "GStreamer 1.0" longdesc = "GStreamer 1.0" title = "GStreamer 1.0" - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' sdk_version = '1.0' - codename = 'Congo' - license = License.LGPL uuid = 'b1b4b712-0d09-4a34-8117-8a69b6deecc2' - vendor = "GStreamer Project" - org = "org.freedesktop.gstreamer" ignore_package_prefix = True packages =[ # (name, required, selected) diff --git a/packages/gtk-3.0.package b/packages/gtk-3.0.package index f5c77f2e..621d1505 100644 --- a/packages/gtk-3.0.package +++ b/packages/gtk-3.0.package @@ -2,14 +2,10 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'gtk-3.0' shortdesc = 'Gtk3' longdesc = 'Gtk3 and dependencies' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL vendor = 'Gtk Project' org = 'org.gnome.gtk' diff --git a/packages/vsintegration-1.0.package b/packages/vsintegration-1.0.package index c34fbadb..47da0029 100644 --- a/packages/vsintegration-1.0.package +++ b/packages/vsintegration-1.0.package @@ -2,17 +2,11 @@ # -*- Mode: Python -*- -class Package(package.Package): +class Package(custom.GStreamer, package.Package): name = 'vsintegration-1.0' shortdesc = 'Visual Studio Integration' longdesc = 'Visual Studio Integration' - url = "http://gstreamer.freedesktop.org" - version = '1.9.2' - codename = 'Congo' - license = License.LGPL - vendor = 'GStreamer Project' - org = 'org.freedesktop.gstreamer' uuid = '0d032a12-05b0-42a3-9b79-6b31d070dfca' files = ['vsintegration-1.0'] |