texlive-sources-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. %global _use_internal_dependency_generator 0
  2. %global __find_provides %{nil}
  3. %global __find_requires %{nil}
  4. %define texlivesrcver 20110705
  5. %define texlivever 20110705
  6. %define texlivedir %{_datadir}/texlive
  7. %define build_texlive_src %{buildroot}%{texlivedir}-sources
  8. %define pkgname texlive
  9. Summary: A collection of sources for TeX Live packages
  10. Summary(ja): TeX Live のソース集
  11. Name: texlive-sources
  12. Version: 2011
  13. Release: 1%{?_dist_release}
  14. License: distributable
  15. Group: Applications/Publishing
  16. URL: http://www.tug.org/texlive/
  17. ## original TeX Live sources
  18. Source1: ftp://tug.org/historic/systems/texlive/%{version}/%{pkgname}-%{texlivesrcver}-source.tar.xz
  19. Source2: ftp://tug.org/historic/systems/texlive/%{version}/%{pkgname}-%{texlivever}-texmf.tar.xz
  20. Source3: ftp://tug.org/historic/systems/texlive/%{version}/%{pkgname}-%{texlivever}-extra.tar.xz
  21. # Source4: ftp://tug.org/historic/systems/texlive/%{version}/%{name}-%{texlivever}-bin.tar.xz
  22. %{?nosrc:NoSource: 1}
  23. %{?nosrc:NoSource: 2}
  24. %{?nosrc:NoSource: 3}
  25. #%{?nosrc:NoSource: 4}
  26. BuildRequires: tar
  27. BuildRequires: xz
  28. BuildArch: noarch
  29. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  30. Vendor: Project Vine
  31. Distribution: Vine Linux
  32. Packager: munepi
  33. %description
  34. This package is a collection of sources for TeX Live packages.
  35. It contains
  36. %{pkgname}-%{texlivesrcver}-source.tar.xz,
  37. %{pkgname}-%{texlivever}-texmf.tar.xz,
  38. %{pkgname}-%{texlivever}-extra.tar.xz
  39. on ftp://tug.org/historic/systems/texlive/%{version}/.
  40. This package is used to build texlive package and its related packages
  41. of Vine Linux.
  42. %description -l ja
  43. このパッケージは TeX Live のソース集です。
  44. ftp://tug.org/historic/systems/texlive/%{version}/ 上の
  45. %{pkgname}-%{texlivesrcver}-source.tar.xz,
  46. %{pkgname}-%{texlivever}-texmf.tar.xz,
  47. %{pkgname}-%{texlivever}-extra.tar.xz
  48. を含んでいます。
  49. このパッケージは Vine Linux の texlive パッケージやその関連パッケージを
  50. ビルドするために使われます。
  51. %prep
  52. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  53. %build
  54. %install
  55. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  56. %__mkdir_p %{build_texlive_src}
  57. (cd %{build_texlive_src}
  58. %__mkdir_p source || exit 1
  59. %__install -m0644 %{SOURCE1} source/ || exit 1
  60. %__tar Jxf %{SOURCE2} || exit 1
  61. %__mv %{pkgname}-%{texlivever}-texmf/* . || exit 1
  62. %__tar Jxf %{SOURCE3} || exit 1
  63. %__mv %{pkgname}-%{texlivever}-extra/* . || exit 1
  64. %__rm -r %{pkgname}-%{texlivever}-{texmf,extra} || exit 1
  65. ## remove arch dependent binaries
  66. #%__rm -f texmf-dist/source/latex/splitindex/splitindex-{OpenBSD,Linux}-i386
  67. )
  68. %clean
  69. %__rm -rf %{buildroot}
  70. %files
  71. %defattr(-,root,root)
  72. %{texlivedir}-sources
  73. %changelog
  74. * Sun Oct 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
  75. - updated to TeX Live 2011
  76. * Sat Nov 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  77. - supported Vine Linux 5
  78. * Sun May 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  79. - TeX Live 2009