[Pkg-javascript-commits] [yamm3] 02/02: initial packaging draft

Mike Gabriel sunweaver at debian.org
Tue Jul 28 11:32:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository yamm3.

commit 98dd038c83049b0de5a54bcf667178146262ae9e
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Jul 28 13:30:15 2015 +0200

    initial packaging draft
---
 debian/changelog     |  5 +++++
 debian/compat        |  1 +
 debian/control       | 25 +++++++++++++++++++++++++
 debian/copyright     | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 debian/docs          |  1 +
 debian/install       |  3 +++
 debian/rules         | 38 ++++++++++++++++++++++++++++++++++++++
 debian/source/format |  1 +
 debian/watch         |  3 +++
 9 files changed, 124 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..903848f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+yamm3 (1.1.0+dfsg1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #793870).
+
+ -- Mike Gabriel <sunweaver at debian.org>  Tue, 28 May 2013 00:24:30 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..db34c7f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: yamm3
+Section: web
+Priority: extra
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders:
+ Debian Edu Packaging Team <debian-edu-pkg-team at lists.alioth.debian.org>,
+ Mike Gabriel <sunweaver at debian.org>,
+Build-Depends:
+ debhelper (>= 9),
+ dh-buildinfo,
+ pkg-php-tools (>= 1.7~),
+Standards-Version: 3.9.6
+Homepage: https://github.com/geedmo/yamm3
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/yamm3.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-javascript/yamm3.git
+
+Package: libjs-yamm3
+Architecture: all
+Depends:
+ ${misc:Depends},
+Description: Yet another megamenu for Bootstrap 3 from Twitter
+ Lightweight and pure CSS megamenu that uses the standard navbar markup
+ and the fluid grid system classes from Bootstrap 3. Works for fixed and
+ responsive layout and has the facility to include (almost) any Bootstrap
+ elements.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3ed253c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,47 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Yamm
+Upstream-Contact: geedmo (https://github.com/geedmo)
+Source: https://github.com/geedmo/yamm3
+
+Files: yamm/*
+Copyright:
+ 2013-2015, geedmo (https://github.com/geedmo)
+License: Expat
+
+Files: .gitignore
+ LICENSE.txt
+ README.md
+ .bowerrc
+ bower.json
+ composer.json
+ gulpfile.js
+ index.html
+ package.json
+Copyright: *No copyright*
+License: Expat
+Comment:
+ Assmuming same license as found in LICENSE.txt.
+
+Files: debian/*
+Copyright:
+ 2015, Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+License: Expat
+
+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.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..f7a8a7b
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+yamm/yamm.css	usr/share/javascript/yamm3/
+yamm/yamm.less	usr/share/javascript/yamm3/less/
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ecdbd01
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,38 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+NULL  =
+PKD   = $(word 1,$(abspath $(dir $(MAKEFILE_LIST))))
+PKG   = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+UVER  = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+DTYPE = +dfsg1
+VER  ?= $(subst $(DTYPE),,$(UVER))
+
+%:
+	dh $@ --with phpcomposer
+
+get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
+	@
+
+
+$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
+	@echo "# Downloading..."
+	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
+	$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
+	@echo "# Extracting..."
+	mkdir $(PKG)-$(VER) \
+	    && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \
+	    || $(RM) -r $(PKG)-$(VER)
+	@echo "# Cleaning-up..."
+	cd $(PKG)-$(VER) \
+	    && $(RM) -r -v \
+	        demo/ \
+	        $(NULL)
+	$(RM) -v $(PKG)_$(VER).orig.tar.*
+	@echo "# Packing..."
+	find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
+	    | XZ_OPT="-6v" tar -caf "../$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
+	    && $(RM) -r "$(PKG)-$(VER)"
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..d58f6a3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\+dfsg1//,filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/yamm3-$1.tar.gz/ \
+https://github.com/geedmo/yamm3/tags .*/archive/v?([\d\.]+).tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/yamm3.git



More information about the Pkg-javascript-commits mailing list