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