Difference between revisions of "He:דביאן"

From Gramps
Jump to: navigation, search
(webapp חבילת: ltr code blok)
(webapp חבילת: ltr cod blok)
Line 94: Line 94:
 
</div>
 
</div>
 
  %:
 
  %:
 +
<div dir="ltr" lamg="en">
 
     dh [email protected] --with python2
 
     dh [email protected] --with python2
 
+
</div>
 
  # Override auto test because upstream do not use the standard unittest discover
 
  # Override auto test because upstream do not use the standard unittest discover
 
  override_dh_auto_test:
 
  override_dh_auto_test:
Line 101: Line 102:
 
  # Override of auto_build
 
  # Override of auto_build
 
  override_dh_auto_build:
 
  override_dh_auto_build:
 +
<div dir="ltr" lamg="en">
 
       python setup.py --server build
 
       python setup.py --server build
 
+
</div>
 
  # Override of auto_install to remove information from package
 
  # Override of auto_install to remove information from package
 
  override_dh_auto_install:
 
  override_dh_auto_install:
 
         #dh_auto_install
 
         #dh_auto_install
 +
<div dir="ltr" lamg="en">
 
         python setup.py --server install --root=debian/python-gramps-webapp --install-layout=deb
 
         python setup.py --server install --root=debian/python-gramps-webapp --install-layout=deb
 
+
</div>
 
  # Make css style sheets and templates non-executable
 
  # Make css style sheets and templates non-executable
 
  override_dh_fixperms:
 
  override_dh_fixperms:
 
         dh_fixperms
 
         dh_fixperms
 +
<div dir="ltr" lamg="en">
 
         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/css/Web_*.css
 
         chmod a-x $(CURDIR)/debian/python-gramps-webapp/usr/share/gramps/templates/*.html
 
         chmod a-x $(CURDIR)/debian/python-gramps-webapp/usr/share/gramps/templates/*.html
 
+
</div>
 
  # Avoid compressing COPYING file so that it can appear in the "About" dialog
 
  # Avoid compressing COPYING file so that it can appear in the "About" dialog
 
  override_dh_compress:
 
  override_dh_compress:
Line 123: Line 127:
  
 
X-Python3-Version: >= 3.2
 
X-Python3-Version: >= 3.2
 
+
<div dir="ltr" lamg="en">
 
  Package: python3-gramps-webapp
 
  Package: python3-gramps-webapp
 
  Architecture: all
 
  Architecture: all
Line 131: Line 135:
 
   ${misc:Depends},
 
   ${misc:Depends},
 
   ${python3:Depends}
 
   ${python3:Depends}
 
+
</div>
 
כללים:
 
כללים:
 
+
<div dir="ltr" lamg="en">
 
  #!/usr/bin/make -f
 
  #!/usr/bin/make -f
 
+
</div>
 
  # Uncomment this to turn on verbose mode.
 
  # Uncomment this to turn on verbose mode.
 +
<div dir="ltr" lamg="en">
 
  export DH_VERBOSE=1
 
  export DH_VERBOSE=1
 
  export DH_OPTIONS=-v
 
  export DH_OPTIONS=-v
 
+
</div>
 
  %:
 
  %:
 
     dh [email protected] --with python3
 
     dh [email protected] --with python3

Revision as of 18:59, 30 May 2021

For version 4.x and newer

Testing .debs can be found in http://sourceforge.net/projects/gramps/files/Unstable/

Gramps 4 moved to setuptool/distutils installer.

תלויות

  • debian stuff
sudo apt-get install devscripts dpkg-dev fakeroot debhelper dh-linktree
  • stdeb, which produces Debian source packages from Python packages via a new distutils command, sdist_dsc. Automatic defaults are provided for the Debian package, but many aspects of the resulting package can be customized. An additional command, bdist_deb, creates a Debian binary package, a .deb file. The debianize command builds a debian/ directory directly alongside your setup.py.
sudo apt-get install python-stdeb python3-all

בניה

  • WARNING
    • The launcher under /usr/bin/gramps is using the same path for current stable release and this testing version. Backup your launcher if you want to install both versions. Translations might be also overwritten, you have been warned...
    • You need at least version 3.3.2 of python-gobject for Gramps 4.x.
    • You cannot use greater version than 2.28 of python-gobject for Gramps 3.4.x.

באמצעות פקודת שורה

python setup.py --command-packages=stdeb.command bdist_deb
  • Custom tarball
python setup.py --command-packages=stdeb.command sdist_dsc

או

python setup.py --command-packages=stdeb.command sdist_dsc --depends "python-gobject (>= 3.3.2)"

באמצאות אפשרויות מותאמות

These options are set into /debian folder.

cd debian
export DEBEMAIL='[email protected]'
export DEBFULLNAME='Your name'
cd ..
dch -v 4.0.0 "New upstream for Gramps 4.0.0"
dpkg-buildpackage -rfakeroot

באמצעות Distutils

דוגמאות :

בדיקה

$ 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/COPYING.gz
W: gramps: package-contains-upstream-install-documentation usr/share/doc/gramps/INSTALL
W: gramps: extra-license-file usr/share/doc/gramps/LICENSE.gz
W: gramps: menu-icon-missing usr/share/pixmaps/gramps.xpm

webapp חבילת

  • כיצג לכלול את Makefile בחבילה?

setup.py:

- package_data_webapp = ['webapp/*.sql', 'webapp/grampsdb/sql/*.sql']
+ package_data_webapp = ['webapp/*.sql', 'webapp/Makefile', 'webapp/grampsdb/sql/*.sql']
  • תלוי ב: python-django, python-sqlite

בקרה:

Package: python-gramps-webapp
Architecture: all
Depends:
 python-django,
 python-sqlite,
 ${misc:Depends},
 ${python:Depends}

כללים:

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DH_OPTIONS=-v
%:
    dh [email protected] --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.py --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/*.html
# Avoid compressing COPYING file so that it can appear in the "About" dialog
override_dh_compress:
       #dh_compress -X COPYING
  • python 3

בקרה:

X-Python3-Version: >= 3.2

Package: python3-gramps-webapp
Architecture: all
Depends:
 python3-django,
 python3-sqlite,
 ${misc:Depends},
 ${python3:Depends}

כללים:

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DH_OPTIONS=-v
%:
    dh [email protected] --with python3
# Override auto test because upstream do not use the standard unittest discover
override_dh_auto_test:
# Override of auto_build
override_dh_auto_build:
      python3 setup.py --server build
# Override of auto_install to 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 חבילת

  • Depends on python-pyside, gramps

Instructions on creating the Debian package for Ubuntu

  • Check out the necessary version; for example, to build the .deb file for GRAMPS 5.1.5, you'll want to run:
git clone http://git.code.sf.net/p/gramps/source Gramps
git checkout v5.1.5 -b 5.1.5
  • Create the Changelog files:
git log v5.1.5.. --pretty --numstat --summary --no-merges | git2cl > ChangeLog
git log v5.1.5.. --pretty --numstat --summary --no-merges -- po/*.po | git2cl > po/ChangeLog

Using the Changelog files generated with git2cl,

Modify MANIFEST.in

+ include ChangeLog
+ include po/ChangeLog
  • פרטים על אופן האריזה בקבצי deb, מהם התלויות, תסריטי טרום ולאחר התקנה והסרה וכו 'נמצאים במחיצה debian/. נא לעיין ב מדריך התחזוקה החדש של דביאן לפרטים נוספים.