[Debian-med-packaging] [openmolar] 01/01: Initial commit

Andreas Tille andreas at an3as.eu
Tue Mar 18 07:39:10 UTC 2014


Hi Dmitry,

I'm very happy that you are tackling this one to complete our goal to
cover every field of medicine.  Thanks a lot for this!

As a technical remark:  When using Git as repository we usually use
the workflow to hold a copy of the upstream source via

   git import-orig --pristine-tar <origtarball>

(see Debian Med team policy for more details).  I personally will not
insist on this workflow if you might have your reasons but it might
happen that other team members might stumble upon the different handling
of this package.

Thanks again

     Andreas.

On Tue, Mar 18, 2014 at 06:16:29AM +0000, Dmitry Smirnov wrote:
> This is an automated email from the git hooks/post-receive script.
> 
> onlyjob pushed a commit to branch master
> in repository openmolar.
> 
> commit bf262fc (HEAD, master)
> Author: Dmitry Smirnov <onlyjob at member.fsf.org>
> Date:   Tue Mar 18 06:15:41 2014
> 
>     Initial commit
> ---
>  debian/changelog                  |  5 ++++
>  debian/compat                     |  1 +
>  debian/control                    | 19 ++++++++++++++
>  debian/copyright                  | 55 +++++++++++++++++++++++++++++++++++++++
>  debian/manpages                   |  1 +
>  debian/openmolar.1                | 19 ++++++++++++++
>  debian/patches/private-libs.patch | 18 +++++++++++++
>  debian/patches/series             |  1 +
>  debian/rules                      | 30 +++++++++++++++++++++
>  debian/source/format              |  1 +
>  debian/source/options             |  1 +
>  debian/watch                      |  6 +++++
>  12 files changed, 157 insertions(+)
> 
> diff --git a/debian/changelog b/debian/changelog
> new file mode 100644
> index 0000000..537b060
> --- /dev/null
> +++ b/debian/changelog
> @@ -0,0 +1,5 @@
> +openmolar (0.5.0~10-1) experimental; urgency=low
> +
> +  * Initial release (Closes: #564285).
> +
> + -- Dmitry Smirnov <onlyjob at debian.org>  Tue, 18 Mar 2014 14:21:14 +1100
> 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..0dc4372
> --- /dev/null
> +++ b/debian/control
> @@ -0,0 +1,19 @@
> +Source: openmolar
> +Section: science
> +Priority: optional
> +Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
> +Uploaders: Dmitry Smirnov <onlyjob at debian.org>
> +Build-Depends: debhelper (>= 9), python-all
> +Standards-Version: 3.9.5
> +Homepage: http://openmolar.com/om1
> +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-med/openmolar.git
> +Vcs-Git: git://anonscm.debian.org/debian-med/openmolar.git
> +
> +Package: openmolar
> +Architecture: all
> +Depends: ${misc:Depends}, ${python:Depends}
> +         ,python-mysqldb
> +         ,python-qt4
> +Description: dental practice management software
> + Openmolar is a dental practice management suite. Its functionality include
> + appointments, patient records, treatment planning, billing etc.
> diff --git a/debian/copyright b/debian/copyright
> new file mode 100644
> index 0000000..eecb440
> --- /dev/null
> +++ b/debian/copyright
> @@ -0,0 +1,55 @@
> +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
> +Upstream-Name: openmolar
> +Source: https://github.com/rowinggolfer/openmolar1/releases
> +
> +Files: *
> +Copyright: 2009-2013 Neil Wallace <rowinggolfer at googlemail.com>
> +                                  <neil at openmolar.com>
> +License: GPL-3+
> +
> +Files: src/openmolar/backports/ordered_dict.py
> +Copyright: 2009 Raymond Hettinger
> +License: Expat
> +Comment:
> + http://code.activestate.com/recipes/576669/
> +
> +Files: debian/*
> +Copyright: 2013-2014 Dmitry Smirnov <onlyjob at debian.org>
> +License: GPL-3+
> +
> +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 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.
> +Comment:
> + This license also known as "MIT" however FSF consider "MIT" labelling
> + ambiguous and copyright-format specification recommend to label such license
> + as "Expat".
> 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/openmolar.1 b/debian/openmolar.1
> new file mode 100644
> index 0000000..72fb99f
> --- /dev/null
> +++ b/debian/openmolar.1
> @@ -0,0 +1,19 @@
> +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.44.1.
> +.TH OPENMOLAR "1" "March 2014" "OpenMolar 0.5.0-beta10" "User Commands"
> +.SH NAME
> +OpenMolar \- dental practice management software.
> +.SH DESCRIPTION
> +dental practice management software.
> +.SH OPTIONS
> +.TP
> +\fB\-\-help\fR          
> +show this text
> +.TP
> +\fB\-\-firstrun\fR      
> +offer the firstrun config and demodatabase generation
> +.TP
> +\fB\-\-setup\fR         
> +takes you to the admin page
> +.TP
> +\fB\-\-version\fR       
> +show the versioning and exit
> diff --git a/debian/patches/private-libs.patch b/debian/patches/private-libs.patch
> new file mode 100644
> index 0000000..e9e9e1d
> --- /dev/null
> +++ b/debian/patches/private-libs.patch
> @@ -0,0 +1,18 @@
> +Last-Update: 2014-03-18
> +Forwarded: not-needed
> +Author: Dmitry Smirnov <onlyjob at member.fsf.org>
> +Description: make sure openmolar can find its modules in prvate location
> +
> +--- a/openmolar
> ++++ b/openmolar
> +@@ -6,7 +6,10 @@
> + # by the Free Software Foundation, either version 3 of the License, or
> + # (at your option) any later version.
> + # See the GNU General Public License for more details.
> + 
> ++import sys
> ++sys.path.append("/usr/share/openmolar")
> ++
> + from openmolar import main
> + 
> + main.run()
> diff --git a/debian/patches/series b/debian/patches/series
> new file mode 100644
> index 0000000..b13c0ac
> --- /dev/null
> +++ b/debian/patches/series
> @@ -0,0 +1 @@
> +private-libs.patch
> diff --git a/debian/rules b/debian/rules
> new file mode 100755
> index 0000000..c509427
> --- /dev/null
> +++ b/debian/rules
> @@ -0,0 +1,30 @@
> +#!/usr/bin/make -f
> +
> +# Uncomment this to turn on verbose mode.
> +#export DH_VERBOSE=1
> +
> +PKD  = $(abspath $(dir $(MAKEFILE_LIST)))
> +PKG  = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
> +
> +%:
> +	dh $@ --with python2
> +
> +override_dh_auto_install:
> +	dh_auto_install -- \
> +            --install-lib=usr/share/$(PKG)/
> +#            --install-scripts=usr/bin/
> +
> +override_dh_builddeb:
> +	dh_builddeb -- -Zxz
> +
> +MAN_NAME=dental practice management software.
> +openmolar.1:
> +	PYTHONPATH="$(CURDIR)/debian/openmolar/usr/share/$(PKG):$(PYTHONPATH)" \
> +        help2man --no-info --name="$(MAN_NAME)" "LANG=en_AU $(CURDIR)/openmolar" > $@
> +	perl \
> +             -E 's{\s+(It was generated by help2man)}{ $$1};                     # correcting help2man comment'               \
> +             -E 's{^\.SH\s+DESCRIPTION\K}{\n$(MAN_NAME)};                        # correcting empty DESCRIPTION section'      \
> +             -E 's{command\s+line\s+options\s+are\s+as\s+follows}{.SH OPTIONS};  # create OPTIONS section'                    \
> +             -E 's{^(\\fB\\-\\-)}{.TP\n$$1};                                     # prepend each option with .TP'              \
> +             -E 's{\\fR\s+\K}{\n};                                               # separate arguments and their descriptions' \
> +          -pi $@
> 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/source/options b/debian/source/options
> new file mode 100644
> index 0000000..b7bc1f2
> --- /dev/null
> +++ b/debian/source/options
> @@ -0,0 +1 @@
> +compression = "xz"
> diff --git a/debian/watch b/debian/watch
> new file mode 100644
> index 0000000..c2d8149
> --- /dev/null
> +++ b/debian/watch
> @@ -0,0 +1,6 @@
> +version=3
> +
> +opts=\
> +uversionmangle=s/\-beta/~/,\
> + https://github.com/rowinggolfer/openmolar1/releases \
> +  .*/archive/v?(\d[\d\.]+(?:\-(?:beta)\d+)?)\.tar\.gz
> 
> -- 
> Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/openmolar.git
> 
> _______________________________________________
> debian-med-commit mailing list
> debian-med-commit at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
> 

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list