Changes

Jump to: navigation, search

He:דביאן

1,389 bytes added, 15:41, 31 May 2021
m
בניה: fix
{{languages|Debian}}
<div dir= For version "rtl" lang="he" class="mw-content-rtl">= גרסה 4.x and newer ומעלה =
'''Testing בדיקות .debs can be found in ניתן למצוא באתר http://sourceforge.net/projects/gramps/files/Unstable/'''
{{man menu|Gramps 4 moved to setuptool/distutils installer.}}
==Dependencyתלויות== * debian stuff
* דביאן
תחילה יש להתקין את החבילות והספריות המשותפות הנדרשות לגרסת גמפס דביאן. להלן שורת פקודה אותה ניתן להעתיק ןלהדביק למסוף המערכת.
<div dir="ltr">
sudo apt-get install devscripts dpkg-dev fakeroot debhelper dh-linktree
</div>* [https://github.com/astraw/stdeb 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.<div dir="ltr">
sudo apt-get install python-stdeb python3-all
</div>
==Buildבניה==
*'''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'''. ===via a quick command line===
===באמצעות פקודת שורה ===
<div dir="ltr">
python setup.py --command-packages=stdeb.command bdist_deb
</div>* Custom מותאם אישית tarball<div dir="ltr">
python setup.py --command-packages=stdeb.command sdist_dsc
</div>orאו<div dir="ltr">
python setup.py --command-packages=stdeb.command sdist_dsc --depends "python-gobject (>= 3.3.2)"
</div>
===באמצאות אפשרויות מותאמות===
===via customized options=== These options are set into אפשרויות אלו נקבעול במחיצת ''/debian'' folder.<div dir="ltr">
cd debian
export DEBEMAIL='...@...'
dch -v 4.0.0 "New upstream for Gramps 4.0.0"
dpkg-buildpackage -rfakeroot
</div>
===באמצעות Distutils===
===via Distutils=== Samples דוגמאות:
* https://github.com/astraw/stdeb/blob/master/stdeb/command/
* https://github.com/kelvan/gotoVienna/blob/master/bdist_hdeb.py
==Testבדיקה== <div dir="ltr">
$ 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/LICENSE.gz
W: gramps: menu-icon-missing usr/share/pixmaps/gramps.xpm
</div>
==webapp חבילת==
==webapp package== * How to include כיצג לכלול את Makefile into deb packageבחבילה?
setup.py:
<div dir="ltr" lamg="en">
- package_data_webapp = ['webapp/*.sql', 'webapp/grampsdb/sql/*.sql']
+ package_data_webapp = ['webapp/*.sql', 'webapp/Makefile', 'webapp/grampsdb/sql/*.sql']
</div>
* תלוי ב: python-django, python-sqlite
* Depends on python-django, python-sqlite Controlבקרה:<div dir="ltr" lamg="en">
Package: python-gramps-webapp
Architecture: all
${misc:Depends},
${python:Depends}
</div>Rulesכללים:<div dir="ltr" lamg="en">
#!/usr/bin/make -f
export DH_VERBOSE=1
export DH_OPTIONS=-v
</div>
%:
<div dir="ltr" lamg="en">
dh $@ --with python2
</div>
# Override auto test because upstream do not use the standard unittest discover
override_dh_auto_test:
# Override of auto_build
override_dh_auto_build:
<div dir="ltr" lamg="en">
python setup.py --server build
</div>
# Override of auto_install to remove information from package
override_dh_auto_install:
#dh_auto_install
<div dir="ltr" lamg="en">
python setup.py --server install --root=debian/python-gramps-webapp --install-layout=deb
</div>
# Make css style sheets and templates non-executable
override_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/templates/*.html
</div>
# Avoid compressing COPYING file so that it can appear in the "About" dialog
override_dh_compress:
* python 3
Controlבקרה:
X-Python3-Version: >= 3.2
<div dir="ltr" lamg="en">
Package: python3-gramps-webapp
Architecture: all
${misc:Depends},
${python3:Depends}
</div>Rulesכללים:<div dir="ltr" lamg="en">
#!/usr/bin/make -f
</div>
# Uncomment this to turn on verbose mode.
<div dir="ltr" lamg="en">
export DH_VERBOSE=1
export DH_OPTIONS=-v
</div>
%:
<div dir="ltr" lamg="en">
dh $@ --with python3
</div>
# Override auto test because upstream do not use the standard unittest discover
override_dh_auto_test:
# Override of auto_build
override_dh_auto_build:
<div dir="ltr">
python3 setup.py --server build
</div>
# Override of auto_install to remove information from package
override_dh_auto_install:
<div dir="ltr">
#dh_auto_install
python3 setup.py --server install --root=debian/python3-gramps-webapp --install-layout=deb
</div>
# Make css style sheets and templates non-executable
override_dh_fixperms:
<div dir="ltr">
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
</div>
# Avoid compressing COPYING file so that it can appear in the "About" dialog
override_dh_compress:
<div dir="ltr">
#dh_compress -X COPYING
</div>
==qml חבילת==
==qml package==* תלוי ב: python-pyside, gramps
*Depends on python-pyside, gramps= הנחיות ליצירת חבילת דביאן עבור אובונטו =
= Instructions on creating the Debian package for Ubuntu = * Check out the necessary version משיכת הגרסה הדרושה; for exampleלדוגמה, to build the לבנית קובץ <tt>.deb</tt> file for GRAMPS לגרמפס {{version}}, you'll want to runיידרש להריץ:<div dir="ltr">
git clone http://git.code.sf.net/p/gramps/source Gramps
git checkout v{{version}} -b {{version}}
</div>* Create the יצירת קובצי יומן השינויים (Changelog files):<div dir="ltr">
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
</div>Using the שימוש בקובצי <tt>Changelog</tt> files generated with שחוללו עם <tt>git2cl</tt>,<div dir="ltr">Modify עריכת <tt>MANIFEST.in</tt>
+ include ChangeLog
+ include po/ChangeLog
</div>* 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:DevelopersHe:פתוח/Packagingעיצוב]]
3,019
edits

Navigation menu