Skip to content

Commit

Permalink
debian packaging for rencode, ignoring:
Browse files Browse the repository at this point in the history
* copyright-should-refer-to-common-license-file-for-gpl - useless information on the web: I understand what the message means, not what to do to fix it - if Debian cares, they can deal with it - enough of my time wasted on this already
* does not run the tests

git-svn-id: https://xpra.org/svn/Xpra/trunk@7860 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 2, 2014
1 parent 9e9b68a commit f8ec732
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/rencode/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python-rencode (1.0.3-1) unstable; urgency=low

* Initial release

-- Antoine Martin <antoine@devloop.org.uk> Thu, 02 Oct 2014 12:13:39 +0700
1 change: 1 addition & 0 deletions debian/rencode/clean
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/rencode*.egg-info
1 change: 1 addition & 0 deletions debian/rencode/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
21 changes: 21 additions & 0 deletions debian/rencode/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Source: python-rencode
Section: python
Priority: optional
Maintainer: Antoine Martin <antoine@devloop.org.uk>
Build-Depends: debhelper (>= 9), python-all-dev
X-Python-Version: >= 2.7
Standards-Version: 3.9.5
Homepage: https://code.google.com/p/rencode/
Vcs-Browser: http://xpra.org/svn/Xpra/trunk/src/rencode/
Vcs-Svn: svn://xpra.org/svn/Xpra/trunk/src/rencode/

Package: python-rencode
Architecture: any
Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
Description: python encoding library similar to bittorrent's bencode
.
For complex, heterogeneous data structures with many small
elements, r-encodings take up significantly less space than b-encodings.
This version of rencode is a complete rewrite in Cython to attempt to
increase the performance over the pure Python module written
by Petru Paler, Connelly Barnes et al.
57 changes: 57 additions & 0 deletions debian/rencode/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: python-rencode
Source: http://xpra.org/src/
Files-Excluded: src/rencode*

Files: *
Copyright: 2010 Andrew Resch <andrewresch@gmail.com>
Copyright: 2011 Pedro Algarvio <pedro@algarvio.me>
License: GPL-3

Files: rencode/rencode.pyx
Copyright: 2010 Andrew Resch <andrewresch@gmail.com>
License: GPL-3

Files: debian/*
Copyright: 2014 Antoine Martin <antoine@devloop.org.uk>
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, 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/>.

License: BSD-3-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.
.
3. Neither the name of Steeve Morin nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
.
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.
19 changes: 19 additions & 0 deletions debian/rencode/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
dh $@ --with python2

DPATH := $(abspath $(dir $(MAKEFILE_LIST)))
VER ?= $(shell dpkg-parsechangelog -l$(DPATH)/changelog -SVersion | perl -ne 'print $$1 if m{([\d\.]+)}')
.PHONY: get-orig-source
## http://wiki.debian.org/onlyjob/get-orig-source
get-orig-source: $(info I: $(VER))
@echo "# Downloading..."
uscan --noconf --verbose --rename \
--destdir=$(CURDIR) --check-dirname-level=0 \
--force-download --download-version $(VER) $(DPATH) \
--repack --compression xz
mv -v rencode_$(VER).orig.tar.xz rencode_$(VER)+dfsg.orig.tar.xz
1 change: 1 addition & 0 deletions debian/rencode/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
5 changes: 5 additions & 0 deletions debian/rencode/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# uscan(1) configuration file.
version=3

opts="dversionmangle=s/\+dfsg//" \
https://xpra.org/src/rencode-(\d[-\d\.]+)\.tar\.(?:gz|bz2|xz)

0 comments on commit f8ec732

Please sign in to comment.