mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
PKG: Add first Debian packaging files.
This commit is contained in:
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
scikits-image (0.3.0) UNRELEASED; urgency=low
|
||||
|
||||
* Initial release. (Closes: #639820)
|
||||
|
||||
-- Stefan van der Walt <stefan@sun.ac.za> Mon, 26 Sep 2011 23:52:45 -0700
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
8
|
||||
Vendored
+41
@@ -0,0 +1,41 @@
|
||||
Source: scikits-image
|
||||
Section: python
|
||||
Priority: optional
|
||||
Maintainer: Stefan van der Walt <stefan@sun.ac.za>
|
||||
Build-Depends: debhelper (>= 7.0.50), python-all-dev (>= 2.5), python-support (>= 0.6), python-numpy, python-sphinx, python-nose, python-setuptools, cython, python-matplotlib
|
||||
Standards-Version: 3.9.1
|
||||
XS-Python-Version: >= 2.5
|
||||
Homepage: http://scikits-image.org
|
||||
Vcs-Browser: https://github.com/scikits-image/scikits.image
|
||||
Vcs-Git: git://github.com/scikits-image/scikits.image.git
|
||||
XS-DM-Upload-Allowed: yes
|
||||
|
||||
Package: python-scikits-image
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, ${python:Depends}, python-numpy, python-scipy, python-scikits-image-lib(>= ${source:Version})
|
||||
Provides: ${python:Provides}
|
||||
XB-Python-Version: ${python:Versions}
|
||||
Recommends: python-nose, python-matplotlib
|
||||
Suggests: python-scikits-image-doc, python-opencv
|
||||
Description: Python modules for image processing
|
||||
scikits-image is a collection of image processing algorithms for
|
||||
Python. It performs tasks such as image loading, filtering,
|
||||
morphology, segmentation, color conversions, and transformations.
|
||||
|
||||
Package: python-scikits-image-doc
|
||||
Architecture: all
|
||||
Section: doc
|
||||
Depends: ${misc:Depends}, libjs-jquery
|
||||
Suggests: python-scikits-image
|
||||
Description: Documentation and examples for scikits-image
|
||||
This package contains documentation and example scripts for
|
||||
python-scikits-image.
|
||||
|
||||
Package: python-scikits-image-lib
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, ${shlibs:Depends}, ${python:Depends}, python-numpy
|
||||
Provides: ${python:Provides}
|
||||
XB-Python-Version: ${python:Versions}
|
||||
Description: Optimized low-level algorithms for scikits-image
|
||||
This is an add-on package for python-scikits-image. It provides
|
||||
optimized, low-level implementations of algorithms.
|
||||
Vendored
+101
@@ -0,0 +1,101 @@
|
||||
Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
|
||||
Upstream-Name: scikit-learn
|
||||
Upstream-Source-Location: http://sourceforge.net/apps/trac/scikit-learn/wiki/SubversionRepo
|
||||
|
||||
Files: *
|
||||
Copyright: Copyright (C) 2007 - 2010 Scikit-Learn Developers.
|
||||
License: BSD-3
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
.
|
||||
a. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
b. 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.
|
||||
c. Neither the name of the Scikit-learn Developers 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 REGENTS 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.
|
||||
|
||||
Files: doc/sphinxext/docscrape.py doc/sphinxext/docscrape_sphinx.py doc/sphinxext/numpydoc.py
|
||||
Copyright: Copyright (C) 2008 Stefan van der Walt <stefan@mentat.za.net>, Pauli Virtanen <pav@iki.fi>
|
||||
License: BSD
|
||||
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.
|
||||
|
||||
Files: doc/sphinxext/plot_directive.py
|
||||
Copyright: Copyright (c) 2002-2008 John D. Hunter
|
||||
License: PSF
|
||||
1. This LICENSE AGREEMENT is between John D. Hunter (“JDH”), and the
|
||||
Individual or Organization (“Licensee”) accessing and otherwise
|
||||
using matplotlib software in source or binary form and its
|
||||
associated documentation.
|
||||
|
||||
2. Subject to the terms and conditions of this License Agreement,
|
||||
JDH hereby grants Licensee a nonexclusive, royalty-free, world-wide
|
||||
license to reproduce, analyze, test, perform and/or display
|
||||
publicly, prepare derivative works, distribute, and otherwise use
|
||||
matplotlib 0.98.3 alone or in any derivative version, provided,
|
||||
however, that JDH’s License Agreement and JDH’s notice of copyright,
|
||||
i.e., “Copyright (c) 2002-2008 John D. Hunter; All Rights Reserved”
|
||||
are retained in matplotlib 0.98.3 alone or in any derivative version
|
||||
prepared by Licensee.
|
||||
|
||||
3. In the event Licensee prepares a derivative work that is based on
|
||||
or incorporates matplotlib 0.98.3 or any part thereof, and wants to
|
||||
make the derivative work available to others as provided herein,
|
||||
then Licensee hereby agrees to include in any such work a brief
|
||||
summary of the changes made to matplotlib 0.98.3.
|
||||
|
||||
4. JDH is making matplotlib 0.98.3 available to Licensee on an “AS
|
||||
IS” basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
||||
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND
|
||||
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR
|
||||
FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB
|
||||
0.98.3 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
|
||||
|
||||
5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF
|
||||
MATPLOTLIB 0.98.3 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL
|
||||
DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE
|
||||
USING MATPLOTLIB 0.98.3, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED
|
||||
OF THE POSSIBILITY THEREOF.
|
||||
|
||||
6. This License Agreement will automatically terminate upon a
|
||||
material breach of its terms and conditions.
|
||||
|
||||
7. Nothing in this License Agreement shall be deemed to create any
|
||||
relationship of agency, partnership, or joint venture between JDH
|
||||
and Licensee. This License Agreement does not grant permission to
|
||||
use JDH trademarks or trade name in a trademark sense to endorse or
|
||||
promote products or services of Licensee, or any third party.
|
||||
|
||||
8. By copying, installing or otherwise using matplotlib 0.98.3,
|
||||
Licensee agrees to be bound by the terms and conditions of this
|
||||
License Agreement.
|
||||
|
||||
Files: ./scikits/learn/src/
|
||||
Copyright: Copyright (c) 2000-2009 Chih-Chung Chang and Chih-Jen Lin
|
||||
License: BSD-3
|
||||
The source tarball contains a partial copy of the LIBSVM package. However,
|
||||
the corresponding library is available from the libsvm source package (or
|
||||
rather the binary packages it builds). Therefore this code is not used and
|
||||
the respective packages are used as dependencies. This copy of the libsvm
|
||||
code is, however, left in place, as it does not hurt and does not justify
|
||||
repackaging of the upstream sources.
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- mode: makefile; coding: utf-8 -*-
|
||||
|
||||
PACKAGE_NAME = python-scikits-image
|
||||
PACKAGE_ROOT_DIR = debian/${PACKAGE_NAME}
|
||||
|
||||
PYVERS = $(shell pyversions -vs)
|
||||
PYVER = $(shell pyversions -vd)
|
||||
|
||||
# Mega rule
|
||||
%:
|
||||
dh $@
|
||||
|
||||
# Build docs during build
|
||||
override_dh_auto_build:
|
||||
dh_auto_build
|
||||
: # Build Documentation
|
||||
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
|
||||
export PYTHONPATH=`/bin/ls -d $$PWD/build/lib.*$(PYVER)` MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
|
||||
cd doc; $(MAKE) html
|
||||
endif
|
||||
|
||||
|
||||
override_dh_clean:
|
||||
rm -rf build doc/build doc/auto_examples *-stamp scikits.image.egg-info
|
||||
dh_clean
|
||||
|
||||
# Prune toplevel scikits/__init__.py to avoid conflicts across future
|
||||
# scikits- packages, and rely on pysupport to create such one if
|
||||
# necessary
|
||||
override_dh_auto_install: ${PYVERS:%=python-install%}
|
||||
find debian -wholename \*scikits/__init__.py -delete
|
||||
|
||||
# Per Python version logic -- install, test, move .so into -lib
|
||||
python-install%:
|
||||
python$* setup.py install --install-layout=deb --root=$(PACKAGE_ROOT_DIR)
|
||||
|
||||
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
||||
: # Run unittests
|
||||
export MPLCONFIGDIR=$(CURDIR)/build HOME=$(CURDIR)/build; \
|
||||
python$* /usr/bin/nosetests -s \
|
||||
$(PACKAGE_ROOT_DIR)/usr/lib/python$*/*/scikits/image
|
||||
else
|
||||
: # Skip unittests due to nocheck
|
||||
endif
|
||||
|
||||
: # Move platform-specific libraries into -lib
|
||||
for lib in $$(find $(PACKAGE_ROOT_DIR)/usr -name '*.so'); do \
|
||||
sdir=$$(dirname $$lib) ; \
|
||||
tdir=$(PACKAGE_ROOT_DIR)-lib/$${sdir#*$(PACKAGE_NAME)/} ; \
|
||||
mkdir -p $$tdir ; \
|
||||
echo "Moving '$$lib' into '$$tdir'." ; \
|
||||
mv $$lib $$tdir ; \
|
||||
done
|
||||
if [ -x /usr/bin/dh_numpy ]; then dh_numpy; fi
|
||||
|
||||
## immediately useable documentation and exemplar scripts/data
|
||||
override_dh_compress:
|
||||
dh_compress -X.py -X.html -X.pdf -X.css -X.jpg -X.txt -X.js -X.json -X.rtc
|
||||
|
||||
override_dh_installdocs:
|
||||
: # Use jquery from Debian package, so prune shipped one
|
||||
-rm doc/build/html/_static/jquery.js
|
||||
dh_installdocs -A CONTRIBUTORS.txt DEVELOPMENT.txt README.txt TASKS.txt
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
version=3
|
||||
http://github.com/scikits-image/scikits.image/downloads .*tarball/v([\d\.a-z]+)
|
||||
Reference in New Issue
Block a user