[Pkg-javascript-commits] [jarisplayer] 46/80: Initial packaging.
Jonas Smedegaard
dr at jones.dk
Tue May 10 08:45:35 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository jarisplayer.
commit fb657ac82125b531f645d33aa15f5dd3e9ac3997
Author: Jonas Smedegaard <dr at jones.dk>
Date: Sun Sep 7 22:59:15 2014 +0200
Initial packaging.
---
.gitignore | 1 +
debian/README.source | 11 ++++
debian/changelog | 6 ++
debian/compat | 1 +
debian/control | 43 +++++++++++++++
debian/control.in | 35 ++++++++++++
debian/copyright | 47 ++++++++++++++++
debian/copyright_hints | 97 +++++++++++++++++++++++++++++++++
debian/gbp.conf | 8 +++
debian/install | 3 +
debian/patches/1001_haxe_3_syntax.patch | 33 +++++++++++
debian/patches/README | 3 +
debian/patches/series | 1 +
debian/print-metadata.pl | 67 +++++++++++++++++++++++
debian/rules | 70 ++++++++++++++++++++++++
debian/source/format | 1 +
debian/watch | 3 +
17 files changed, 430 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b408e6c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/.pc
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..f88449e
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,11 @@
+CDBS+git-buildpackage
+---------------------
+
+This source package uses CDBS and git-buildpackage. NMUs need not (but
+are encouraged to) make special use of these tools. In particular, the
+debian/control.in file can be completely ignored.
+
+More info here: http://wiki.debian.org/CDBS+git-buildpackage
+
+
+ -- Jonas Smedegaard <dr at jones.dk> Mon, 18 Feb 2013 12:55:37 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1d40cb4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+jarisplayer (2.0.15+20131104~dfsg-1) unstable; urgency=low
+
+ * Initial packaging.
+ Closes: Bug#760788.
+
+ -- Jonas Smedegaard <dr at jones.dk> Sun, 07 Sep 2014 23:08:38 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4d21f06
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,43 @@
+Source: jarisplayer
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Jonas Smedegaard <dr at jones.dk>
+Build-Depends: cdbs,
+ devscripts,
+ debhelper,
+ dh-buildinfo,
+ haxe,
+ libimage-exiftool-perl,
+ libregexp-assemble-perl,
+ libipc-system-simple-perl,
+ lcdf-typetools
+Standards-Version: 3.9.5
+Homepage: http://jarisflvplayer.org/
+Vcs-Git: git://git.debian.org/collab-maint/jarisplayer
+Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/jarisplayer.git
+
+Package: jarisplayer
+Architecture: all
+Depends: ${misc:Depends},
+ ${shlibs:Depends},
+Recommends: javascript-common
+Provides: libjs-jarisplayer
+Description: flash video and audio player for embedding into a web page
+ Jaris FLV Player is a flash flv/mp4 video and audio player with the most
+ important basic features found in other commercial players.
+ .
+ Features:
+ * Aspect ratio switcher
+ * Fullscreen support
+ * H.264 playback support
+ * Http pseudo-streaming support
+ * RTMP streaming support
+ * Youtube player API support
+ * Poster image
+ * Use your own logo with link
+ * Hide controls on fullscreen
+ * Custom control colors
+ * Hardware scaling
+ * Keyboard shortcuts
+ * Javascript interface to control the player
diff --git a/debian/control.in b/debian/control.in
new file mode 100644
index 0000000..059482e
--- /dev/null
+++ b/debian/control.in
@@ -0,0 +1,35 @@
+Source: jarisplayer
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Jonas Smedegaard <dr at jones.dk>
+Build-Depends: @cdbs@
+Standards-Version: 3.9.5
+Homepage: http://jarisflvplayer.org/
+Vcs-Git: git://git.debian.org/collab-maint/jarisplayer
+Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/jarisplayer.git
+
+Package: jarisplayer
+Architecture: all
+Depends: ${misc:Depends},
+ ${shlibs:Depends},
+Recommends: javascript-common
+Provides: libjs-jarisplayer
+Description: flash video and audio player for embedding into a web page
+ Jaris FLV Player is a flash flv/mp4 video and audio player with the most
+ important basic features found in other commercial players.
+ .
+ Features:
+ * Aspect ratio switcher
+ * Fullscreen support
+ * H.264 playback support
+ * Http pseudo-streaming support
+ * RTMP streaming support
+ * Youtube player API support
+ * Poster image
+ * Use your own logo with link
+ * Hide controls on fullscreen
+ * Custom control colors
+ * Hardware scaling
+ * Keyboard shortcuts
+ * Javascript interface to control the player
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..588841a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,47 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Jaris FLV Player
+Upstream-Contact: http://github.com/jegoyalu/jarisplayer/issues/
+Source: https://github.com/jegoyalu/jarisplayer/downloads
+ git://github.com/jegoyalu/jarisplayer
+ Repackaged, excluding non-DFSG files and unused external projects
+Files-Excluded:
+ bin/*.swf
+ bin/js/swfobject.js
+
+Files: *
+Copyright: 2010, Jefferson González <jgmdev at gmail.com>
+ 2010, Sascha Kluger <frankyghost at googlemail.com>
+License: LGPL-3+ or GPL-3+
+Comment:
+ License:
+ .
+ Jaris FLV Player is free software: you can redistribute it and/or
+ modify it under the terms of the GNU General Public License or GNU
+ LESSER GENERAL PUBLIC LICENSE as published by the Free Software
+ Foundation, either version 3 of the License, or (at your option) any
+ later version.
+ .
+ Jaris FLV Player is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License and
+ GNU LESSER GENERAL PUBLIC LICENSE along with Jaris FLV Player. If not,
+ see <http://www.gnu.org/licenses/>.
+
+Files: debian/*
+Copyright: 2014, Jonas Smedegaard <dr at jones.dk>
+License: GPL-3+
+
+License: LGPL-3+
+ Comment:
+ .
+ On Debian systems the 'GNU Lesser General Public License' version 3 is
+ located in '/usr/share/common-licenses/LGPL-3'.
+
+License: GPL-3+
+ Comment:
+ .
+ On Debian systems the 'GNU General Public License' version 3 is located
+ in '/usr/share/common-licenses/GPL-3'.
diff --git a/debian/copyright_hints b/debian/copyright_hints
new file mode 100644
index 0000000..94db0a8
--- /dev/null
+++ b/debian/copyright_hints
@@ -0,0 +1,97 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: FIXME
+Upstream-Contact: FIXME
+Source: FIXME
+Disclaimer: Autogenerated by CDBS
+
+Files: src/jaris/Main.hx
+ src/jaris/Version.hx
+ src/jaris/animation/Animation.hx
+ src/jaris/animation/AnimationsBase.hx
+ src/jaris/display/Loader.hx
+ src/jaris/display/Logo.hx
+ src/jaris/display/Menu.hx
+ src/jaris/display/Poster.hx
+ src/jaris/events/PlayerEvents.hx
+ src/jaris/player/AspectRatio.hx
+ src/jaris/player/InputType.hx
+ src/jaris/player/Loop.hx
+ src/jaris/player/Player.hx
+ src/jaris/player/StreamType.hx
+ src/jaris/player/UserSettings.hx
+ src/jaris/player/controls/AspectRatioIcon.hx
+ src/jaris/player/controls/Controls.hx
+ src/jaris/player/controls/FullscreenIcon.hx
+ src/jaris/player/controls/PauseIcon.hx
+ src/jaris/player/controls/PlayIcon.hx
+ src/jaris/player/controls/VolumeIcon.hx
+ src/jaris/player/newcontrols/AspectRatioIcon.hx
+ src/jaris/player/newcontrols/FullscreenIcon.hx
+ src/jaris/player/newcontrols/Loader.hx
+ src/jaris/player/newcontrols/NewControls.hx
+ src/jaris/player/newcontrols/PauseIcon.hx
+ src/jaris/player/newcontrols/PlayIcon.hx
+ src/jaris/player/newcontrols/VolumeIcon.hx
+ src/jaris/utils/Utils.hx
+Copyright: 2010, Jefferson González
+License: GPL-3+
+ FIXME
+
+Files: Jaris FLV Player.hxproj
+ README.md
+ bin/index.html
+ bin/logo-color.png.metadata_dump
+ bin/logo.png.metadata_dump
+ bin/poster.png.metadata_dump
+ changes.txt
+ debian/README.source
+ debian/compat
+ debian/control
+ debian/control.in
+ debian/gbp.conf
+ debian/install
+ debian/patches/1001_haxe_3_syntax.patch
+ debian/patches/README
+ debian/patches/series
+ debian/source/format
+ debian/watch
+ documentation.txt
+Copyright: *No copyright*
+License: UNKNOWN
+ FIXME
+
+Files: bin/js/jarisflvplayer.js
+Copyright: 2010, Jefferson Gonzalez
+License: GPL-3+
+ FIXME
+
+Files: src/jaris/player/JsApi.hx
+Copyright: 2010, Jefferson González, Sascha Kluger
+License: GPL-3+
+ FIXME
+
+Files: debian/print-metadata.pl
+Copyright: 2014, Jonas Smedegaard <dr at jones.dk>
+License: GPL-3+
+ FIXME
+
+Files: debian/rules
+Copyright: 2014, Jonas Smedegaard <dr at jones.dk>
+ check
+License: GPL-3+
+ FIXME
+
+Files: license.txt
+Copyright: 2007, Free Software Foundation, Inc. <http://fsf.org/>
+ are not
+ if you do
+ law
+ law, except executing it on a
+ on the Program, and are irrevocable provided the stated
+ on the software, and (2) offer you this License
+ permission
+ permission, other than the making of an
+ treaty adopted on 20 December 1996, or
+License: UNKNOWN
+ FIXME
+
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..790a2f9
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,8 @@
+# Configuration file for git-buildpackage and friends
+
+[DEFAULT]
+pristine-tar = True
+sign-tags = True
+
+[git-import-orig]
+filter = .gitignore
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..856ca95
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+player.swf usr/share/jarisplayer
+bin/*.png usr/share/jarisplayer
+bin/js/*.js usr/share/javascript/jarisplayer
diff --git a/debian/patches/1001_haxe_3_syntax.patch b/debian/patches/1001_haxe_3_syntax.patch
new file mode 100644
index 0000000..011cc8e
--- /dev/null
+++ b/debian/patches/1001_haxe_3_syntax.patch
@@ -0,0 +1,33 @@
+Description: Adapt for HaXe 3 syntax
+Author: Jonas Smedegaard <dr at jones.dk>
+Last-Update: 2014-09-07
+
+--- a/src/jaris/player/JsApi.hx
++++ b/src/jaris/player/JsApi.hx
+@@ -66,7 +66,7 @@
+ private var _player:Player;
+ private var _isBuffering:Bool;
+ private var _percentLoaded:Float;
+- private var _externalListeners:Hash<String>;
++ private var _externalListeners:Map<String,String>;
+
+ //}
+
+@@ -75,7 +75,7 @@
+ public function new(player:Player)
+ {
+ super();
+- _externalListeners = new Hash<String>();
++ _externalListeners = new Map<String,String>();
+
+ Security.allowDomain("*");
+
+@@ -144,7 +144,7 @@
+ public function removeJsListener(attribute:String):Void {
+ if (attribute == '*')
+ {
+- _externalListeners = new Hash<String>();
++ _externalListeners = new Map<String,String>();
+ return;
+ }
+ _externalListeners.remove(attribute.toLowerCase());
diff --git a/debian/patches/README b/debian/patches/README
new file mode 100644
index 0000000..80c1584
--- /dev/null
+++ b/debian/patches/README
@@ -0,0 +1,3 @@
+0xxx: Grabbed from upstream development.
+1xxx: Possibly relevant for upstream adoption.
+2xxx: Only relevant for official Debian release.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6b467c6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1001_haxe_3_syntax.patch
diff --git a/debian/print-metadata.pl b/debian/print-metadata.pl
new file mode 100644
index 0000000..7bd3ba0
--- /dev/null
+++ b/debian/print-metadata.pl
@@ -0,0 +1,67 @@
+#! /usr/bin/perl
+
+# Copyright © 2014 Jonas Smedegaard <dr at jones.dk>
+# Description: Extract copyright/licensing metadata from binary files
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+use warnings;
+use IPC::System::Simple;
+use autodie qw(:all);
+use feature 'say';
+use Regexp::Assemble;
+use Image::ExifTool qw(:Public);
+
+BEGIN { $Image::ExifTool::configFile = '' }
+
+my $exifTool = new Image::ExifTool;
+
+my $dispatch = {
+ '.*\.(png|jpg|jpeg|gif|icc)' => sub {
+ my ( $infile, $outfile ) = @_;
+ my $info = $exifTool->ImageInfo($infile, '*Name*', '*Copyright*');
+ open(my $fh, ">>", $outfile);
+ foreach (sort keys %$info) {
+# print $fh "$_: $$info{$_}\n";
+ my $tagdesc = $exifTool->GetDescription($_);
+ print $fh "$tagdesc: $$info{$_}\n";
+ }
+ },
+ '.*\.(ttf|otf)' => sub {
+ my ( $infile, $outfile ) = @_;
+ system 'sh', '-c',
+ "otfinfo -i '$infile' | egrep 'Copyright|Licens' > '$outfile'";
+ },
+};
+
+my $re = Regexp::Assemble->new( track => 1 )->add( keys %$dispatch );
+
+while( <> ) {
+ chomp;
+ if( $re->match($_) ) {
+ my $infile = $re->mvar(0);
+ my $outfile = "$infile.metadata_dump";
+ if ( -e $outfile ) {
+ say STDERR "ERROR: dumpfile exist: $outfile";
+ say STDERR " remove or put aside and try again";
+ exit 1;
+ }
+ $dispatch->{ $re->matched }( $infile, $outfile );
+ }
+ else {
+ last if /q/;
+ print "\tignored\n";
+ }
+}
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a6030d0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,70 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2014 Jonas Smedegaard <dr at jones.dk>
+# Description: Main Debian packaging script for Jaris FLV Player
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+include /usr/share/cdbs/1/rules/upstream-tarball.mk
+include /usr/share/cdbs/1/rules/utils.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+pkg = $(DEB_SOURCE_PACKAGE)
+
+DEB_UPSTREAM_URL = https://github.com/jegoyalu/$(DEB_UPSTREAM_PACKAGE)/archive
+#DEB_UPSTREAM_TARBALL_BASENAME = v$(DEB_UPSTREAM_TARBALL_VERSION)
+DEB_UPSTREAM_TARBALL_BASENAME = 343cde6
+DEB_UPSTREAM_TARBALL_SRCDIR = jarisplayer-343cde60dbc07c4c36985bf9aadd431f3f33bec2
+
+# Needed by upstream build process
+bdeps = haxe
+
+CDBS_BUILD_DEPENDS +=, $(bdeps)
+
+# Exclude potentially non-DFSG binary files and unused external projects
+# * binary ActionScript code potentially embedding non-free libraries
+# * convenience code copy of swfobject.js project
+DEB_UPSTREAM_REPACKAGE_EXCLUDES += \
+ bin/*.swf \
+ bin/js/swfobject.js
+
+# extract metadata from images and fonts before copyright check
+CDBS_BUILD_DEPENDS +=, libimage-exiftool-perl, libregexp-assemble-perl
+CDBS_BUILD_DEPENDS +=, libipc-system-simple-perl, lcdf-typetools
+local_inspection_regex = png
+DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^((.*/)?[^/]+\.($(local_inspection_regex))|debian/(changelog|copyright(|_hints|_newhints)))$$
+debian/stamp-copyright-check: debian/stamp-extract-copyright
+debian/stamp-extract-copyright:
+ find * -type f -regextype posix-extended \
+ -regex '.*\.($(local_inspection_regex))' \
+ -print0 | perl -0 debian/print-metadata.pl
+ touch $@
+pre-build:: clean-extracted-copyright-during-build
+clean-extracted-copyright-during-build: debian/stamp-copyright-check
+ find -type f -name '*.metadata_dump' -delete
+clean::
+ find -type f -name '*.metadata_dump' -delete
+ rm -f debian/stamp-extract-copyright
+
+DEB_INSTALL_CHANGELOGS_ALL = changes.txt
+DEB_INSTALL_DOCS_$(pkg) += README.md documentation.txt
+DEB_INSTALL_EXAMPLES_$(pkg) = bin/index.html
+
+build/$(pkg):: debian/stamp-swf-build
+debian/stamp-swf-build:
+ haxe -main jaris.Main -swf player.swf -cp src -D no-pattern-matching -dce full
+ touch $@
+clean::
+ rm -f player.swf
+ rm -f debian/stamp-swf-build
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..8d36614
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\~dfsg.*// \
+https://github.com/jegoyalu/jarisplayer/tags .*/archive/v?(\d[\d\.]+)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jarisplayer.git
More information about the Pkg-javascript-commits
mailing list