Changes between Initial Version and Version 1 of TeXEnvironment/tlpdb2rpmspec


Ignore:
Timestamp:
2011/10/30 15:52:30 (13 years ago)
Author:
munepi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TeXEnvironment/tlpdb2rpmspec

    v1 v1  
     1= tlpdb2rpmspec = 
     2 
     3texlive-collection-* の spec ファイルを生成するツールを作成しました。 
     4 
     5tlpdb2rpmspec は texlive-vtlpkg パッケージに同梱されています。 
     6 
     7http://trac.vinelinux.org/browser/projects/texlive-vtlpkg/trunk 
     8 
     9{{{ 
     10  $ sudo apt-get install texlive-vtlpkg 
     11}}} 
     12 
     13 
     14== 初期設定 == 
     15 
     16/usr/share/texlive-vtlpkg/dot.vtlpkg.conf を ${HOME}/.vtlpkg.conf へコピーして、必要な設定をします。 
     17{{{ 
     18##  
     19## texlive-vtlpkg configuration file 
     20##  
     21## This configuration is read at the startup of texlive-vtlpkg.  
     22 
     23## set your vendor 
     24## default: RPM_VENDOR="Project Vine" 
     25RPM_VENDOR="Project Vine" 
     26 
     27## set your distribution 
     28## default: RPM_DISTRIBUTION="Vine Linux" 
     29RPM_DISTRIBUTION="Vine Linux" 
     30 
     31## set your name and your e-mail address 
     32## default: RPM_GPG_NAME="YOUR NAME <your@email.address>" 
     33RPM_GPG_NAME="" 
     34 
     35## set your packager id 
     36## default: RPM_PACKAGER=your_id 
     37RPM_PACKAGER= 
     38 
     39## set the top of your rpm directory 
     40## default: RPM_TOPDIR=${HOME}/rpm 
     41RPM_TOPDIR=${HOME}/rpm 
     42 
     43## end of file 
     44}}} 
     45 
     46 
     47== ヘルプ == 
     48 
     49{{{ 
     50$ tlpdb2rpmspec  
     51Usage:  tlpdb2rpmspec [option] [pkgname] 
     52 
     53This script generates a rpm spec file for CTAN and collection-* packages of TeX Live.  
     54 
     55Options: 
     56        --name:                 return [pkgname] 
     57        --category:             return the category of [pkgname] 
     58        --revision:             return the revision of [pkgname] 
     59        --depend:               return dependencies of [pkgname] 
     60        --shortdesc:            return the short description of [pkgname] 
     61        --longdesc:             return the description of [pkgname] 
     62        --execute:              return post processe of [pkgname] 
     63        --catalogue-ctan:       return the locate of [pkgname] 
     64        --catalogue-date:       return the last update of [pkgname] 
     65        --catalogue-license:    return the license of [pkgname] 
     66        --catalogue-version:    return the version of [pkgname] 
     67        --filelist:             return the filelist of [pkgname] 
     68        --help:                 show this help 
     69 
     70Supoort collections-* packages:  
     71collection-basic 
     72collection-bibtexextra 
     73collection-binextra 
     74(snip) 
     75collection-xetex 
     76}}} 
     77 
     78 
     79== 使い方 == 
     80 
     81例えば、collection-basic の texlive-collection-basic-vl.spec を生成したい場合は、以下を実行します。 
     82 
     83{{{ 
     84$ tlpdb2rpmspec collection-basic > texlive-collection-basic-vl.spec 
     85}}} 
     86 
     87{{{rpmbuild -ba texlive-collection-basic-vl.spec}}} を実行すると、 
     88texlive-collection-basic-2009-Xvl6.{noarch,src}.rpm,  
     89texlive-collection-basic-doc-2009-Xvl6.src.rpm  
     90がビルドされます。 
     91 
     92各カテゴリ別に texlive-collection-* を生成したい場合は、以下を実行することにより、rpmbuild まで実行します。 
     93{{{ 
     94最小(main):$ tlpdb2rpmspec --minimal-collections 
     95標準(plus):$ tlpdb2rpmspec --standard-collections 
     96最大?(plus):$ tlpdb2rpmspec --full-collections 
     97}}}