| 1 | = tlpdb2rpmspec = |
| 2 | |
| 3 | texlive-collection-* の spec ファイルを生成するツールを作成しました。 |
| 4 | |
| 5 | tlpdb2rpmspec は texlive-vtlpkg パッケージに同梱されています。 |
| 6 | |
| 7 | http://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" |
| 25 | RPM_VENDOR="Project Vine" |
| 26 | |
| 27 | ## set your distribution |
| 28 | ## default: RPM_DISTRIBUTION="Vine Linux" |
| 29 | RPM_DISTRIBUTION="Vine Linux" |
| 30 | |
| 31 | ## set your name and your e-mail address |
| 32 | ## default: RPM_GPG_NAME="YOUR NAME <your@email.address>" |
| 33 | RPM_GPG_NAME="" |
| 34 | |
| 35 | ## set your packager id |
| 36 | ## default: RPM_PACKAGER=your_id |
| 37 | RPM_PACKAGER= |
| 38 | |
| 39 | ## set the top of your rpm directory |
| 40 | ## default: RPM_TOPDIR=${HOME}/rpm |
| 41 | RPM_TOPDIR=${HOME}/rpm |
| 42 | |
| 43 | ## end of file |
| 44 | }}} |
| 45 | |
| 46 | |
| 47 | == ヘルプ == |
| 48 | |
| 49 | {{{ |
| 50 | $ tlpdb2rpmspec |
| 51 | Usage: tlpdb2rpmspec [option] [pkgname] |
| 52 | |
| 53 | This script generates a rpm spec file for CTAN and collection-* packages of TeX Live. |
| 54 | |
| 55 | Options: |
| 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 | |
| 70 | Supoort collections-* packages: |
| 71 | collection-basic |
| 72 | collection-bibtexextra |
| 73 | collection-binextra |
| 74 | (snip) |
| 75 | collection-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}}} を実行すると、 |
| 88 | texlive-collection-basic-2009-Xvl6.{noarch,src}.rpm, |
| 89 | texlive-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 | }}} |