3,019
edits
Changes
Debian
,add language box
cd debian
export DEBEMAIL='stephanecharette...@gmail.com..' export DEBFULLNAME='Stephane CharetteYour name' dch -v 2.2.9-1 "New upstream release"
cd ..
dch -v 4.0.0 "New upstream for Gramps 4.0.0"
dpkg-buildpackage -rfakeroot
===via Distutils=== Samples : * https://github.com/astraw/stdeb/blob/master/stdeb/command/* Release the <tt>https://github.com/kelvan/gotoVienna/blob/master/bdist_hdeb.py ==Test== $ lintian gramps_4.0.1-2_all.deb< W: gramps: old-fsf-address-in-copyright-file W: gramps: extra-license-file usr/share/doc/gramps/tt> filesCOPYING.gz W: gramps:package-contains-upstream-install-documentation usr/share/doc/gramps/INSTALL cd W: gramps: extra-license-file usr/share/doc/gramps/LICENSE.gz W: gramps: menu-icon-missing usr/share/pixmaps/gramps.xpm ==webapp package== ls *.How to include Makefile into debpackage? setup.py: Note the 2 files - package_data_webapp = ['webapp/*.sql', '<tt>gramps_2webapp/grampsdb/sql/*.2.9-1_allsql'] + package_data_webapp = ['webapp/*.deb</tt>sql', 'webapp/Makefile' and , 'webapp/grampsdb/sql/*.sql''<tt>] * Depends on python-django, python-sqlite Control: Package: python-gramps-help_2webapp Architecture: all Depends: python-django, python-sqlite, ${misc:Depends}, ${python:Depends} Rules: #!/usr/bin/make -f # Uncomment this to turn on verbose mode.2 export DH_VERBOSE=1 export DH_OPTIONS=-v %: dh $@ --with python2 # Override auto test because upstream do not use the standard unittest discover override_dh_auto_test: # Override of auto_build override_dh_auto_build: python setup.9py -1_all-server build # Override of auto_install to remove information from package override_dh_auto_install: #dh_auto_install python setup.py --server install --root=debian/python-gramps-webapp --install-layout=deb< # Make css style sheets and templates non-executable override_dh_fixperms: dh_fixperms chmod a-x $(CURDIR)/debian/python-gramps-webapp/usr/share/gramps/css/Web_*.css chmod a-x $(CURDIR)/debian/python-gramps-webapp/usr/share/gramps/templates/tt*.html # Avoid compressing COPYING file so that it can appear in the "About" dialog override_dh_compress: #dh_compress -X COPYING * python 3 Control: X-Python3-Version: >'''= 3.2 Package: python3-gramps-webapp Architecture: all Depends: python3-django, python3-sqlite, ${misc:Depends}, both ${python3:Depends} Rules: #!/usr/bin/make -f # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 export DH_OPTIONS=-v %: dh $@ --with python3 # Override auto test because upstream do not use the standard unittest discover override_dh_auto_test: # Override of which need auto_build override_dh_auto_build: python3 setup.py --server build # Override of auto_install to be uploaded remove information from package override_dh_auto_install: #dh_auto_install python3 setup.py --server install --root=debian/python3-gramps-webapp --install-layout=deb # Make css style sheets and templates non-executable override_dh_fixperms: dh_fixperms chmod a-x $(CURDIR)/debian/python3-gramps-webapp/usr/share/gramps/css/Web_*.css chmod a-x $(CURDIR)/debian/python3-gramps-webapp/usr/share/gramps/templates/*.html # Avoid compressing COPYING file so that it can appear in the "About" dialog override_dh_compress: #dh_compress -X COPYING ==qml package== *Depends on python-pyside, gramps = Instructions on creating the Debian package for Ubuntu = * Check out the necessary version; for example, to build the <tt>ftp.deb</tt> file for GRAMPS {{version}}, you'll want to run: git clone http://uploadgit.code.sourceforgesf.net/incomingp/gramps/source Gramps git checkout v{{version}} -b {{version}} * Create the Changelog files: git log v{{version}}.. --pretty --numstat --summary --no-merges | git2cl > ChangeLog git log v{{version}}.. --pretty --numstat --summary --no-merges -- po/*.po | git2cl > po/ChangeLog Using the <tt>Changelog</tt> files generated with <tt>git2cl</tt>, Modify <tt>MANIFEST.in</tt> + include ChangeLog + include po/ChangeLog
* The details on how things are going to be packaged into deb files, what are the dependencies, the pre- and post- install and removal scripts etc are under <tt>debian/</tt> directory. Please refer to the [http://www.debian.org/doc/maint-guide/ Debian New Maintainers' Guide] for further details.
[[Category:Developers/Packaging]]