gWrite 由huahua和Aron Xu编写,Aron打包。 是 简单的 GTK + HTML5 富文本编辑器 gWrite 是一个基于 GTK+ 的简单 HTML5 所见即所得的编辑,专注于写作 和简单的文本格式化。它可以基于文档结构自动生成的目录。
它的目标是比 OOWrite 和 OOWeb 更轻量,并像他们一样有用。 这个包写得相当标准,打包也相当简单。可以作为最简单的入门教程。 附件是我根据这个包写的打包入门教程。 想学打包的童靴可以根据这个自己做一下。 熟悉打包的童靴欢迎拍砖。
éè¦å®è£ çå sudo apt-get install devscripts dh-make git-buildpackage å çåå§å dh_make: 1. ä»ä¸æ¸¸ä¸è½½å¾å°æºç å ï¼gwrite-0.5.1.tar.gz 2. è§£åå¼ tar -zxvf gwrite-0.5.1.tar.gz 注æï¼è§£åå¾å°çåºè¯¥æ¯ä¸ä¸ªæä»¶å¤¹ï¼éè¾¹ç´æ¥å°±æ¯åç§æä»¶ï¼å«æä»¶å¤¹å¥æä»¶å¤¹äº ä¹å«ç´æ¥ä¸å¤§å æä»¶å°±åºç°å¨å½åæä»¶å¤¹ä¸ 3. å°è§£åå¾å°çæä»¶éæ°å½å为 gwrite-0.5.1ï¼æ¤æ¥æ¯å¿ é¡»çï¼ï¼ï¼ï¼ï¼ å½ç¶ï¼å¦æç´æ¥å°±æ¯è¿ä¸ªååäºï¼ä¹å¯ä»¥ä¸ç¨æ¹äº :) 4. cd gwrite-0.5.1 5. dh_make -f ../gwrite-0.5.1.tar.gz -f æå®ä¸æ¸¸tarå è¿ä¹åï¼æ ¹æ® gwrite-0.5.1.tar.gz 大å°çä¸åï¼å¯è½ä¼å¤å¶ï¼ä¹å¯è½æ¯è½¯é¾æ¥å° gwrite_0.5.1.orig.tar.gz 大ç䏿¸¸tarå ä¼è½¯é¾æ¥ï¼å°çä¼å¤å¶ã 6. 注æå°çæäºä¸ä¸ªdebianæä»¶å¤¹ ä¸è½½ä»åºä¸ç°æç软件å ï¼ dget http://ftp.cn.debian.org/debian/pool/main/g/gwrite/gwrite_0.5.1-2.dsc # å½ç¶å¯¹äºå ¬å¸å é¨ä¹å¯ä»¥ dget http://mirrors/debian/pool/main/g/gwrite/gwrite_0.5.1-2.dsc è¿ä¸ªæä»¶æ¯Aronå¯¹äº gwrite_0.5.1.orig.tar.gz å gwrite_0.5.1-2.debian.tar.gz çç¾åã 妿æºå¨ä¸æAronçå ¬é¥ï¼å°±ä¼èªå¨è§£åï¼å¦ææ²¡æå°±ä¸ä¼èªå¨è§£åã å¦ææ²¡æè§£åå°± dpkg-source -x gwrite_0.5.1-2.dsc gwriteå¯ä»¥ä½ä¸ºæç®åçæå ä¾åçå¾ ï¼å ¶ç®åä¹å¤å¨äº dh ç´æ¥æ¯æäºå®çå®è£ èæ¬ã è¿æ ·ruleså¯ä»¥ç´æ¥ä¸ºç©ºäºã Debianä¸çå 个æä»¶ï¼ *****changelog***** gwrite (0.5.1+hg20110815-1) experimental; urgency=low * Upstream hg snapshot, 20110815: commit 7f717528e09fba9925fcc5460843e40fd4603eb0 * debian/pycompat: removed. * debian/compat: set to 8. * debian/control: + Add Vcs-* fields. - Remove python-support, add python (>= 2.6.6-3~) in favor of dh_python2. * debian/rules: + Use dh_python2. -- Aron Xu <[email protected]> Tue, 08 Nov 2011 19:26:56 +0800 æ¯Debianå çåæ´æ¥å¿ãç¹å«éè¦æ³¨æçå°æ¹æ¯ï¼æ¯ä¸è¡ç缩è¿ä¸è½ç¨ tabï¼åªè½ç¨ä¸ä¸ªä¸ªçç©ºæ ¼ã æ¨èä½¿ç¨ dch å½ä»¤æ¥å¤ç dch -v 0.5.2-1 å ³äºçæ¬å·çæ¯è¾ï¼ 1+1 > 1 1~1 < 1 ä¸è¬çå éè¦æ¾å¨unstableãå 为æ¤çæ¬æææ¾çBugï¼æä»¥ææ¶æ¾å°experimentalã urgency=low 表示å çç´§æ¥ç¨åº¦ï¼ä¸è¬é½æ¯lowï¼å¦ææ¯æ¯è¾ç´§æ¥çé®é¢ï¼å¯ä»¥æ¢ææ¯è¾é«çç´§æ¥ç¨åº¦ã *****compat***** 8 å çå ¼å®¹çæ¬ï¼ä¸è¬å°±æ¯debhelperçå¤§çæ¬å·ï¼å½åçæ¬æ¯8ã *****control***** Source: gwrite ### æºç å å Section: editors ### å çç§ç±»ï¼ææ¬ç¼è¾å¨ http://packages.debian.org/source/sid/ Priority: optional ### ä¼å 级ï¼ä¸è¬ä¸º optional Maintainer: Aron Xu <[email protected]> ### ç»´æ¤è Build-Depends: debhelper (>= 8), python (>= 2.6.6-3~),python-setuptools, python-distutils-extra ### ç¼è¯ä¾èµï¼ç¼è¯è¿ä¸ªè½¯ä»¶çæ¶åéè¦è£ çå Standards-Version: 3.9.2 ### Debian Policy ççæ¬ Homepage: http://code.google.com/p/gwrite ### 䏿¸¸çç½å Vcs-Browser: http://git.debian.org/?p=collab-maint/gwrite.git ### Debianå çæç®¡ç½åï¼ä¹å¯ä»¥æ¯SVNçï¼æ¨è使ç¨Git Vcs-Git: git://git.debian.org/collab-maint/gwrite.git ### å¯ä»¥ç¨æµè§å¨çççæ¬ç®¡ç Package: gwrite ### äºè¿å¶å å Architecture: all ### æ¶æï¼å¯ä»¥ç¨ç all (åç§å¤ç卿¶æä¸æ²¡æåºå«) any (å ¨é¨æ¶æ) linux-any i386 amd64 çç ### 注æï¼å¦æåå¤ä¸ªæ¶æçæ¶åï¼æ¯ç©ºæ ¼åéï¼è䏿¯éå·... Depends: ${python:Depends}, ${misc:Depends}, python, python-gtk2, python-jswebkit, python-webkit, mimetex, wv ### äºè¿å¶å çä¾èµï¼ç¼è¯åè¯è¨äº§ççå ±äº«åºï¼å¯æ§è¡ç¨åºçï¼å¯ä»¥èªå¨äº§çä¾èµ ${shlibs:Depends} ### å ¶å®ä¾èµéè¦èªå·±åå¨è¿é Description: simple GTK+ HTML5 rich text editor gWrite is a simple GTK+ HTML5 WYSIWYG editor, focusing on writing and simple text formating. It can automatically generate a table of contents based on the document structure. . #### 注æè¿ä¸ªç¹ï¼æ®µå ä¸è½æ¢è¡ï¼æä»¥éè¦å¨è¿éå 个ç¹ï¼æ°ç«å¾ä»ä¹çï¼ä¸ä¼æ¾ç¤ºè¿ä¸ªç¹ã It aims to be lighter than OOWrite & OOWeb, and to be as useful as them. n段ï¼ç¬¬ä¸æ®µå ³äºæºç å ï¼ç¬¬äºæ®µï¼äºè¿å¶å [ï¼ç¬¬ä¸æ®µï¼ç¬¬äºä¸ªäºè¿å¶å ·] ****æ¯ä¸æ®µå é¨ä¸è½ææ¢è¡ï¼ï¼ï¼ï¼ï¼**** *****copyright***** License: LGPL-3+ This is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. . See /usr/share/common-licenses/LGPL-3 on your debian system. Files: * Copyright: 2010, 2011 Jiahua Huang & Aron Xu License: LGPL-3+ Files: debian/* Copyright: 2010, 2011 Aron Xu <[email protected]> License: LGPL-3+ Files: gwrite.png Comment: http://ftp.gnome.org/pub/gnome/sources/gtk+/2.18/gtk+-2.18.5.tar.bz2 Copyright: 2009 The GTK+ Team License: LGPL-2+ This is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. . See /usr/share/common-licenses/LGPL-3 on your debian system. DEP5ï¼åæ¸ æ¥æ¯ä¸ªæä»¶ççæãææ *****docs**** TODO ç±dh_installdocs使ç¨ï¼è¿éçæææ¯ï¼æTODOè¿ä¸ªæä»¶ä½ä¸ºææ¡£å®è£ å¨ /usr/share/doc/${FIRSR_PACKAGE_NAME}/ ä¸ å½ç¶è¿éä¹å¯ä»¥éè¿å¨ruleséå½çè¯å¥æ¥å®è£ å°ç¹å®çå°æ¹ï¼ä½æ¯è¿æ ·æ´æ¹ä¾¿ã åè¾¹å¯ä»¥çå°ï¼å¾å¤dh_*å½ä»¤é½æèªå·±ç*å½ä»¤æä»¶*ã *****gwrite.1***** Debianè¦æ±æä»¥å®è£ å°/binæè /usr/binä¸çæä»¶é½æå¯¹åºçmanï¼å¦æä¸æ¸¸æ²¡ææä¾ å°±éè¦èªå·±åä¸ä¸ªã *****manpages***** debian/gwrite.1 ç±dh_installman使ç¨ï¼å¶å®åªå 个æä»¶ä½ä¸ºmanpageså®è£ ï¼ä¼æ ¹æ®åç¼ç.1,.2 çåç±»ã 妿䏿¸¸çå®è£ èæ¬ï¼å·²ç»å¯ä»¥æ£å¸¸å®è£ å°æ£ç¡®çå°æ¹ï¼å°±ä¸éè¦è¿ä¸ªäºã *æ´ä¸ªçé»è®¤è·¯å¾é½æ¯debianç®å½çä¸ä¸å±ç®å½*ã *****watch***** çè§æ¥å䏿¸¸çæ°çæ¬çèæ¬æä»¶ï¼å¯ä»¥ä½¿ç¨uscanã çµæ¶å°æ£åçï¼è¿éä¸è¯¦ç»è¯´äºã *****rules***** #!/usr/bin/make -f %: dh $@ override_dh_auto_clean: rm -rf build rm -f po/*.pot dh_auto_clean ä¸ä¸ªMakefileæä»¶ï¼è®¾ç½®å¯ä»¥ç¨å®èªå¨çæcontrolçãè¿ä¸ªæä»¶ï¼å¿ é¡»è¦æå¯æ§è¡æéï¼ï¼ï¼ #!/usr/bin/make -f #### ææèæ¬é½å¸¦çä¸è¥¿ï¼è¡¨ç¤ºç¨makeæ¥è§£éæ§è¡ã %: dh $@ ##### ç¨æ¥è¡¨ç¤ºä¸ä¸²å½ä»¤ï¼ä¼æç §è¿ä¸ªåºåæ§è¡å½ä»¤ ##### å ·ä½åè http://www.debian.org/doc/manuals/maint-guide/dreq.zh-cn.html ##### 4.4 è override_dh_auto_clean: rm -rf build rm -f po/*.pot dh_auto_clean ###### ä¸ä½¿ç¨é»è®¤ç dh_auto_clean ï¼èæ¯æ¿æ¢æä¸é¢çæ ·åã ###### Aronè¿éæ¯ä¸ºäºæ¸ é¤å 个ç¼è¯æ¶äº§çï¼è䏿¸¸çcleanèæ¬(make clean)æ²¡ææ¸ é¤å¹²åçæä»¶ã ###### è¿æ¯ä¸æ¸¸çbugï¼ï¼ï¼ï¼ï¼ ###### . ###### å½ç¶å¦æä¸æ³è¦è¿å å¥ï¼ä¹å¯ä»¥ä½¿ç¨ debian/cleanæä»¶ ###### debian/clean ç± dh_clean æ¥ä½¿ç¨ã(echo "build\npo/*.pot\n" >debian/clean) ###### . ###### dh_auto_clean å dh_clean æ¯æåå·¥çï¼ ###### dh_auto_clean è´è´£ä¸æ¸¸äº§ççä¸´æ¶æä»¶ ###### dh_clean è´è´£debianèªå·±äº§ççä¸´æ¶æä»¶ ###### Aronè¿ç§åæ³æ¯åççï¼ç¬¦åé»è¾ï¼è¯¥è°å¹²çï¼è°å¹²

