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