Version 6 (modified by munepi, 12 years ago) (diff) |
---|
texlive-collection-* の spec ファイルを生成するツールを作成しました。
tlpdb2rpmspec は texlive-vtlpkg パッケージに同梱されています。
$ sudo apt-get install texlive-vtlpkg
/usr/share/texlive-vtlpkg/dot.vtlpkg.conf を ${HOME}/.vtlpkg.conf へコピーして、必要な設定をします。
## ## texlive-vtlpkg configuration file ## ## This configuration is read at the startup of texlive-vtlpkg. ## set your vendor ## default: RPM_VENDOR="Project Vine" RPM_VENDOR="Project Vine" ## set your distribution ## default: RPM_DISTRIBUTION="Vine Linux" RPM_DISTRIBUTION="Vine Linux" ## set your name and your e-mail address ## default: RPM_GPG_NAME="YOUR NAME <your@email.address>" RPM_GPG_NAME="" ## set your packager id ## default: RPM_PACKAGER=your_id RPM_PACKAGER= ## set the top of your rpm directory ## default: RPM_TOPDIR=${HOME}/rpm RPM_TOPDIR=${HOME}/rpm ## end of file
$ tlpdb2rpmspec Usage: tlpdb2rpmspec [option] [pkgname] This script generates a rpm spec file for CTAN and collection-* packages of TeX Live. Options: --name: return [pkgname] --category: return the category of [pkgname] --revision: return the revision of [pkgname] --depend: return dependencies of [pkgname] --shortdesc: return the short description of [pkgname] --longdesc: return the description of [pkgname] --execute: return post processe of [pkgname] --catalogue-ctan: return the locate of [pkgname] --catalogue-date: return the last update of [pkgname] --catalogue-license: return the license of [pkgname] --catalogue-version: return the version of [pkgname] --filelist: return the filelist of [pkgname] --help: show this help Supoort collections-* packages: collection-basic collection-bibtexextra collection-binextra (snip) collection-xetex
例えば、collection-basic の texlive-collection-basic-vl.spec を生成したい場合は、以下を実行します。
$ tlpdb2rpmspec collection-basic > texlive-collection-basic-vl.spec
rpmbuild -ba texlive-collection-basic-vl.spec を実行すると、 texlive-collection-basic-2009-Xvl6.{noarch,src}.rpm, texlive-collection-basic-doc-2009-Xvl6.src.rpm がビルドされます。
各カテゴリ別に texlive-collection-* を生成したい場合は、以下を実行することにより、rpmbuild まで実行します。
最小(main):$ tlpdb2rpmspec --minimal-collections 標準(plus):$ tlpdb2rpmspec --standard-collections 最大(plus):$ tlpdb2rpmspec --full-collections
また、大量にパッケージを生成する場合は、tee を利用してログを出しておくことが望ましい。
$ tlpdb2rpmspec --full-collections 2>&1 | tee 00full-collections.log
次期 Vine Linux 7 および Vine Linux 6 に対応する予定。
rpm-4.8.1 を利用するため、 _use_internal_dependency_generator 0 を用いれば、簡単に制御できた。
%global _use_internal_dependency_generator 0 %global __find_provides %{nil} %global __find_requires %{nil}
projects/texlive-vtlpkg/branches/2009
Vine Linux 6 および Vine Linux 5 に対応しているため、 spec ファイルがやや煩雑になっている。
%define __find_provides %{nil} %define __find_requires %{nil} %define __perl_provides %{nil} %define __perl_requires %{nil} Autoreq: 0