[med-svn] [python-schema-salad] 01/02: initial debianization

Michael Crusoe misterc-guest at moszumanska.debian.org
Sun Feb 7 14:03:49 UTC 2016


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

misterc-guest pushed a commit to branch master
in repository python-schema-salad.

commit 9f4edb26869da8a1260d231e2e5923a549a1f19b
Author: Michael R. Crusoe <crusoe at ucdavis.edu>
Date:   Fri Feb 5 03:00:20 2016 -0800

    initial debianization
---
 debian/changelog              |  5 +++++
 debian/compat                 |  1 +
 debian/control                | 36 ++++++++++++++++++++++++++++++++++++
 debian/copyright              | 27 +++++++++++++++++++++++++++
 debian/manpages               |  1 +
 debian/patches/series         |  1 +
 debian/patches/try-rdflib-4.1 | 13 +++++++++++++
 debian/rules                  | 30 ++++++++++++++++++++++++++++++
 debian/source/format          |  1 +
 debian/watch                  |  3 +++
 10 files changed, 118 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..32482f9
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-schema-salad (1.6.20160202222448-1) UNRELEASED; urgency=medium
+
+  * Initial release. (Closes: #813839)
+
+ -- Michael R. Crusoe <crusoe at ucdavis.edu>  Fri, 05 Feb 2016 02:18:38 -0800
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..13d24b5
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: python-schema-salad
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Michael R. Crusoe <crusoe at ucdavis.edu>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python,
+               python-all,
+               python-setuptools,
+               python-mistune,
+               python-avro,
+               python-requests,
+               python-yaml,
+               python-rdflib-jsonld,
+               python-rdflib,
+Standards-Version: 3.9.7
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/schema-salad.git
+Vcs-Git: https://anonscm.debian.org/git/debian-med/schema-salad.git
+Homepage: http://www.commonwl.org
+
+Package: python-schema-salad
+Architecture: all
+Depends: ${python:Depends},
+         ${misc:Depends}
+Description: Schema Annotations for Linked Avro Data (SALAD)
+ Salad is a schema language for describing JSON or YAML structured linked data
+ documents. Salad is based originally on JSON-LD and the Apache Avro data
+ serialization system.
+ .
+ Salad schema describes rules for preprocessing, structural validation, and
+ link checking for documents described by a Salad schema. Salad features for
+ rich data modeling such as inheritance, template specialization, object
+ identifiers, object references, documentation generation, and transformation
+ to RDF. Salad provides a bridge between document and record oriented data
+ modeling and the Semantic Web.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b1331c8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: schema-salad
+Source: https://pypi.python.org/pypi/schema-salad
+
+Files: *
+Copyright: No copyright declared
+License: Apache-2.0
+
+Files: debian/*
+Copyright: © 2016 Michael R. Crusoe <crusoe at ucdavis.edu>
+License: Apache-2.0
+
+License: Apache-2.0
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+   .
+       http://www.apache.org/licenses/LICENSE-2.0
+   .
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+   .
+   On Debian systems, the full text of the Apache License, Version 2.0 can be
+   found in the file `/usr/share/common-licenses/Apache-2.0'
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/series b/debian/patches/series
new file mode 100644
index 0000000..4d7b58a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+try-rdflib-4.1
diff --git a/debian/patches/try-rdflib-4.1 b/debian/patches/try-rdflib-4.1
new file mode 100644
index 0000000..35323c0
--- /dev/null
+++ b/debian/patches/try-rdflib-4.1
@@ -0,0 +1,13 @@
+Author: Michael R. Crusoe <crusoe at ucdavis.edu>
+Description: Try rdflib version 4.1
+--- schema-salad.orig/setup.py
++++ schema-salad/setup.py
+@@ -31,7 +31,7 @@
+           'requests',
+           'PyYAML',
+           'avro',
+-          'rdflib >= 4.2.0',
++          'rdflib >= 4.1.0',
+           'rdflib-jsonld >= 0.3.0',
+           'mistune'
+         ],
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a749ba1
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+
+DH_VERBOSE := 1
+
+# some helpful variables - uncomment them if needed
+# shamelessly stolen from http://jmtd.net/log/awk/
+DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
+#DEBFLAVOR      := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
+#DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+#DEBIAN_BRANCH  := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
+#GIT_TAG        := $(subst ~,_,$(VERSION))
+
+# alternatively to manually set those variables, you can
+#  include /usr/share/dpkg/default.mk
+# and use what is set there.
+
+export PYBUILD_NAME=schema-salad
+export PYBUILD_DISABLE=test
+
+%:
+	dh $@ --with python2 --buildsystem=pybuild
+
+override_dh_auto_build:
+	dh_auto_build
+	help2man --no-info --version-string=${VERSION} \
+		--name="Schema Annotations for Linked Avro Data (SALAD)" \
+		python\ schema_salad/main.py > debian/schema-salad-tool.1
+	sed -i 's/main.py/schema-salad-tool/g' debian/schema-salad-tool.1
+	sed -i 's/MAIN.PY/SCHEMA-SALAD-TOOL/g' debian/schema-salad-tool.1
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..38901d8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/cwltool/schema-salad-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-schema-salad.git



More information about the debian-med-commit mailing list