[Reproducible-commits] [ckbuilder] 02/03: debian upstable package
Boy Ska
boyska-guest at moszumanska.debian.org
Wed Mar 30 04:07:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
boyska-guest pushed a commit to branch pu/reproducible_builds
in repository ckbuilder.
commit d6a4505bd964c0c77206c4739e6f74570d2fcedd
Author: boyska <piuttosto at logorroici.org>
Date: Wed Mar 30 00:02:29 2016 -0400
debian upstable package
---
debian/README.Debian | 4 ++
debian/README.source | 2 +
debian/changelog | 11 ++++++
debian/ckbuilder.1 | 83 +++++++++++++++++++++++++++++++++++++++++
debian/clean | 6 +++
debian/compat | 1 +
debian/control | 23 ++++++++++++
debian/copyright | 89 ++++++++++++++++++++++++++++++++++++++++++++
debian/docs | 1 +
debian/gbp.conf | 11 ++++++
debian/install | 1 +
debian/links | 1 +
debian/manifest | 6 +++
debian/manpages | 1 +
debian/patches/make.patch | 22 +++++++++++
debian/patches/notar.patch | 58 +++++++++++++++++++++++++++++
debian/patches/series | 3 ++
debian/patches/unmerge.patch | 18 +++++++++
debian/rules | 20 ++++++++++
debian/source/format | 1 +
debian/watch | 8 ++++
21 files changed, 370 insertions(+)
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..87e49eb
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,4 @@
+### Note
+
+"--no-tar" is enforced to avoid un-packaged/external dependency
+"lib/javatar/tar.jar".
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..e4e6857
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,2 @@
+"test/_assets" excluded for now to reduce maintenance burden (need
+licensing check/review).
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..98e47d0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,11 @@
+ckbuilder (2.3.0+dfsg-2) unstable; urgency=medium
+
+ * Depends += "libprotobuf-java".
+
+ -- Dmitry Smirnov <onlyjob at debian.org> Wed, 10 Feb 2016 20:49:31 +1100
+
+ckbuilder (2.3.0+dfsg-1) unstable; urgency=low
+
+ * Initial release (Closes: #813577).
+
+ -- Dmitry Smirnov <onlyjob at debian.org> Wed, 03 Feb 2016 19:40:04 +1100
diff --git a/debian/ckbuilder.1 b/debian/ckbuilder.1
new file mode 100644
index 0000000..10a4832
--- /dev/null
+++ b/debian/ckbuilder.1
@@ -0,0 +1,83 @@
+.\" This file was pre-generated by help2man 1.47.3: help2man --version-string="2.3.0" --no-info --no-discard-stderr ckbuilder
+.TH CKBUILDER "1" "February 2016" "ckbuilder 2.3.0" "Commands"
+.SH NAME
+ckbuilder \- command line builder for CKEditor
+.SH DESCRIPTION
+Creates CKEditor build in DST folder using source files from SRC folder.
+The build configuration file (build\-config.js), which is required in order to
+create the build package, contains the list of plugins to include.
+.SH SYNOPSIS
+ckbuilder \fB\-\-build\fR SRC DST (options...)
+.PP
+ckbuilder \fB\-\-build\-skin\fR SRC DST (options...)
+.PP
+ckbuilder \fB\-\-generate\-build\-config\fR SRC (options...)
+.SH OPTIONS
+\fB\-\-build\fR
+Creates a release version of a skin.
+.TP
+\fB\-\-build\-skin\fR
+Creates a release version of a skin.
+.TP
+\fB\-\-generate\-build\-config\fR SRC (options...)
+Creates build configuration file (default: build\-config.js).
+.TP
+\fB\-\-build\-config\fR <FILE>
+path to the file
+.TP
+\fB\-\-version\fR <NUMBER>
+version number
+.TP
+\fB\-\-revision\fR <NUMBER>
+revision number
+.TP
+\fB\-\-overwrite\fR
+overwrite target folder if exists
+.TP
+\fB\-s\fR,\-\-skip\-omitted\-in\-build\-config
+.TP
+exclude from release all plugins/skins
+that are not specified in build\-config
+.TP
+\fB\-\-leave\-js\-unminified\fR
+leave javascript files as is:
+merge, but do not minify.
+.TP
+\fB\-\-leave\-css\-unminified\fR
+leave CSS files as is:
+merge, but do not minify.
+.TP
+\fB\-\-no\-ie\-checks\fR
+turn off warnings about syntax errors on
+Internet Explorer, like trailing commas.
+.TP
+\fB\-\-core\fR
+create only the core file (ckeditor.js)
+.TP
+\fB\-\-no\-zip\fR
+do not create zip file
+.TP
+\fB\-\-no\-tar\fR
+do not create tar.gz file (default)
+.TP
+\fB\-\-commercial\fR
+builds a package with commercial license
+.TP
+\fB\-d\fR, \fB\-\-debug\-level\fR <LEVEL>
+debug level (0, 1, 2).
+.TP
+\fB\-\-help\fR
+prints help information
+.TP
+\fB\-\-build\-help\fR
+prints help information about build configuration
+.TP
+\fB\-\-full\-help\fR
+prints help information about all advanced commands
+.PP
+.SH EXAMPLES
+ckbuilder \fB\-\-build\fR ckeditor\-dev release \fB\-\-version\fR 4.0
+.HP
+ckbuilder \fB\-\-build\-skin\fR skins/myskin target_dir
+.HP
+ckbuilder \fB\-\-generate\-build\-config\fR ckeditor\-dev
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..dcb221f
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,6 @@
+bin/*.jar
+lib/json/json2.js
+
+lib/javatar/tar.jar
+lib/tartool/tartool.jar
+lib/json/tools/json/json2.class
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f11c82a
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
\ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8714909
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: ckbuilder
+Section: devel
+Priority: optional
+Maintainer: Dmitry Smirnov <onlyjob at debian.org>
+Build-Depends: debhelper (>= 9), default-jdk, javahelper, ant
+ ,libcommons-cli-java
+ ,libclosure-compiler-java
+ ,librhino-java
+ ,libjs-json
+Standards-Version: 3.9.7
+Homepage: https://github.com/ckeditor/ckbuilder
+Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/ckbuilder.git
+Vcs-Git: https://anonscm.debian.org/collab-maint/ckbuilder.git
+
+Package: ckbuilder
+Architecture: all
+Multi-Arch: foreign
+Built-Using: ${my:Built-Using}
+Depends: ${java:Depends}, ${misc:Depends}
+ ,libprotobuf-java
+Recommends: ${java:Recommends}
+Description: command line builder for CKEditor
+ CKBuilder builds CKEditor from its source code.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..bb830bc
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,89 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Source: https://github.com/ckeditor/ckbuilder
+Files-Excluded:
+ lib/apache/commons-cli.jar
+ lib/closure/compiler.jar
+ lib/rhino/js.jar
+ lib/javatar/tar.jar
+ lib/tartool/tartool.jar
+ lib/json/tools/json/json2.class
+ lib/json/json2.js
+ test/_assets
+
+Files: *
+Copyright: 2012-2014, CKSource - Frederico Knabben
+License: Expat
+
+Files:
+ src/lib/cssmin.js
+Copyright:
+ 2011 Yahoo! Inc.
+License: BSD-2-Clause
+Comment:
+ https://yui.github.io/yuicompressor/
+ http://opensource.org/licenses/bsd-license.php
+
+Files: debian/*
+Copyright: 2016 Dmitry Smirnov <onlyjob at debian.org>
+License: GPL-3+
+
+Files: debian/patches/*
+Copyright: 2016 Dmitry Smirnov <onlyjob at debian.org>
+License: GPL-3+ or Expat or BSD-2-Clause
+
+License: GPL-3+
+ 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 of the License, 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.
+ ․
+ The complete text of the GNU General Public License version 3
+ can be found in "/usr/share/common-licenses/GPL-3".
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+License: BSD-2-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..07e0db4
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.*
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..ed40eb1
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,11 @@
+[buildpackage]
+overlay = True
+export-dir = ../build-area/
+tarball-dir = ../
+
+[dch]
+id-length = 0
+
+[import-orig]
+pristine-tar = False
+merge = False
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..7631263
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+tmp/*.jar usr/share/ckbuilder
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..cca61c8
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+/usr/share/ckbuilder/ckbuilder.jar /usr/bin/ckbuilder
diff --git a/debian/manifest b/debian/manifest
new file mode 100644
index 0000000..080ea67
--- /dev/null
+++ b/debian/manifest
@@ -0,0 +1,6 @@
+## jh_manifest
+
+usr/share/ckbuilder/ckbuilder.jar:
+ Class-Path: /usr/share/java/commons-cli.jar /usr/share/java/closure-compiler.jar /usr/share/java/js.jar /usr/share/java/protobuf.jar
+
+# Main-Class: ckbuilder.ckbuilder
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..0f65186
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/*.1
diff --git a/debian/patches/make.patch b/debian/patches/make.patch
new file mode 100644
index 0000000..760c040
--- /dev/null
+++ b/debian/patches/make.patch
@@ -0,0 +1,22 @@
+Last-Update: 2016-02-03
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob at member.fsf.org>
+Description: build corrections.
+
+--- a/dev/build/build.xml
++++ b/dev/build/build.xml
+@@ -3,11 +3,11 @@
+ <property name="tmp.dir" location="tmp" />
+ <property name="build.dir" location="tmp/build" />
+ <property name="source.dir" location="src" />
+ <property name="json.dir" location="lib/json" />
+- <property name="rhino.jar" location="lib/rhino/js.jar" />
+- <property name="closure.jar" location="lib/closure/compiler.jar" />
+- <property name="commons-cli.jar" location="lib/apache/commons-cli.jar" />
++ <property name="rhino.jar" location="/usr/share/java/js.jar" />
++ <property name="closure.jar" location="/usr/share/java/closure-compiler.jar" />
++ <property name="commons-cli.jar" location="/usr/share/java/commons-cli.jar" />
+ <property name="tar.jar" location="lib/javatar/tar.jar" />
+
+ <target name="init">
+ <tstamp />
diff --git a/debian/patches/notar.patch b/debian/patches/notar.patch
new file mode 100644
index 0000000..6f5c23a
--- /dev/null
+++ b/debian/patches/notar.patch
@@ -0,0 +1,58 @@
+Last-Update: 2016-02-03
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob at member.fsf.org>
+Description: disable tar functionality to avoid unpackaged dependency.
+
+--- a/dev/build/build.xml
++++ b/dev/build/build.xml
+@@ -6,9 +6,8 @@
+ <property name="json.dir" location="lib/json" />
+ <property name="rhino.jar" location="/usr/share/java/js.jar" />
+ <property name="closure.jar" location="/usr/share/java/closure-compiler.jar" />
+ <property name="commons-cli.jar" location="/usr/share/java/commons-cli.jar" />
+- <property name="tar.jar" location="lib/javatar/tar.jar" />
+
+ <target name="init">
+ <tstamp />
+ <delete dir="${build.dir}" />
+@@ -77,9 +76,8 @@
+ <copy file="${rhino.jar}" tofile="${tmp.dir}/ckbuilder.jar" overwrite="true" />
+ </target>
+
+ <target name="unpack" depends="copy" description="merge all jar files into one">
+- <unjar src="${tar.jar}" dest="${build.dir}" />
+ <unjar src="${closure.jar}" dest="${build.dir}" />
+ <unjar src="${commons-cli.jar}" dest="${build.dir}" />
+ <!-- Leave mailcap.default and mimetypes.default from META-INF attached to activation.jar -->
+ <delete includeemptydirs="true">
+--- a/src/assets/help.txt
++++ b/src/assets/help.txt
+@@ -22,9 +22,9 @@
+ --no-ie-checks turn off warnings about syntax errors on
+ Internet Explorer, like trailing commas
+ --core create only the core file (ckeditor.js)
+ --no-zip do not create zip file
+- --no-tar do not create tar.gz file
++ --no-tar do not create tar.gz file (default)
+ --commercial builds a package with commercial license
+
+ DESCRIPTION:
+ Creates CKEditor build in DST folder using source files from SRC folder.
+--- a/src/lib/builder.js
++++ b/src/lib/builder.js
+@@ -734,13 +734,15 @@
+ var zipFile = new File( targetLocation.getParentFile(), "ckeditor_" + normalize( CKBuilder.options.version ) + ".zip" );
+ CKBuilder.io.zipDirectory( targetLocation, targetLocation, zipFile, "ckeditor" );
+ print( " Created " + zipFile.getName() + "...: " + zipFile.length() + " bytes (" + Math.round( zipFile.length() / info.size * 100 ) + "% of original)" );
+ }
++/*
+ if ( !CKBuilder.options.noTar ) {
+ var tarFile = new File( targetLocation.getParentFile(), "ckeditor_" + normalize( CKBuilder.options.version ) + ".tar.gz" );
+ CKBuilder.io.targzDirectory( targetLocation, targetLocation, tarFile, "ckeditor" );
+ print( " Created " + tarFile.getName() + ": " + tarFile.length() + " bytes (" + Math.round( tarFile.length() / info.size * 100 ) + "% of original)" );
+ }
++*/
+ CKBuilder.utils.printUsedTime( time );
+
+ print( "\n==========================" );
+ print( "Release process completed:\n" );
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..11053e4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+make.patch
+notar.patch
+unmerge.patch
diff --git a/debian/patches/unmerge.patch b/debian/patches/unmerge.patch
new file mode 100644
index 0000000..50e7c02
--- /dev/null
+++ b/debian/patches/unmerge.patch
@@ -0,0 +1,18 @@
+Last-Update: 2016-02-03
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob at member.fsf.org>
+Description: do not "merge all jar files into one".
+
+--- a/dev/build/build.xml
++++ b/dev/build/build.xml
+@@ -84,9 +84,9 @@
+ <fileset dir="${build.dir}/META-INF" excludes="**/*.default" />
+ </delete>
+ </target>
+
+- <target name="jar" depends="unpack" description="update the jar">
++ <target name="jar" depends="copy" description="update the jar">
+ <!-- Put everything in ${build.dir} into a jar file -->
+ <jar jarfile="${tmp.dir}/ckbuilder.jar" update="true">
+ <fileset dir="${build.dir}">
+ <include name="**/*" />
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..07aec2a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export JAVA_HOME=/usr/lib/jvm/default-java
+
+%:
+ dh $@ --with javahelper --sourcedirectory=dev/build
+
+override_dh_auto_clean:
+ ## "ant clean" terminates on clean build directory:
+ -dh_auto_clean
+
+override_dh_auto_configure:
+ cp -vf /usr/share/javascript/json/json2.js lib/json/json2.js
+ dh_auto_configure
+
+override_dh_gencontrol:
+ dh_gencontrol -- -Vmy:Built-Using="$(foreach pkg,libjs-json,$(word 2,$(shell dpkg --status $(pkg) | grep Source)) (=$(word 2,$(shell dpkg --status $(pkg) | grep Version))),)"
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..5069819
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,8 @@
+# uscan(1) control file
+version=3
+
+opts=\
+repacksuffix=+dfsg,\
+dversionmangle=s{[+]dfsg\d*$}{},\
+ https://github.com/ckeditor/ckbuilder/releases \
+ (?:.*/)?v?(\d[\d\.]*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/ckbuilder.git
More information about the Reproducible-commits
mailing list