Re: first package pcftisio
> You should try to get some better response than this. Creative works
> are, by default, copyrighted. At the very least you need to get the
> author to send you an email (or make another release of the software)
> stating that it is released into the "public domain", which is as
> close to "no copyright" as you can get. The alternative is for him to
> assert a copyright on the software (simply by putting "Copyright (C)
> 200X-2006 Nor ...." in the source files), and including some license
> statement to allow its distribution etc. Commonly suggested licenses
> are the X11/MIT license (a 'liberal' one), and the GPLv2 (a 'copyleft'
> one).
I'm waiting for his response.
And I still have some questions
- Do you know in which sections shall I put this package which is related
to python, astronomy ? (how should I proceed to know in which section to put it)
- After trying to make the debian source with the help of the book:"the
Debian System". I'm getting some errors after doing:
dpkg-source -b python-cfitsio-0.99.2/
dpkg-source: building python-cfitsio using existing python-cfitsio_0.99.2.orig.tar.gz
dpkg-source: building python-cfitsio in python-cfitsio_0.99.2-1.diff.gz
dpkg-source: cannot represent change to debian/python-cfitsio/usr/lib/python2.3/site-packages/pcfitsio.so: binary file contents changed
dpkg-source: cannot represent change to debian/python-cfitsio/usr/share/doc/python-cfitsio/changelog.Debian.gz: binary file contents changed
dpkg-source: warning: executable mode 0755 of `debian/python-cfitsio/DEBIAN/postinst' will not be represented in diff
dpkg-source: warning: executable mode 0755 of `debian/python-cfitsio/DEBIAN/prerm' will not be represented in diff
dpkg-source: warning: executable mode 0755 of `build/lib.linux-i686-2.3/pcfitsio.so' will not be represented in diff
dpkg-source: cannot represent change to build/lib.linux-i686-2.3/pcfitsio.so: binary file contents changed
dpkg-source: cannot represent change to build/temp.linux-i686-2.3/pcfitsio.o: binary file contents changed
dpkg-source: cannot represent change to build/temp.linux-i686-2.3/pcfitsio_wrap.o: binary file contents changed
dpkg-source: building python-cfitsio in python-cfitsio_0.99.2-1.dsc
dpkg-source: unrepresentable changes to source
Exit 1
Cedric Briner
here I'll show you what I've done step by step
# get it
wget http://panoramix.stsci.edu/~npirzkal/python/pcfitsio/downloads/pCFITSIO-0.99.2.tar.gz
# put the tarball in the conventional way
mv pCFITSIO-0.99.2.tar.gz python-cfitsio_0.99.2.orig.tar.gz
tar xzf python-cfitsio_0.99.2.orig.tar.gz
mv pCFITSIO-0.99.2 python-cfitsio-0.99.2
# debianize it
cd python-cfitsio-0.99.2
dh_make -s --file ../python-cfitsio_0.99.2.orig.tar.gz -e cedric.briner@obs.unige.ch
# edit the debian rules, control, copyright
cat control
Source: python-cfitsio
Section: unknown
Priority: optional
Maintainer: BRINER Cedric <cedric.briner@obs.unige.ch>
Build-Depends: debhelper (>= 4.0.0), libcfitsio-dev
Standards-Version: 3.6.2
Package: python-cfitsio
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: python wrapper of libcftisio2
# <insert long description, indented with spaces>
# the rules should do:
# configure
* edit setup.cfg
[build_ext]
include_dirs=/usr/include
library_dirs=/usr/lib
inplace=0
# build
python setup.py build
# install
cd ~briner/unsaved/download/python-pcfitsio/pCFITSIO-0.99.2
python setup.py install --prefix=/usr/
which was done now with the rules files as follow ( diff -Naur foobar.old foobar.new > blarg.patch ):
--- rules 2006-02-21 13:56:45.000000000 +0100
+++ ../../../0.99.2/python-cfitsio-0.99.2/debian/rules 2006-02-21 13:44:52.000000000 +0100
@@ -24,6 +24,11 @@
configure-stamp:
dh_testdir
# Add here commands to configure the package.
+ sed setup.cfg \
+ -e 's|include_dirs=.*|include_dirs=/usr/include|g' \
+ -e 's|library_dirs=.*|library_dirs=/usr/lib|g' \
+ -e 's|inplace=.*|inplace=0|g' > setup.2.cfg
+ mv setup.2.cfg setup.cfg
touch configure-stamp
@@ -34,7 +39,7 @@
dh_testdir
# Add here commands to compile the package.
- $(MAKE)
+ #$(MAKE)
#docbook-to-man debian/python-cfitsio.sgml > python-cfitsio.1
touch build-stamp
@@ -45,7 +50,8 @@
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
- -$(MAKE) clean
+ #-$(MAKE) clean
+ python setup.py clean
dh_clean
@@ -56,8 +62,8 @@
dh_installdirs
# Add here commands to install the package into debian/python-cfitsio.
- $(MAKE) install DESTDIR=$(CURDIR)/debian/python-cfitsio
-
+ #$(MAKE) install DESTDIR=$(CURDIR)/debian/python-cfitsio
+ python setup.py install --prefix=$(CURDIR)/debian/python-cfitsio/usr
# Build architecture-independent files here.
binary-indep: build install
@@ -86,7 +92,7 @@
dh_compress
dh_fixperms
# dh_perl
-# dh_python
+ dh_python
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
# modify the copyright:
not shown (because not really interesting)
--
Cedric BRINER
Geneva - Switzerland
Reply to: