| 154 | | == tlpdb2rpmspec == |
| 155 | | |
| 156 | | texlive-collection-* の spec ファイルを生成するツールを作成しました。 |
| 157 | | |
| 158 | | tlpdb2rpmspec は texlive-vtlpkg パッケージに同梱されています。 |
| 159 | | |
| 160 | | http://trac.vinelinux.org/browser/projects/texlive-vtlpkg/trunk |
| 161 | | |
| 162 | | {{{ |
| 163 | | $ sudo apt-get install texlive-vtlpkg |
| 164 | | }}} |
| 165 | | |
| 166 | | |
| 167 | | === 初期設定 === |
| 168 | | |
| 169 | | /usr/share/texlive-vtlpkg/dot.vtlpkg.conf を ${HOME}/.vtlpkg.conf へコピーして、必要な設定をします。 |
| 170 | | {{{ |
| 171 | | ## |
| 172 | | ## texlive-vtlpkg configuration file |
| 173 | | ## |
| 174 | | ## This configuration is read at the startup of texlive-vtlpkg. |
| 175 | | |
| 176 | | ## set your vendor |
| 177 | | ## default: RPM_VENDOR="Project Vine" |
| 178 | | RPM_VENDOR="Project Vine" |
| 179 | | |
| 180 | | ## set your distribution |
| 181 | | ## default: RPM_DISTRIBUTION="Vine Linux" |
| 182 | | RPM_DISTRIBUTION="Vine Linux" |
| 183 | | |
| 184 | | ## set your name and your e-mail address |
| 185 | | ## default: RPM_GPG_NAME="YOUR NAME <your@email.address>" |
| 186 | | RPM_GPG_NAME="" |
| 187 | | |
| 188 | | ## set your packager id |
| 189 | | ## default: RPM_PACKAGER=your_id |
| 190 | | RPM_PACKAGER= |
| 191 | | |
| 192 | | ## set the top of your rpm directory |
| 193 | | ## default: RPM_TOPDIR=${HOME}/rpm |
| 194 | | RPM_TOPDIR=${HOME}/rpm |
| 195 | | |
| 196 | | ## end of file |
| 197 | | }}} |
| 198 | | |
| 199 | | |
| 200 | | === ヘルプ === |
| 201 | | |
| 202 | | {{{ |
| 203 | | $ tlpdb2rpmspec |
| 204 | | Usage: tlpdb2rpmspec [option] [pkgname] |
| 205 | | |
| 206 | | This script generates a rpm spec file for CTAN and collection-* packages of TeX Live. |
| 207 | | |
| 208 | | Options: |
| 209 | | --name: return [pkgname] |
| 210 | | --category: return the category of [pkgname] |
| 211 | | --revision: return the revision of [pkgname] |
| 212 | | --depend: return dependencies of [pkgname] |
| 213 | | --shortdesc: return the short description of [pkgname] |
| 214 | | --longdesc: return the description of [pkgname] |
| 215 | | --execute: return post processe of [pkgname] |
| 216 | | --catalogue-ctan: return the locate of [pkgname] |
| 217 | | --catalogue-date: return the last update of [pkgname] |
| 218 | | --catalogue-license: return the license of [pkgname] |
| 219 | | --catalogue-version: return the version of [pkgname] |
| 220 | | --filelist: return the filelist of [pkgname] |
| 221 | | --help: show this help |
| 222 | | |
| 223 | | Supoort collections-* packages: |
| 224 | | collection-basic |
| 225 | | collection-bibtexextra |
| 226 | | collection-binextra |
| 227 | | (snip) |
| 228 | | collection-xetex |
| 229 | | }}} |
| 230 | | |
| 231 | | |
| 232 | | === 使い方 === |
| 233 | | |
| 234 | | 例えば、collection-basic の texlive-collection-basic-vl.spec を生成したい場合は、以下を実行します。 |
| 235 | | |
| 236 | | {{{ |
| 237 | | $ tlpdb2rpmspec collection-basic > texlive-collection-basic-vl.spec |
| 238 | | }}} |
| 239 | | |
| 240 | | {{{rpmbuild -ba texlive-collection-basic-vl.spec}}} を実行すると、 |
| 241 | | texlive-collection-basic-2009-Xvl6.{noarch,src}.rpm, |
| 242 | | texlive-collection-basic-doc-2009-Xvl6.src.rpm |
| 243 | | がビルドされます。 |
| 244 | | |
| 245 | | 各カテゴリ別に texlive-collection-* を生成したい場合は、以下を実行することにより、rpmbuild まで実行します。 |
| 246 | | {{{ |
| 247 | | 最小(main):$ tlpdb2rpmspec --minimal-collections |
| 248 | | 標準(plus):$ tlpdb2rpmspec --standard-collections |
| 249 | | 最大?(plus):$ tlpdb2rpmspec --full-collections |
| 250 | | }}} |