texlive-sources-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. %global _use_internal_dependency_generator 0
  2. %global __find_provides %{nil}
  3. %global __find_requires %{nil}
  4. %define texlivesrcver 20120701
  5. %define texlivever 20120701
  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: 2012
  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}-%{texlivever}-texmf.tar.xz,
  37. %{pkgname}-%{texlivever}-extra.tar.xz
  38. on ftp://tug.org/historic/systems/texlive/%{version}/.
  39. This package is used to build texlive package and its related packages
  40. of Vine Linux.
  41. %description -l ja
  42. このパッケージは TeX Live のソース集です。
  43. ftp://tug.org/historic/systems/texlive/%{version}/ 上の
  44. %{pkgname}-%{texlivever}-texmf.tar.xz,
  45. %{pkgname}-%{texlivever}-extra.tar.xz
  46. を含んでいます。
  47. このパッケージは Vine Linux の texlive パッケージやその関連パッケージを
  48. ビルドするために使われます。
  49. %prep
  50. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  51. %build
  52. %install
  53. [ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
  54. %__mkdir_p %{build_texlive_src}
  55. (cd %{build_texlive_src}
  56. # %__mkdir_p source || exit 1
  57. # %__install -m0644 %{SOURCE1} source/ || exit 1
  58. %__tar Jxf %{SOURCE2} || exit 1
  59. %__mv %{pkgname}-%{texlivever}-texmf/* . || exit 1
  60. %__tar Jxf %{SOURCE3} || exit 1
  61. %__mv %{pkgname}-%{texlivever}-extra/* . || exit 1
  62. %__rm -r %{pkgname}-%{texlivever}-{texmf,extra} || exit 1
  63. )
  64. %clean
  65. %__rm -rf %{buildroot}
  66. %files
  67. %defattr(-,root,root)
  68. %{texlivedir}-sources
  69. %changelog
  70. * Sat Aug 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2012-1
  71. - updated to TeX Live 2012
  72. * Sun Oct 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2011-1
  73. - updated to TeX Live 2011
  74. * Sat Nov 06 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  75. - supported Vine Linux 5
  76. * Sun May 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  77. - TeX Live 2009